From 1e144f030c383f6c148ce7e82f516d1f411f0284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Thu, 4 Jul 2024 11:47:21 +0200 Subject: [PATCH] fix: bring back Java 8 compatibility --- app/build.gradle | 7 +++---- build.gradle | 2 +- maps-ktx/build.gradle | 6 +++--- maps-utils-ktx/build.gradle | 6 +++--- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1a95be94..3c48dbda 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -43,18 +43,17 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = "17" + jvmTarget = "1.8" } namespace 'com.google.maps.android.ktx.demo' } dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) implementation libs.kotlinStdlib implementation libs.androidxAppcompat implementation libs.androidxCoreKtx diff --git a/build.gradle b/build.gradle index eee40c00..a9bdb32b 100644 --- a/build.gradle +++ b/build.gradle @@ -91,7 +91,7 @@ subprojects { project -> // Code coverage jacoco { - toolVersion = "0.8.7" + toolVersion = "0.8.12" } diff --git a/maps-ktx/build.gradle b/maps-ktx/build.gradle index 36c12fcf..ff432ef3 100644 --- a/maps-ktx/build.gradle +++ b/maps-ktx/build.gradle @@ -29,13 +29,13 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { freeCompilerArgs += '-Xexplicit-api=strict' - jvmTarget = "17" + jvmTarget = "1.8" } buildFeatures { viewBinding true diff --git a/maps-utils-ktx/build.gradle b/maps-utils-ktx/build.gradle index ae23af90..e0ebf3c4 100644 --- a/maps-utils-ktx/build.gradle +++ b/maps-utils-ktx/build.gradle @@ -34,13 +34,13 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { freeCompilerArgs += '-Xexplicit-api=strict' - jvmTarget = "17" + jvmTarget = "1.8" } buildFeatures { viewBinding true