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,10 +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 GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12
- }
13
15
14
16
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
17
if (flutterVersionCode == null ) {
@@ -21,9 +23,6 @@ if (flutterVersionName == null) {
21
23
flutterVersionName = ' 1.0'
22
24
}
23
25
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
26
28
27
def keystoreProperties = new Properties ()
29
28
def keystorePropertiesFile = rootProject. file(' key.properties' )
@@ -32,17 +31,18 @@ if (keystorePropertiesFile.exists()) {
32
31
}
33
32
34
33
android {
35
- compileSdkVersion 33
34
+ compileSdkVersion 34
36
35
37
36
sourceSets {
38
37
main. java. srcDirs + = ' src/main/kotlin'
39
38
}
40
39
40
+ namespace ' com.trisven.safenotes'
41
41
defaultConfig {
42
42
43
43
applicationId " com.trisven.safenotes"
44
44
minSdkVersion 25
45
- targetSdkVersion 33
45
+ targetSdkVersion 34
46
46
versionCode flutterVersionCode. toInteger()
47
47
versionName flutterVersionName
48
48
}
@@ -69,13 +69,19 @@ android {
69
69
}
70
70
}
71
71
72
+ compileOptions {
73
+ sourceCompatibility JavaVersion . VERSION_17
74
+ targetCompatibility JavaVersion . VERSION_17
75
+ }
76
+
77
+ kotlinOptions {
78
+ jvmTarget= 17
79
+ }
80
+
72
81
}
73
82
74
83
flutter {
75
84
source ' ../..'
76
85
}
77
86
78
- dependencies {
79
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
80
- }
81
87
// android.buildTypes.release.ndk.debugSymbolLevel = 'FULL'
0 commit comments