From aa4e174b4d95ec7441ffae1a6a511bb797c82223 Mon Sep 17 00:00:00 2001 From: JesbinJose Date: Sat, 28 Dec 2024 20:58:21 +0530 Subject: [PATCH] `Update Android build.gradle to use Kotlin 2.1.0 and Android Gradle Plugin 8.6.0` --- android/build.gradle | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index b3ee973e..0d17684c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,14 +2,14 @@ group 'com.example.imagegallerysaver' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.7.10' + ext.kotlin_version = '2.1.0' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' + classpath 'com.android.tools.build:gradle:8.6.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -25,7 +25,12 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 30 + compileSdkVersion flutter.compileSdkVersion + namespace 'com.example.imagegallerysaver' + compileOptions { + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 + } sourceSets { main.java.srcDirs += 'src/main/kotlin'