Revert to Java version 11

This commit is contained in:
davidoskky 2023-08-19 11:33:34 +02:00
parent 85d966f54b
commit 1e6bc57751
2 changed files with 6 additions and 5 deletions

View File

@ -57,13 +57,13 @@ android {
compileOptions { compileOptions {
isCoreLibraryDesugaringEnabled = true isCoreLibraryDesugaringEnabled = true
// Flag to enable support for the new language APIs // Flag to enable support for the new language APIs
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_11
} }
// For Kotlin projects // For Kotlin projects
kotlinOptions { kotlinOptions {
jvmTarget = "17" jvmTarget = "11"
} }
compileSdk = 33 compileSdk = 33
buildToolsVersion = "33.0.0" buildToolsVersion = "33.0.0"

View File

@ -17,6 +17,7 @@ plugins {
kotlin { kotlin {
androidTarget() androidTarget()
jvmToolchain(11)
listOf( listOf(
iosX64(), iosX64(),
@ -108,8 +109,8 @@ android {
minSdk = 21 minSdk = 21
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_11
} }
namespace = "bou.amine.apps.readerforselfossv2" namespace = "bou.amine.apps.readerforselfossv2"
} }