I have an Android project with multiple flavors. In my current workflow, the step “Deploy to Bitrise” generates one public URL per flavor, so I get as many APK as there are flavors.
I want to send the details of all generated APKs to an external webservice, using a script. I’ve added a step “APK Info” which creates the variables $ANDROID_APP_PACKAGE_NAME, $ANDROID_APP_VERSION_NAME, etc. Then I run a script which works fine, but only for one APK (I guess the lastly generated APK).
To solve that, my idea would be to run one “Apk info” step per flavor, but my Gradle Runner step only generates one $BITRISE_APK_PATH. Is that a good approach ? If yes, how can I modify the Gradle Runner step to generate multiple environnement variable (one for each flavor).
Thanks in advance for your feedback.