@@ -26,14 +26,9 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626apply plugin : ' kotlin-android'
2727
2828android {
29- compileSdkVersion 33
30-
31- lintOptions {
32- disable ' InvalidPackage'
33- checkReleaseBuilds false
34- }
35- compileSdkVersion 33
36- ndkVersion = " 21.4.7075529"
29+ namespace ' com.example.flutter.squareup.sdk.reader'
30+ compileSdkVersion 34
31+ ndkVersion = " 26.1.10909125"
3732
3833 sourceSets {
3934 main. java. srcDirs + = ' src/main/kotlin'
@@ -43,30 +38,52 @@ android {
4338 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4439 applicationId " com.example.flutter.squareup.sdk.reader"
4540 minSdkVersion 26
46- targetSdkVersion 33
41+ targetSdkVersion 34
4742 versionCode flutterVersionCode. toInteger()
4843 versionName flutterVersionName
4944 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
5045 multiDexEnabled true
5146 }
5247
48+ compileOptions {
49+ sourceCompatibility JavaVersion . VERSION_1_8
50+ targetCompatibility JavaVersion . VERSION_1_8
51+ }
52+
53+ kotlinOptions {
54+ jvmTarget = " 1.8"
55+ }
56+
57+ java {
58+ toolchain {
59+ languageVersion = JavaLanguageVersion . of(17 )
60+ }
61+ }
62+
5363 buildTypes {
5464 release {
5565 // TODO: Add your own signing config for the release build.
5666 // Signing with the debug keys for now, so `flutter run --release` works.
5767 signingConfig signingConfigs. debug
58- }
68+ minifyEnabled false
69+ shrinkResources false }
5970 }
60-
6171 packagingOptions {
62- exclude(" META-INF/*.kotlin_module" )
72+ resources {
73+ excludes + = [' META-INF/*.kotlin_module' ]
74+ }
6375 }
6476
77+
6578 dexOptions {
6679 preDexLibraries true
6780 jumboMode true
6881 keepRuntimeAnnotatedClasses false
6982 }
83+ lint {
84+ checkReleaseBuilds false
85+ disable ' InvalidPackage'
86+ }
7087}
7188
7289flutter {
0 commit comments