77
88// apply plugin: 'com.google.gms.google-services'
99
10+ plugins {
11+ id " com.android.application"
12+ id " kotlin-android"
13+ id " dev.flutter.flutter-gradle-plugin"
14+ }
15+
1016def localProperties = new Properties ()
1117def localPropertiesFile = rootProject. file(' local.properties' )
1218if (localPropertiesFile. exists()) {
@@ -15,11 +21,6 @@ if (localPropertiesFile.exists()) {
1521 }
1622}
1723
18- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
19- if (flutterRoot == null ) {
20- throw new FileNotFoundException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
21- }
22-
2324def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
2425if (flutterVersionCode == null ) {
2526 flutterVersionCode = ' 1'
@@ -33,9 +34,6 @@ if (flutterVersionName == null) {
3334
3435
3536
36- apply plugin : ' com.android.application'
37- apply plugin : ' kotlin-android'
38- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
3937
4038android {
4139 compileSdkVersion 33
@@ -70,15 +68,6 @@ android {
7068 }
7169 }
7270
73- signingConfigs {
74- release {
75- storeFile file(" ./keystore.jks" )
76- storePassword System . getenv(" SIGNING_KEY_STORE_PASSWORD" )
77- keyAlias " TaleTime-Key"
78- keyPassword System . getenv(" SIGNING_KEY_KEY_PASSWORD" )
79- }
80- }
81-
8271 flavorDimensions " environment"
8372
8473 productFlavors {
@@ -94,13 +83,13 @@ android {
9483 dimension " environment"
9584 applicationIdSuffix " .stageing"
9685 resValue " string" , " app_name" , " [Staging] TaleTime"
97- signingConfig signingConfigs. release
86+ signingConfig signingConfigs. debug
9887 }
9988
10089 prod {
10190 dimension " environment"
10291 resValue " string" , " app_name" , " TaleTime"
103- signingConfig signingConfigs. release
92+ signingConfig signingConfigs. debug
10493 }
10594 }
10695
@@ -112,7 +101,6 @@ flutter {
112101}
113102
114103dependencies {
115- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
116104 // implementation platform('com.google.firebase:firebase-bom:30.1.0')
117105 implementation ' com.google.firebase:firebase-analytics'
118106 implementation ' com.android.support:multidex:1.0.3'
0 commit comments