2020-02-13 11:18:56 +08:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2020-07-16 18:31:45 +08:00
|
|
|
build:
|
2020-02-13 11:18:56 +08:00
|
|
|
docker:
|
2020-04-12 01:23:12 +08:00
|
|
|
- image: cirrusci/flutter:beta
|
2020-02-13 11:18:56 +08:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only: master
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Run Flutter doctor
|
|
|
|
command: flutter doctor
|
2020-05-16 11:57:49 +08:00
|
|
|
- run:
|
|
|
|
name: Update package
|
|
|
|
command: flutter update-packages --force-upgrade
|
2020-02-13 14:35:30 +08:00
|
|
|
- run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks
|
2020-02-13 14:26:38 +08:00
|
|
|
- run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV
|
2020-03-20 03:58:30 +08:00
|
|
|
- run: dart tool/env.dart
|
2020-05-06 21:13:40 +08:00
|
|
|
- run:
|
|
|
|
name: Build the Android version
|
2020-07-16 19:30:08 +08:00
|
|
|
command: flutter build appbundle --obfuscate --split-debug-info=debug/
|
2020-05-19 15:14:44 +08:00
|
|
|
- run:
|
|
|
|
name: Build the Android apk
|
2020-07-16 19:30:08 +08:00
|
|
|
command: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
|
2020-02-13 11:18:56 +08:00
|
|
|
- store_artifacts:
|
2020-07-16 18:31:45 +08:00
|
|
|
path: build/app/outputs/
|