Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Bundles with Firebase app distribution

so currently we are exporting APK to the play store and we are using Firebase app distribution for our testing track but now we want to start using App bundles instead of APK but the issue here that Firebase app distribution does not support App bundles, I thought of deploying an APK for the testing track and then publish an App bundle for play store release, but I think there is a risk here since the app bundle is not tested and may contain undiscoverable issue, our options are to migrate the testing track to the internal app sharing in the play console, is there a way to make Firebase app distribution support App Bundles or any other options?

like image 538
tamtom Avatar asked Dec 07 '20 11:12

tamtom


People also ask

How do I upload app bundles to Firebase app distribution?

In the Firebase console, go to your Project settings. In the Integrations tab, click Link on the Google Play card. Follow the on-screen instructions to enable the App Distribution integration, then select your newly created Firebase app to link to Google Play.

How do I distribute an app using Firebase?

Distribute your app to testers Open the App Distribution page of the Firebase console. Select your Firebase project when prompted. On the Releases page, select the app you want to distribute from the drop-down menu. Drag your app's APK file to the console to upload it.

Is Firebase app distribution free?

Firebase Distribution is a free service that allows us to distribute the installer of our applications to groups of testers with the following properties: It works for iOS and Android. Simple and fast, no need to install SDK.

How does Firebase app distribution work?

Firebase App Distribution makes distributing your apps to trusted testers painless. By getting your apps onto testers' devices quickly, you can get feedback early and often. And if you use Crashlytics in your apps, you'll automatically get stability metrics for all your builds, so you know when you're ready to ship.


3 Answers

Update May 2021: This is now available with Firebase App Distribution! You have to link Firebase to your Google Play account and then distribute .aab files without problems 👍

More info: https://firebase.google.com/docs/app-distribution/troubleshooting?platform=android#distribute-aabs

like image 86
Hans Knöchel Avatar answered Oct 24 '22 00:10

Hans Knöchel


That's actually the only way for now. You have to upload AAB to playstore and APK to app distribution. Using app bundle will not cause any kind of testing issues or undiscoverable problems. I have worked at two mass-scale product companies, both are using the same formats and haven't faced any issue.

like image 29
tronku Avatar answered Oct 24 '22 00:10

tronku


The best solution I have for now is to use Bundletool to create a universal .apk from my app bundle.

For our team, it was necessary to do this, since we had a dynamic feature module with <dist:fusing dist:include="true"/>, so ./gradlew assemble would not include this module in the build.

The command in CI looks something like this:

java -jar bundletool-all-1.0.0.jar build-apks --bundle=PATH_TO_YOUR_BUNDLE_FILE --mode=universal --output=zip.apks --ks=PATH_TO_KEYSTORE_FILE --ks-key-alias=YOUR_KEY_ALIAS --ks-pass=pass:YOUR_KEYSTORE_PASSWORD

like image 22
Kirk Avatar answered Oct 24 '22 02:10

Kirk