Skip to content
45 changes: 44 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ orbs:

commands:
setup_flutter:
parameters:
version:
type: string
default: 3.10.5
steps:
- flutter/install_sdk_and_pub:
version: 3.10.5
version: <<parameters.version>>
- run:
name: Generate Pigeons
command: sh ./scripts/pigeon.sh
Expand Down Expand Up @@ -241,6 +245,41 @@ jobs:
command: dart run pana --no-warning --exit-code-threshold 0
- run: flutter pub publish --dry-run

test_build_sample_android:
executor:
name: android/android-machine
resource-class: xlarge
tag: 2024.01.1
steps:
- advanced-checkout/shallow-checkout
- setup_flutter
- run:
name: Upgrade Flutter
environment:
FLUTTER_GIT_URL: ssh://git@github.com/flutter/flutter.git
command: flutter upgrade && flutter --version
- run:
name: Build app
working_directory: example
command: flutter build apk --debug

test_build_sample_ios:
macos:
xcode: 15.2.0
resource_class: macos.m1.medium.gen1
steps:
- advanced-checkout/shallow-checkout
- setup_ios
- run:
name: Upgrade Flutter
environment:
FLUTTER_GIT_URL: ssh://git@github.com/flutter/flutter.git
command: flutter upgrade && flutter --version
- run:
name: Build app
working_directory: example
command: flutter build ios --simulator

release:
macos:
xcode: 15.2.0
Expand Down Expand Up @@ -302,6 +341,8 @@ workflows:
- verify_pub:
requires:
- lint_flutter
- test_build_sample_android
- test_build_sample_ios
- hold_release:
type: approval
requires:
Expand All @@ -316,6 +357,8 @@ workflows:
# - test_ios
- e2e_ios_captain
- verify_pub
- test_build_sample_android
- test_build_sample_ios
filters:
branches:
only: master
Expand Down
6 changes: 6 additions & 0 deletions scripts/releases/get_latest_stable_flutter_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
flutterReleaseJson=$(curl -s "https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json")

flutterVersion=$(jq -r '[.releases[] | select(.channel=="stable")][0].version' <<< $flutterReleaseJson)

echo $flutterVersion