created 2022/10/12
A sample code for distributing test ios app built with flutter via Firebase App Distribution with one tap of github actions. Sample is dedicated for circumstances using below.
flutter
fastlane
github actions
Firebase App Distribution
You can use the code by copy and paste, after preparing the prerequisites and environmental variables introduced below.
Whom using the sample is expected to have done below using the code
- manages flutter version with
fvm
- manages
flavors
for flutter project - manages iOS certificates and provisioning profiles with
fastlane match
- have activated firebase project and app distribution for the app
- MATCH_PASSWORD: passphrase you specified at first run of
fastlane match
reference - FIREBASE_TOKEN: token generated by
firebase login:ci
command reference - PERSONAL_TOKEN:
personal access token
of whom has access authorization to repository used by fastlane match reference
flutter also supports flutter build ipa
command which can shorten the execution time up to half of workflow introduced here. I have introduced sample using flutter build ipa
in https://gist.github.com/heyhey1028/5d14b22aa2990e1253c95d356a2d0fed
- fvm: https://fvm.app/
- flutter flavors: https://docs.flutter.dev/deployment/flavors
- fastlane: https://fastlane.tools/
- fastlane match: https://docs.fastlane.tools/actions/match/
- firebase_app_distribution: https://firebase.google.com/docs/app-distribution/ios/distribute-fastlan
Please leave a comment if you have any trouble trying to reference the code. Also pressing a star would help me motivated in creating sample codes. Thanks!!