chore(deps): update plugin org.jetbrains.kotlin.android to v2.4.10 #333
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
| name: Main | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - "push-action/**" | |
| pull_request: | |
| concurrency: | |
| group: main-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install | |
| run: flutter pub get | |
| - name: Analyze | |
| run: flutter analyze --no-pub --no-fatal-infos | |
| - name: Test | |
| run: flutter test --no-pub --coverage | |
| example: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install | |
| run: flutter pub get | |
| - name: Analyze | |
| working-directory: ./example | |
| run: flutter analyze --no-pub --no-fatal-infos | |
| - name: Test | |
| working-directory: ./example | |
| run: flutter test --no-pub --coverage | |
| - name: Codecov Dart SDK | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| flags: Dart-sdk | |
| directory: ./lib | |
| build-android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install | |
| run: flutter pub get | |
| - name: Build example APK | |
| working-directory: ./example | |
| run: flutter build apk --debug | |
| # Verifies that tokens written by SDK 3.x (flutter_secure_storage 9.x, Jetpack | |
| # EncryptedSharedPreferences) are still readable after upgrading to 4.0. This is what | |
| # keeps the flutter_secure_storage constraint from being raised past 10.x: 11.x | |
| # deleted the migration bridge, and losing it signs existing Android users out | |
| # silently. Needs a real device, hence the emulator. | |
| token-migration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - 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 | |
| - name: Run token migration upgrade test | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: 33 | |
| arch: x86_64 | |
| disable-animations: true | |
| script: ./tool/test_token_migration.sh | |
| # Validates the `environment.flutter` floor declared in pubspec.yaml. The example app | |
| # ships an AGP 9 configuration (built-in Kotlin), which the floor release predates, so | |
| # the Android project is reverted to the toolchain a Flutter 3.35 app would generate | |
| # before building. Keep FLUTTER_FLOOR in sync with `environment.flutter`. | |
| build-android-floor: | |
| runs-on: ubuntu-latest | |
| env: | |
| FLUTTER_FLOOR: 3.35.0 | |
| AGP_FLOOR: 8.9.1 | |
| GRADLE_FLOOR: 8.12 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: ${{ env.FLUTTER_FLOOR }} | |
| - name: Restore pre-AGP-9 android configuration | |
| working-directory: ./example/android | |
| run: | | |
| sed -i "s/id \"com.android.application\" version \"[0-9.]*\"/id \"com.android.application\" version \"$AGP_FLOOR\"/" settings.gradle | |
| sed -i "s|gradle-[0-9.]*-all.zip|gradle-$GRADLE_FLOOR-all.zip|" gradle/wrapper/gradle-wrapper.properties | |
| sed -i "s|^ id \"com.android.application\"$| id \"com.android.application\"\n id \"kotlin-android\"|" app/build.gradle | |
| sed -i "/^# This newDsl flag/,+3d" gradle.properties | |
| - name: Install | |
| run: flutter pub get | |
| - name: Build example APK | |
| working-directory: ./example | |
| run: flutter build apk --debug |