1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def localProperties = new Properties ()
28def localPropertiesFile = rootProject. file(' local.properties' )
39if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612 }
713}
814
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-
1415def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1516if (flutterVersionCode == null ) {
1617 flutterVersionCode = ' 1'
@@ -21,33 +22,33 @@ if (flutterVersionName == null) {
2122 flutterVersionName = ' 1.0'
2223}
2324
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2825android {
29- packagingOptions {
30- exclude ' META-INF/DEPENDENCIES'
26+ namespace " com.woosignal.android"
27+ compileSdk flutter. compileSdkVersion
28+ ndkVersion flutter. ndkVersion
29+
30+ compileOptions {
31+ sourceCompatibility JavaVersion . VERSION_1_8
32+ targetCompatibility JavaVersion . VERSION_1_8
3133 }
3234
33- compileSdkVersion 33
35+ kotlinOptions {
36+ jvmTarget = ' 1.8'
37+ }
3438
3539 sourceSets {
3640 main. java. srcDirs + = ' src/main/kotlin'
3741 }
3842
39- lintOptions {
40- disable ' InvalidPackage'
41- }
42-
4343 defaultConfig {
4444 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4545 applicationId " com.woosignal.android"
46- minSdkVersion 21
47- targetSdkVersion 33
46+ // You can update the following values to match your application needs.
47+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48+ minSdkVersion 33
49+ targetSdkVersion flutter. targetSdkVersion
4850 versionCode flutterVersionCode. toInteger()
4951 versionName flutterVersionName
50- multiDexEnabled true
5152 }
5253
5354 buildTypes {
@@ -63,7 +64,4 @@ flutter {
6364 source ' ../..'
6465}
6566
66- dependencies {
67- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
68- implementation " androidx.multidex:multidex:2.0.1"
69- }
67+ dependencies {}
0 commit comments