mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
ci(release): add HealthChat Play Store release pipeline
This commit is contained in:
+19
-1
@@ -98,6 +98,18 @@ android {
|
||||
)
|
||||
storePassword = environmentOrGradleValue("ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD", "signing.element.nightly.storePassword")
|
||||
}
|
||||
// HealthChat Play Store upload key. The keystore is not in the repo:
|
||||
// CI decodes it from the RELEASE_KEYSTORE_BASE64 secret (see
|
||||
// .github/workflows/healthchat-release-playstore.yml).
|
||||
register("healthchat") {
|
||||
keyAlias = System.getenv("RELEASE_KEY_ALIAS")
|
||||
?: project.property("signing.healthchat.keyId") as? String?
|
||||
keyPassword = System.getenv("RELEASE_KEY_PASSWORD")
|
||||
?: project.property("signing.healthchat.keyPassword") as? String?
|
||||
storeFile = file(System.getenv("RELEASE_STORE_FILE") ?: "./signature/release.keystore")
|
||||
storePassword = System.getenv("RELEASE_STORE_PASSWORD")
|
||||
?: project.property("signing.healthchat.storePassword") as? String?
|
||||
}
|
||||
}
|
||||
|
||||
val baseAppName = BuildTimeConfig.APPLICATION_NAME
|
||||
@@ -124,7 +136,13 @@ android {
|
||||
"login_redirect_scheme",
|
||||
oAuthRedirectSchemeBase,
|
||||
)
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
// Sign with the HealthChat upload key when it is available (CI),
|
||||
// fall back to the debug key for local release builds.
|
||||
signingConfig = if (System.getenv("RELEASE_STORE_FILE") != null || file("./signature/release.keystore").exists()) {
|
||||
signingConfigs.getByName("healthchat")
|
||||
} else {
|
||||
signingConfigs.getByName("debug")
|
||||
}
|
||||
|
||||
optimization {
|
||||
enable = true
|
||||
|
||||
Reference in New Issue
Block a user