Added onCameraMove event on the map controller #82
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
name: Flutter CI | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
FLUTTER_CHANNEL: 'stable' | |
FLUTTER_VERSION: '3.10.5' | |
jobs: | |
format: | |
name: "Check formatting" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- name: Lint analysis | |
run: dart format --set-exit-if-changed . | |
lint: | |
name: "Static code analysis" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- run: flutter pub get | |
- run: | | |
cd scripts | |
flutter pub get | |
cd .. | |
- name: Lint analysis | |
run: flutter analyze | |
build-android: | |
name: "Build Android apk" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- run: flutter pub get | |
- name: Build example APK | |
run: flutter build apk | |
# We might want to add a flutter test step in the future, when there actually are tests for this plugin | |
build-iOS: | |
name: Build iOS package | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- uses: maxim-lobanov/setup-cocoapods@v1 | |
with: | |
podfile-path: example/ios/Podfile.lock | |
- run: flutter pub get | |
- name: Build iOS package | |
run: flutter build ios --simulator | |
- name: Upload Runner.app as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Runner.app | |
path: example/build/ios/iphonesimulator | |
build-web: | |
name: "Build web" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- run: flutter pub get | |
- name: Build web | |
run: flutter build web |