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:
parent
5dc637aed3
commit
0cb1c7037a
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,7 @@ gen/
|
||||
out/
|
||||
|
||||
# Generated files
|
||||
*.aab
|
||||
*.apk
|
||||
*.ap_
|
||||
*.class
|
||||
|
@ -106,18 +106,9 @@ android {
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
if (project.hasProperty("thunderbird.keyAlias") &&
|
||||
project.hasProperty("thunderbird.keyPassword") &&
|
||||
project.hasProperty("thunderbird.storeFile") &&
|
||||
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
|
||||
}
|
||||
}
|
||||
createSigningConfig(project, SigningType.TB_RELEASE)
|
||||
createSigningConfig(project, SigningType.TB_BETA)
|
||||
createSigningConfig(project, SigningType.TB_DAILY)
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@ -129,7 +120,7 @@ android {
|
||||
}
|
||||
|
||||
release {
|
||||
signingConfig = signingConfigs.findByName("release")
|
||||
signingConfig = signingConfigs.getByType(SigningType.TB_RELEASE)
|
||||
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
@ -140,20 +131,24 @@ android {
|
||||
)
|
||||
}
|
||||
|
||||
create("daily") {
|
||||
create("beta") {
|
||||
initWith(getByName("release"))
|
||||
|
||||
applicationIdSuffix = ".daily"
|
||||
versionNameSuffix = "a1"
|
||||
signingConfig = signingConfigs.getByType(SigningType.TB_BETA)
|
||||
|
||||
applicationIdSuffix = ".beta"
|
||||
versionNameSuffix = "b1"
|
||||
|
||||
matchingFallbacks += listOf("release")
|
||||
}
|
||||
|
||||
create("beta") {
|
||||
create("daily") {
|
||||
initWith(getByName("release"))
|
||||
|
||||
applicationIdSuffix = ".beta"
|
||||
versionNameSuffix = "b1"
|
||||
signingConfig = signingConfigs.getByType(SigningType.TB_DAILY)
|
||||
|
||||
applicationIdSuffix = ".daily"
|
||||
versionNameSuffix = "a1"
|
||||
|
||||
matchingFallbacks += listOf("release")
|
||||
}
|
||||
|
@ -4,4 +4,7 @@ enum class SigningType(
|
||||
val id: String = "$app.$type",
|
||||
) {
|
||||
K9_RELEASE(app = "k9", type = "release"),
|
||||
TB_RELEASE(app = "tb", type = "release"),
|
||||
TB_BETA(app = "tb", type = "beta"),
|
||||
TB_DAILY(app = "tb", type = "daily"),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user