diff --git a/android/build.gradle b/android/build.gradle index 01fc4fb..6ef7a63 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,12 +28,24 @@ 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' } defaultConfig { minSdkVersion 17 } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } } dependencies {