feat: implement production flavor with environment configuration and build support

This commit is contained in:
pradeepkumar
2026-04-08 03:50:52 +05:30
parent 7e4f879171
commit 82c0582bca
9 changed files with 23 additions and 5 deletions

View File

@@ -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 {