From 65af55c5e8736fd842d293cced24b90fdac7b267 Mon Sep 17 00:00:00 2001 From: GleammerRay <101527589+GleammerRay@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:10:17 +0000 Subject: [PATCH] Address Inconsistent JVM-target compatibility. (#192) --- android/build.gradle | 11 +++++++++++ example/android/app/build.gradle | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 065c6d8..ce71aa8 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,8 +25,19 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + namespace 'com.fintasys.emoji_picker_flutter' + compileSdkVersion 34 + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' } diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 1474f31..6adb2f0 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -28,6 +28,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 34 + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' }