feat: implement production flavor with environment configuration and build support
This commit is contained in:
@@ -51,6 +51,12 @@ android {
|
||||
keyAlias = keyProperties.getProperty("demoKeyAlias", "")
|
||||
keyPassword = keyProperties.getProperty("demoKeyPassword", "")
|
||||
}
|
||||
create("prodRelease") {
|
||||
storeFile = file(keyProperties.getProperty("prodStoreFile", ""))
|
||||
storePassword = keyProperties.getProperty("prodStorePassword", "")
|
||||
keyAlias = keyProperties.getProperty("prodKeyAlias", "")
|
||||
keyPassword = keyProperties.getProperty("prodKeyPassword", "")
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions += "flavor-type"
|
||||
@@ -73,6 +79,12 @@ android {
|
||||
resValue("string", "app_name", "RE-Quest Dev")
|
||||
signingConfig = signingConfigs.getByName("devRelease")
|
||||
}
|
||||
create("prod") {
|
||||
dimension = "flavor-type"
|
||||
// No applicationIdSuffix — prod uses the base applicationId
|
||||
resValue("string", "app_name", "RE-Quest")
|
||||
signingConfig = signingConfigs.getByName("prodRelease")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
||||
Reference in New Issue
Block a user