Skip to content

Using fastlane to deploy app

Augsorn Chanklad edited this page Dec 11, 2019 · 3 revisions

fastlane is an automation tool for automate app release process. I'll use flutter to build app and use fastlane for release app to play store/app store.

Installation

Android

Before start

Make sure all below are exists.

  • Release keystore file. (For signing process)
  • Google play service account credential json file. (For automate publish to play store)
  • Google service json file. (For firebase integration)

Steps

  • Increase version in android/app/src/build.gradle
  • Build appbundle.
$ flutter build appbundle --release

File .aab will be generated at build/app/outputs/bundle/release/app.aab

  • Execute fastlane beta to publish .aab file to play store beta channel.
$ cd ./android && fastlane beta

iOS

Before start

  • Verify account in ios/fastlane/Appfile
app_identifier("app_bundle_id")
apple_id("your_apple_id")
team_name("your_team_name")
team_id("your_team_id")
  • Verify ios/Runner/Info/plist
    • Bundle name
    • Bundle display name
    • Version
    • Bundle version
  • Set FASTLANE_PASSWORD as environment variable with your iTunes Connect password.

Steps

  • Build without codesign
$ flutter build ios --release --no-codesign
  • Execute fastlane for ios
$ cd ./ios && fastlane beta
Clone this wiki locally