Private
Public Access
1
0

builds: Adds signing secrets

This commit is contained in:
2024-03-24 22:49:05 -07:00
parent 74a54f009b
commit 7a1ec47f86
2 changed files with 24 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ packages:
- maven
sources:
- https://git.sr.ht/~buzzert/KordophoneDroid
secrets:
- 749c6086-0a50-4fba-bb01-8b0643bab82c # ~/.gradle/gradle.properties: contains keystore passwords
- 4fbe9d83-5f38-49c0-b93d-863d15e92a60 # ~/keystore.jks: Android keystore
tasks:
- setup: |
wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip

View File

@@ -22,32 +22,53 @@ android {
}
}
signingConfigs {
if (project.hasProperty('RELEASE_STORE_FILE')) {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
if (project.hasProperty('RELEASE_STORE_FILE')) {
signingConfig signingConfigs.release
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
buildFeatures {
compose true
}
composeOptions {
// Note: this is strictly tied to a kotlin version, but isn't the version of kotlin exactly.
// See: https://developer.android.com/jetpack/androidx/releases/compose-kotlin
kotlinCompilerExtensionVersion '1.4.8'
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
buildToolsVersion '33.0.1'
}