Closed mformetal closed 1 year ago
I found a few problems with this issue:
Configuring the AppDistributionExtension
using the productFlavors/buildTypes
API as below seems to be working for me now:
project.extensions.configure<ApplicationExtension> {
productFlavors.configureEach {
configure<AppDistributionExtension> {
}
}
}
Closing.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
According to the distribution documentation, I should be able to set the
artifactPath
on a per-application-variant basis.Relevant Code:
Running
./gradlew app:appDistributionUploadAutomationDebug
should attempt (and fail) to upload using "AUTOMATION PATH". Running./gradlew app:appDistributionUploadDevDebug
should attempt (and fail) to upload using "DEV PATH".However, both tasks end up using "DEV PATH". It seems like the last call to
firebaseAppDistribution { .... }
overwrites any previous ones, and this makes sense becauseAppDistributionExtension
seems to be registered on a per-Project
and not a per-Task
basis.This is currently blocking me from integrating with the Firebase Gradle Plugin, and I'd much rather not use the CLI for this.