Skip to content

Sync JNI branch with release 9.16.0 #158

Sync JNI branch with release 9.16.0

Sync JNI branch with release 9.16.0 #158

name: Kotlin Version Compatibility
on:
push:
branches:
- main
- release/**
pull_request:
paths:
- ".github/workflows/kotlin-version-compatibility.yml"
- "packages/flutter/android/**"
- "packages/flutter/example/android/**"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-apk-kotlin-versions:
name: "APK | Kotlin lang ${{ matrix.kotlin_language_version }}"
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: packages/flutter/example
strategy:
fail-fast: false
matrix:
include:
- kotlin_language_version: "1.7"
kotlin_android_plugin_version: "2.0.21"
- kotlin_language_version: "2.3"
kotlin_android_plugin_version: "2.3.0"
env:
KOTLIN_LANGUAGE_VERSION: ${{ matrix.kotlin_language_version }}
KOTLIN_ANDROID_PLUGIN_VERSION: ${{ matrix.kotlin_android_plugin_version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: "temurin"
java-version: "17"
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
with:
channel: stable
- name: Flutter pub get
run: flutter pub get
- name: Build APK | Kotlin lang ${{ matrix.kotlin_language_version }} | plugin ${{ matrix.kotlin_android_plugin_version }}
run: flutter build apk --debug --target-platform=android-x64
- name: Verify build artifacts
run: |
if [ -f "build/app/outputs/flutter-apk/app-debug.apk" ]; then
echo "APK build successful with Kotlin language version ${{ matrix.kotlin_language_version }}"
ls -lh build/app/outputs/flutter-apk/app-debug.apk
else
echo "APK build failed - artifact not found"
exit 1
fi