Issue
I have different productFlavors specified in my build.gradle file
dev {
applicationId "com.advancedprogressive.chare.dev"
versionCode 83
versionName "2.2.1"
}
staging {
applicationId "com.advancedprogressive.chare.qa"
versionCode 119
versionName "2.8.1"
}
and have have signing configurations like
signingConfigs {
release {
storeFile
storePassword
keyAlias
keyPassword }
debug {
keyPassword
storeFile
keyAlias
storePassword
}
}
I have different keystors for both flavors. I can specify different keystores for different build types e.g debug/release but how can i specify different keysotre for each flavor.
Solution
You can use somenthing like this:
android {
signingConfigs {
dev {
}
staging {
}
}
productFlavors {
dev {
signingConfig signingConfigs.dev
}
staging {
signingConfig signingConfigs.staging
}
}
}
Answered By - Gabriele Mariotti
Answer Checked By - Katrina (JavaFixing Volunteer)