From ac250c17f7dddb1260d703b481b6bb4d3a2bbbd9 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 28 Jun 2024 16:08:12 +0200 Subject: [PATCH] enable building on jdk 17 and up --- android/build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 08f50d5..761a58e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,14 +25,19 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' -kotlin { - jvmToolchain(17) -} - android { namespace "design.codeux.biometric_storage" compileSdk 31 + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = '17' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' }