diff --git a/android/build.gradle b/android/build.gradle index e674cc45..ee607352 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -31,6 +31,15 @@ android { namespace 'com.kasem.receive_sharing_intent' } + 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 8aa2ed6d..817a8e41 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -31,6 +31,15 @@ android { namespace "com.kasem.receive_sharing_intent_example" compileSdkVersion 34 + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' }