Firebase is a suite of cloud-based services by Google to simplify mobile app development and management. Firebase App Distribution allows app developers to distribute both Android and iOS builds to QA testers in one platform. This makes it ideal for cross-platform frameworks like Flutter to keep QA builds in one place for both platforms.
This guide will show you how to easily distribute Android and iOS builds of your Flutter app to tester groups in Firebase App Distribution.
In order to follow this guide, you will need the following:
https://www.youtube.com/embed/H_BRjgi6W24
Follow the steps of Use the CLI with CI systems to generate a Firebase token.
If you're new to Codemagic, follow the steps of Flutter Continuous Integration & Delivery (CI/CD) with Codemagic to set up a new Flutter project with the workflow editor to build an Android and/or iOS app. You can build Android in debug or release mode. You must build iOS in release mode with Manual or Automatic code signing with the Development or Ad Hoc Provisioning Profile type in order to install a build published to Firebase App Distribution. See our docs more info on iOS code signing.
For your workflow, in the Distribution section, select Firebase App Distribution. Here you should provide your token and for each app a Firebase app id and tester group alias(es). App id can be found in the Firebase App Distribution project settings. Tester group alias(es) can be found in the App Distribution Testers & Groups section.
That's it! After a successful build, you'll see your iOS or Android build in the Firebase console App Distribution section.
And an email will go out to your testers with a link to download and install the build on their device.
This article was first published here