0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-19 19:52:14 +02:00

Add thunderbird signing config

This commit is contained in:
Wolf-Martell Montwé 2024-07-23 14:04:49 +02:00
parent 5dc637aed3
commit 0cb1c7037a
No known key found for this signature in database
GPG Key ID: 6D45B21512ACBF72
3 changed files with 18 additions and 19 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ gen/
out/ out/
# Generated files # Generated files
*.aab
*.apk *.apk
*.ap_ *.ap_
*.class *.class

View File

@ -106,18 +106,9 @@ android {
} }
signingConfigs { signingConfigs {
if (project.hasProperty("thunderbird.keyAlias") && createSigningConfig(project, SigningType.TB_RELEASE)
project.hasProperty("thunderbird.keyPassword") && createSigningConfig(project, SigningType.TB_BETA)
project.hasProperty("thunderbird.storeFile") && createSigningConfig(project, SigningType.TB_DAILY)
project.hasProperty("thunderbird.storePassword")
) {
create("release") {
keyAlias = project.property("thunderbird.keyAlias") as String
keyPassword = project.property("thunderbird.keyPassword") as String
storeFile = file(project.property("thunderbird.storeFile") as String)
storePassword = project.property("thunderbird.storePassword") as String
}
}
} }
buildTypes { buildTypes {
@ -129,7 +120,7 @@ android {
} }
release { release {
signingConfig = signingConfigs.findByName("release") signingConfig = signingConfigs.getByType(SigningType.TB_RELEASE)
isMinifyEnabled = true isMinifyEnabled = true
isShrinkResources = true isShrinkResources = true
@ -140,20 +131,24 @@ android {
) )
} }
create("daily") { create("beta") {
initWith(getByName("release")) initWith(getByName("release"))
applicationIdSuffix = ".daily" signingConfig = signingConfigs.getByType(SigningType.TB_BETA)
versionNameSuffix = "a1"
applicationIdSuffix = ".beta"
versionNameSuffix = "b1"
matchingFallbacks += listOf("release") matchingFallbacks += listOf("release")
} }
create("beta") { create("daily") {
initWith(getByName("release")) initWith(getByName("release"))
applicationIdSuffix = ".beta" signingConfig = signingConfigs.getByType(SigningType.TB_DAILY)
versionNameSuffix = "b1"
applicationIdSuffix = ".daily"
versionNameSuffix = "a1"
matchingFallbacks += listOf("release") matchingFallbacks += listOf("release")
} }

View File

@ -4,4 +4,7 @@ enum class SigningType(
val id: String = "$app.$type", val id: String = "$app.$type",
) { ) {
K9_RELEASE(app = "k9", type = "release"), K9_RELEASE(app = "k9", type = "release"),
TB_RELEASE(app = "tb", type = "release"),
TB_BETA(app = "tb", type = "beta"),
TB_DAILY(app = "tb", type = "daily"),
} }