2020-02-13 04:18:56 +01:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2020-04-11 19:23:12 +02:00
|
|
|
- image: cirrusci/flutter:beta
|
2020-02-13 04:18:56 +01:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only: master
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Run Flutter doctor
|
|
|
|
command: flutter doctor
|
2020-03-01 13:17:06 +01:00
|
|
|
|
2020-02-13 07:35:30 +01:00
|
|
|
- run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks
|
2020-02-13 07:26:38 +01:00
|
|
|
- run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV
|
2020-03-19 20:58:30 +01:00
|
|
|
- run: dart tool/env.dart
|
2020-02-13 04:18:56 +01:00
|
|
|
- run:
|
|
|
|
name: Build the Android version
|
2020-02-25 13:46:44 +01:00
|
|
|
command: flutter build apk --split-per-abi --no-shrink
|
2020-04-06 15:13:18 +02:00
|
|
|
- run:
|
2020-04-06 14:45:00 +02:00
|
|
|
name: Build the Android bundle
|
|
|
|
command: flutter build appbundle --no-shrink
|
2020-02-13 04:18:56 +01:00
|
|
|
|
|
|
|
- store_artifacts:
|
2020-04-06 14:45:00 +02:00
|
|
|
path: build/app/outputs/
|