1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
7+ kotlin {
8+ jvmToolchain {
9+ languageVersion = JavaLanguageVersion . of(17 )
10+ vendor = JvmVendorSpec . AZUL
11+ }
12+ }
13+
114def localProperties = new Properties ()
215def localPropertiesFile = rootProject. file(' local.properties' )
316if (localPropertiesFile. exists()) {
@@ -6,11 +19,6 @@ if (localPropertiesFile.exists()) {
619 }
720}
821
9- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10- if (flutterRoot == null ) {
11- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12- }
13-
1422def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1523if (flutterVersionCode == null ) {
1624 flutterVersionCode = ' 1'
@@ -21,12 +29,9 @@ if (flutterVersionName == null) {
2129 flutterVersionName = ' 1.0'
2230}
2331
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2832android {
29- compileSdkVersion 33
33+ compileSdkVersion 34
34+ namespace " com.hoc.node_auth"
3035
3136 compileOptions {
3237 sourceCompatibility JavaVersion . VERSION_1_8
@@ -45,7 +50,7 @@ android {
4550 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4651 applicationId " com.hoc.node_auth"
4752 minSdkVersion 21
48- targetSdkVersion 33
53+ targetSdkVersion 34
4954 versionCode flutterVersionCode. toInteger()
5055 versionName flutterVersionName
5156 multiDexEnabled true
@@ -65,11 +70,10 @@ flutter {
6570}
6671
6772dependencies {
68- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
6973 implementation " androidx.multidex:multidex:2.0.1"
7074
7175 implementation " com.google.crypto.tink:tink-android:1.7.0"
7276
73- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 '
74- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 '
77+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC.2 '
78+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0-RC.2 '
7579}
0 commit comments