1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ id " com.google.gms.google-services"
6
+ id " com.google.firebase.crashlytics"
7
+ }
8
+
1
9
def localProperties = new Properties ()
2
10
def localPropertiesFile = rootProject. file(' local.properties' )
3
11
if (localPropertiesFile. exists()) {
@@ -6,11 +14,6 @@ if (localPropertiesFile.exists()) {
6
14
}
7
15
}
8
16
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
-
14
17
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
18
if (flutterVersionCode == null ) {
16
19
throw new GradleException (" Flutter versionCode not found. Define flutter.versionCode in the local.properties file." )
@@ -27,18 +30,11 @@ if (keystorePropertiesFile.exists()) {
27
30
keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
28
31
}
29
32
30
- apply plugin : ' com.android.application'
31
- // START: FlutterFire Configuration
32
- apply plugin : ' com.google.gms.google-services'
33
- apply plugin : ' com.google.firebase.crashlytics'
34
- // END: FlutterFire Configuration
35
- apply plugin : ' kotlin-android'
36
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
37
-
38
33
android {
39
34
compileSdkVersion 34
40
35
41
36
compileOptions {
37
+ coreLibraryDesugaringEnabled true
42
38
sourceCompatibility JavaVersion . VERSION_1_8
43
39
targetCompatibility JavaVersion . VERSION_1_8
44
40
}
@@ -90,15 +86,22 @@ android {
90
86
signingConfig signingConfigs. release
91
87
}
92
88
}
89
+
90
+ namespace ' org.ksrvnjord.app'
93
91
}
94
92
95
93
flutter {
96
94
source ' ../..'
97
95
}
98
96
97
+ tasks. withType(JavaCompile ) {
98
+ options. compilerArgs << " -Xlint:deprecation"
99
+ }
100
+
99
101
dependencies {
100
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
101
102
implementation ' com.google.firebase:firebase-appcheck-debug:17.1.1'
102
103
implementation ' com.android.support:multidex:2.0.1'
104
+ coreLibraryDesugaring ' com.android.tools:desugar_jdk_libs:1.2.2'
105
+ implementation ' androidx.appcompat:appcompat:1.3.1'
103
106
}
104
107
0 commit comments