fix(android_alarm_manager_plus): apply KGP unless built-in Kotlin is enabled #419
Workflow file for this run
This file contains hidden or 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
| # Build Android Alarm Manager Plus Example | |
| name: android_alarm_manager_plus | |
| concurrency: | |
| group: android_alarm_manager_plus_${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| paths: | |
| - "packages/android_alarm_manager_plus/**" | |
| - ".github/workflows/android_alarm_manager_plus.yaml" | |
| - "!**.md" | |
| - "!**.gitignore" | |
| env: | |
| PLUGIN_SCOPE: "*android_alarm_manager_plus*" | |
| PLUGIN_EXAMPLE_SCOPE: "*android_alarm_manager_plus_example*" | |
| jobs: | |
| analyze: | |
| name: "Dart Analyzer" | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v7 | |
| - uses: flutter-actions/setup-flutter@v4 | |
| - name: "Install Tools" | |
| run: | | |
| ./.github/workflows/scripts/install-tools.sh | |
| - name: "Bootstrap Workspace" | |
| run: melos bootstrap | |
| - name: "Run Dart Analyze" | |
| uses: invertase/github-action-dart-analyzer@v3 | |
| with: | |
| fatal-infos: false | |
| fatal-warnings: true | |
| annotate: true | |
| working-directory: ./packages/android_alarm_manager_plus | |
| android_example_build: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v7 | |
| - uses: flutter-actions/setup-flutter@v4 | |
| - name: "Install Tools" | |
| run: ./.github/workflows/scripts/install-tools.sh | |
| - name: "Build Example" | |
| run: ./.github/workflows/scripts/build-examples.sh android ./lib/main.dart | |
| android_integration_test: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| android-api-level: [ 24, 29, 32, 36 ] | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v7 | |
| - name: Enable KVM | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - uses: flutter-actions/setup-flutter@v4 | |
| - name: "Install Tools" | |
| run: ./.github/workflows/scripts/install-tools.sh | |
| - name: "Bootstrap Workspace" | |
| run: melos bootstrap --scope="$PLUGIN_SCOPE" | |
| - name: "Android Integration Test" | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: ${{ matrix.android-api-level }} | |
| target: google_apis | |
| arch: x86_64 | |
| force-avd-creation: false | |
| profile: pixel_7_pro | |
| script: ./.github/workflows/scripts/integration-test.sh android android_alarm_manager_plus_example |