diff --git a/CHANGELOG.md b/CHANGELOG.md index cbbb60a..006674d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.9.0] - 2026-06-08 + +- Migrates to built-in Kotlin +- Updates minimum supported SDK version to Flutter 3.44/Dart 3.12 + ## [0.8.0] - 2026-05-08 - iOS!: SwiftPM support diff --git a/android/build.gradle b/android/build.gradle index 36712c8..28d07cc 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,15 +2,13 @@ group = "com.cloudacy.native_exif" version = "1.0-SNAPSHOT" buildscript { - ext.kotlin_version = "2.2.20" repositories { google() mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:8.11.1") - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") + classpath "com.android.tools.build:gradle:8.11.1" } } @@ -22,7 +20,6 @@ allprojects { } apply plugin: "com.android.library" -apply plugin: "kotlin-android" android { namespace = "com.cloudacy.native_exif" @@ -34,10 +31,6 @@ android { targetCompatibility = JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = JavaVersion.VERSION_17 - } - sourceSets { main.java.srcDirs += "src/main/kotlin" } @@ -51,3 +44,9 @@ android { implementation("androidx.exifinterface:exifinterface:1.4.2") } } + +kotlin { + compilerOptions { + jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 + } +} diff --git a/example/android/app/build.gradle.kts b/example/android/app/build.gradle.kts index a13d2d6..a27fcea 100644 --- a/example/android/app/build.gradle.kts +++ b/example/android/app/build.gradle.kts @@ -1,6 +1,5 @@ plugins { id("com.android.application") - id("kotlin-android") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id("dev.flutter.flutter-gradle-plugin") } @@ -15,10 +14,6 @@ android { targetCompatibility = JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = JavaVersion.VERSION_17.toString() - } - defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "com.cloudacy.native_exif_example" @@ -42,3 +37,9 @@ android { flutter { source = "../.." } + +kotlin { + compilerOptions { + jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 + } +} diff --git a/example/android/gradle.properties b/example/android/gradle.properties index fbee1d8..b2d843d 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -1,2 +1,6 @@ org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true +# This builtInKotlin flag was added automatically by Flutter migrator +android.builtInKotlin=true +# This newDsl flag was added automatically by Flutter migrator +android.newDsl=true diff --git a/pubspec.yaml b/pubspec.yaml index ba857bf..882d94e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: native_exif description: A plugin to read and write exif data of images. -version: 0.8.0 +version: 0.9.0 homepage: https://github.com/cloudacy/native_exif environment: - sdk: ^3.11.0 - flutter: '>=3.41.0' + sdk: ^3.12.0 + flutter: '>=3.44.0' dependencies: flutter: