I am currently working on an Android application in which one there is several flavor dimensions and several product flavors:
flavorDimensions "environment", "deviceType"
productFlavors
{
playstore
{
dimension "deviceType"
}
touchpanel
{
dimension "deviceType"
versionNameSuffix "-TouchPanel"
}
prod
{
dimension "environment"
}
integration
{
dimension "environment"
versionNameSuffix "-Integration"
applicationIdSuffix ".integration"
}
dev
{
dimension "environment"
versionNameSuffix "-Dev"
applicationIdSuffix ".dev"
}
}
I would like to configure Firebase App Distribution for each flavor dimension combination.
I know how to configure Firebase App Distribution for a specific product flavor. For example:
dev
{
firebaseAppDistribution
{
serviceCredentialsFile = "${projectDir}/src/main/XXXXX.json"
artifactPath = "${buildDir}/outputs/universal_apk/devRelease/app-dev-release-universal.apk"
groups = "XXX"
}
}
But I do not how to configure firebase for the variants:
- devPlaystore
- integrationPlaystore
- prodPlaystore
- devTouchpanel
- integrationTouchPanel
- prodTouchPanel
In fact, I tried to write something like:
productFlavors
{
devPlaystore
{
firebaseAppDistribution
{
serviceCredentialsFile = "${projectDir}/src/main/XXXXX.json"
artifactPath = "${buildDir}/outputs/universal_apk/devRelease/app-dev-release-universal.apk"
groups = "XXX"
}
}
}
But gradle does no like my code and display the following error when I sync gradle:
A problem occurred configuring project ':app'. kotlin.KotlinNullPointerException (no error message)
Thank you in advance for your help in order to help me to configure correctly Firebase App Distribution for my case :)