Use shared CI keystore env vars; remove backup
Standardize CI signing config and clean up Android build files: - Replace app-specific CodeMagic keystore env vars (CM_KEYSTORE_PATH_CLIENT/STAFF, CM_KEYSTORE_PASSWORD_CLIENT/STAFF, CM_KEY_ALIAS_CLIENT/STAFF, CM_KEY_PASSWORD_CLIENT/STAFF) with shared variables (CM_KEYSTORE_PATH, CM_KEYSTORE_PASSWORD, CM_KEY_ALIAS, CM_KEY_PASSWORD) in client and staff build.gradle.kts to unify CI configuration. - Remove stray TODO comment about applicationId in both build files (cleanup). - Adjust manifestPlaceholders placement in the client build file. - Delete a backup google-services.json_back from the staff app to remove an unnecessary/sensitive artifact.
This commit is contained in:
@@ -43,7 +43,6 @@ android {
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.krowwithus.client"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
@@ -51,18 +50,17 @@ android {
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
|
||||
manifestPlaceholders["GOOGLE_MAPS_API_KEY"] = dartEnvironmentVariables["GOOGLE_MAPS_API_KEY"] ?: ""
|
||||
manifestPlaceholders["GOOGLE_MAPS_API_KEY"] = dartEnvironmentVariables["GOOGLE_MAPS_API_KEY"] ?: ""
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
if (System.getenv()["CI"] == "true") {
|
||||
// CodeMagic CI environment
|
||||
storeFile = file(System.getenv()["CM_KEYSTORE_PATH_CLIENT"] ?: "")
|
||||
storePassword = System.getenv()["CM_KEYSTORE_PASSWORD_CLIENT"]
|
||||
keyAlias = System.getenv()["CM_KEY_ALIAS_CLIENT"]
|
||||
keyPassword = System.getenv()["CM_KEY_PASSWORD_CLIENT"]
|
||||
storeFile = file(System.getenv()["CM_KEYSTORE_PATH"] ?: "")
|
||||
storePassword = System.getenv()["CM_KEYSTORE_PASSWORD"]
|
||||
keyAlias = System.getenv()["CM_KEY_ALIAS"]
|
||||
keyPassword = System.getenv()["CM_KEY_PASSWORD"]
|
||||
} else {
|
||||
// Local development environment
|
||||
keyAlias = keystoreProperties["keyAlias"] as String?
|
||||
|
||||
Reference in New Issue
Block a user