builds: Adds signing secrets
This commit is contained in:
@@ -5,6 +5,9 @@ packages:
|
|||||||
- maven
|
- maven
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~buzzert/KordophoneDroid
|
- 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:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
||||||
|
|||||||
@@ -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 {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
|
|
||||||
|
if (project.hasProperty('RELEASE_STORE_FILE')) {
|
||||||
|
signingConfig signingConfigs.release
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
compose true
|
compose true
|
||||||
}
|
}
|
||||||
|
|
||||||
composeOptions {
|
composeOptions {
|
||||||
// Note: this is strictly tied to a kotlin version, but isn't the version of kotlin exactly.
|
// 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
|
// See: https://developer.android.com/jetpack/androidx/releases/compose-kotlin
|
||||||
kotlinCompilerExtensionVersion '1.4.8'
|
kotlinCompilerExtensionVersion '1.4.8'
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
resources {
|
resources {
|
||||||
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildToolsVersion '33.0.1'
|
buildToolsVersion '33.0.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user