1+ buildscript {
2+ ext. kotlin_version = ' 2.2.0'
3+ repositories {
4+ google()
5+ mavenCentral()
6+ }
7+
8+ dependencies {
9+ classpath ' com.android.tools.build:gradle:8.9.1'
10+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11+ }
12+ }
13+
114plugins {
215 id " com.android.application"
316 id " kotlin-android"
@@ -23,9 +36,8 @@ if (flutterVersionName == null) {
2336}
2437
2538android {
26- compileSdk 34
27-
2839 namespace ' com.example.example'
40+ compileSdk = flutter. compileSdkVersion
2941
3042 compileOptions {
3143 sourceCompatibility JavaVersion . VERSION_17
@@ -45,13 +57,13 @@ android {
4557 }
4658
4759 defaultConfig {
48- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4960 applicationId " com.example.example"
50- minSdk 21
51- targetSdk 34
61+
62+ minSdk flutter. minSdkVersion
63+ targetSdk flutter. targetSdkVersion
64+
5265 versionCode flutterVersionCode. toInteger()
5366 versionName flutterVersionName
54- multiDexEnabled true
5567 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
5668 }
5769
@@ -71,7 +83,7 @@ flutter {
7183dependencies {
7284 testImplementation ' junit:junit:4.13.2'
7385 testImplementation " com.google.truth:truth:1.4.4"
74- androidTestImplementation ' androidx.test:runner:1.6.1 '
75- androidTestImplementation ' androidx.test.espresso:espresso-core:3.6.1 '
76- api ' androidx.test:core:1.6.1 '
86+ androidTestImplementation ' androidx.test:runner:1.7.0 '
87+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.7.0 '
88+ api ' androidx.test:core:1.7.0 '
7789}
0 commit comments