flutter_distributor

pub version melos

A complete tool for packaging and publishing your Flutter apps.


English | 简体中文


Documentation

The full documentation can be found on distributor.leanflutter.org.

Features

These are the available packages in this repository.

Getting Started

Installation

dart pub global activate flutter_distributor

Usage

Add distribute_options.yaml to your project root directory.

env:
  PGYER_API_KEY: 'your api key'
output: dist/
releases:
  - name: dev
    jobs:
      # Build and publish your apk pkg to pgyer
      - name: release-dev-android
        package:
          platform: android
          target: apk
          build_args:
            flavor: dev
            target-platform: android-arm,android-arm64
            dart-define:
              APP_ENV: dev
        publish_to: pgyer
      # Build and publish your ipa pkg to pgyer
      - name: release-dev-ios
        package:
          platform: ios
          target: ipa
          build_args:
            flavor: dev
            export-options-plist: ios/dev_ExportOptions.plist
            dart-define:
              APP_ENV: dev
        publish_to: pgyer

The build_args are the args supported by the flutter build command, please modify it according to your project.

Release Your App

flutter_distributor release --name dev

Who’s using it?

  • Biyi – A convenient translation and dictionary app.
  • Qianji – A purely bookkeeping app.

License

MIT

GitHub

View Github