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,18 +22,9 @@ 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-
28- def keystoreProperties = new Properties ()
29- def keystorePropertiesFile = rootProject. file(' key.properties' )
30- if (keystorePropertiesFile. exists()) {
31- keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
32- }
33-
3425android {
35- compileSdkVersion 34
26+ namespace " com.doreanbyte.katswiri"
27+ compileSdkVersion flutter. compileSdkVersion
3628 ndkVersion flutter. ndkVersion
3729
3830 compileOptions {
@@ -49,37 +41,20 @@ android {
4941 }
5042
5143 defaultConfig {
52- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
5344 applicationId " com.doreanbyte.katswiri"
54- // You can update the following values to match your application needs.
55- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
56- minSdkVersion 19
45+ minSdkVersion flutter. minSdkVersion
5746 targetSdkVersion flutter. targetSdkVersion
5847 versionCode flutterVersionCode. toInteger()
5948 versionName flutterVersionName
6049 }
6150
62- signingConfigs {
63- release {
64- keyAlias keystoreProperties[' keyAlias' ]
65- keyPassword keystoreProperties[' keyPassword' ]
66- storeFile keystoreProperties[' storeFile' ] ? file(keystoreProperties[' storeFile' ]) : null
67- storePassword keystoreProperties[' storePassword' ]
68- }
69- }
70-
71- buildTypes {
72- release {
73- signingConfig signingConfigs. release
74- }
75- }
76-
51+ buildTypes {
52+ release {
53+ signingConfig signingConfigs. debug
54+ }
55+ }
7756}
7857
7958flutter {
8059 source ' ../..'
8160}
82-
83- dependencies {
84- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
85- }
0 commit comments