From 6d953d056349bb8c18d19b85fd718e0ceeace851 Mon Sep 17 00:00:00 2001 From: Julian Bissekkou Date: Tue, 19 Mar 2024 10:48:34 +0100 Subject: [PATCH 1/2] set compileOptions and configure kotlinOptions --- android/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 01fc4fb..7c521ab 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -34,6 +34,13 @@ android { defaultConfig { minSdkVersion 17 } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } } dependencies { From 6dcbef65bea58d7d184fd44dc0871ea8825d0fe7 Mon Sep 17 00:00:00 2001 From: Julian Bissekkou Date: Tue, 15 Oct 2024 09:05:23 +0200 Subject: [PATCH 2/2] set namespace --- android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 7c521ab..6ef7a63 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,11 @@ apply plugin: 'kotlin-android' android { compileSdkVersion 33 + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'appmire.be.flutterjailbreakdetection' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' }