Skip to content

Google Play

The playstore target publishes your package artifacts to the Google Play.

Set up environment variables

requires some environment variables set up to run correctly.

# Get your service account credentials https://cloud.google.com/iam/docs/keys-create-delete
export PLAYSTORE_CREDENTIALS="your service account credentials file path"

Usage

Run:

flutter_distributor publish \
--path dist/1.0.0+1/hello_world-1.0.0+1-android.aab \
--targets playstore \
--playstore-package-name 'org.leanflutter.examples.hello_world' /
--playstore-track alpha

Configure distribute_options.yaml

output: dist/
releases:
- name: dev
jobs:
- name: build-aab
package:
platform: android
target: aab
build_args:
target-platform: android-arm
# Publish to playstore
publish:
target: playstore
args:
package-name: org.leanflutter.examples.hello_world
track: alpha

Run:

flutter_distributor release --name dev