From 23f2a7c2bb649e84763f0ba6489acf5d9487e185 Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Tue, 19 Mar 2024 12:49:54 +0200 Subject: [PATCH] build(package_info_plus)!: Target Java 17 on Android (#2728) --- .../package_info_plus/android/build.gradle | 6 +++--- .../package_info_plus/example/android/app/build.gradle | 6 +++--- .../android/app/gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/package_info_plus/package_info_plus/android/build.gradle b/packages/package_info_plus/package_info_plus/android/build.gradle index 9f0f61f0eb..47bd7eb22d 100644 --- a/packages/package_info_plus/package_info_plus/android/build.gradle +++ b/packages/package_info_plus/package_info_plus/android/build.gradle @@ -31,12 +31,12 @@ android { namespace 'dev.fluttercommunity.plus.packageinfo' compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = 17 } defaultConfig { diff --git a/packages/package_info_plus/package_info_plus/example/android/app/build.gradle b/packages/package_info_plus/package_info_plus/example/android/app/build.gradle index 497e4d474b..5f0213a4e5 100644 --- a/packages/package_info_plus/package_info_plus/example/android/app/build.gradle +++ b/packages/package_info_plus/package_info_plus/example/android/app/build.gradle @@ -31,12 +31,12 @@ android { namespace 'io.flutter.plugins.packageinfoexample' compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = 17 } sourceSets { diff --git a/packages/package_info_plus/package_info_plus/example/android/app/gradle/wrapper/gradle-wrapper.properties b/packages/package_info_plus/package_info_plus/example/android/app/gradle/wrapper/gradle-wrapper.properties index 31cca49130..fce403e45e 100644 --- a/packages/package_info_plus/package_info_plus/example/android/app/gradle/wrapper/gradle-wrapper.properties +++ b/packages/package_info_plus/package_info_plus/example/android/app/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists