-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
*.iml | ||
.idea/ | ||
|
||
pubspec_overrides.yaml | ||
pubspec_overrides.yaml | ||
pubspec.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Google Play | ||
--- | ||
|
||
The playstore target publishes your package artifacts to the [Google Play](https://play.google.com/store/apps). | ||
|
||
## 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' / | ||
``` | ||
|
||
### Configure `distribute_options.yaml` | ||
|
||
```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 | ||
``` | ||
Run: | ||
``` | ||
flutter_distributor release --name dev | ||
``` | ||
|
||
## Related Links | ||
|
||
- [Create and delete service account keys](https://cloud.google.com/iam/docs/keys-create-delete) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Google Play | ||
--- | ||
|
||
The playstore target publishes your package artifacts to the [Google Play](https://play.google.com/store/apps). | ||
|
||
## 设置环境变量 | ||
|
||
需要设置一些环境变量才能正确运行。 | ||
|
||
``` | ||
# 获取你的服务账号密钥 https://cloud.google.com/iam/docs/keys-create-delete?hl=zh-cn | ||
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' / | ||
``` | ||
|
||
### 配置 `distribute_options.yaml` | ||
|
||
```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 | ||
``` | ||
运行: | ||
``` | ||
flutter_distributor release --name dev | ||
``` | ||
|
||
## 相关链接 | ||
|
||
- [创建和删除服务账号密钥](https://cloud.google.com/iam/docs/keys-create-delete?hl=zh-cn) |