1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def localProperties = new Properties ()
2
8
def localPropertiesFile = rootProject. file(' local.properties' )
3
9
if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
6
12
}
7
13
}
8
14
9
- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10
- if (flutterRoot == null ) {
11
- throw new Exception (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12
- }
13
-
14
15
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
16
if (flutterVersionCode == null ) {
16
17
flutterVersionCode = ' 1'
@@ -21,16 +22,13 @@ if (flutterVersionName == null) {
21
22
flutterVersionName = ' 1.0'
22
23
}
23
24
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
25
def keystoreProperties = new Properties ()
28
26
def keystorePropertiesFile = rootProject. file(' key.properties' )
29
27
if (keystorePropertiesFile. exists()) {
30
28
keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
31
29
}
32
30
33
- // Skip Crashlytics upload. It breaks the procesmicof building.
31
+ // Skip Crashlytics upload. It breaks the process of building.
34
32
gradle. taskGraph. whenReady {
35
33
tasks. each { task ->
36
34
if (task. name. contains(" uploadCrashlyticsMappingFileRelease" )) {
@@ -41,7 +39,7 @@ gradle.taskGraph.whenReady {
41
39
android {
42
40
compileSdkVersion 34
43
41
44
- ndkVersion " 25.1.8937393 "
42
+ ndkVersion " 26.2.11394342 "
45
43
46
44
sourceSets {
47
45
main. java. srcDirs + = ' src/main/kotlin'
@@ -83,6 +81,6 @@ flutter {
83
81
}
84
82
85
83
dependencies {
86
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$k otlin_version "
84
+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.22 "
87
85
implementation ' com.google.android.material:material:1.11.0'
88
86
}
0 commit comments