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+ }
7+
18def localProperties = new Properties ()
29def localPropertiesFile = rootProject. file(' local.properties' )
310if (localPropertiesFile. exists()) {
@@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
613 }
714}
815
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-
1416def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1517if (flutterVersionCode == null ) {
1618 flutterVersionCode = ' 4'
@@ -21,42 +23,33 @@ if (flutterVersionName == null) {
2123 flutterVersionName = ' 0.2.1'
2224}
2325
24- apply plugin : ' com.android.application'
25- apply plugin : ' com.google.gms.google-services'
26- apply plugin : ' kotlin-android'
27- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
28-
2926def keystoreProperties = new Properties ()
3027def keystorePropertiesFile = rootProject. file(' key.properties' )
3128if (keystorePropertiesFile. exists()) {
3229 keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
3330}
3431
3532android {
36- compileSdkVersion 34
33+ namespace " com.ccextractor.ultimate_alarm_clock"
34+ compileSdkVersion 36
3735 ndkVersion flutter. ndkVersion
3836
3937 defaultConfig {
40- // You can update the following values to match your application needs.
41- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
42-
4338 applicationId " com.ccextractor.ultimate_alarm_clock"
4439 minSdkVersion 24
45- targetSdkVersion 34 // Updated to latest targetSdkVersion
40+ targetSdkVersion 34
4641 versionCode flutterVersionCode. toInteger()
4742 versionName flutterVersionName
4843 multiDexEnabled true
4944 }
5045
51-
52-
5346 compileOptions {
54- sourceCompatibility JavaVersion . VERSION_17 // Updated to Java 17
47+ sourceCompatibility JavaVersion . VERSION_17
5548 targetCompatibility JavaVersion . VERSION_17
5649 }
5750
5851 kotlinOptions {
59- jvmTarget = ' 17' // Updated to Java 17
52+ jvmTarget = ' 17'
6053 }
6154
6255 sourceSets {
@@ -93,12 +86,9 @@ flutter {
9386}
9487
9588dependencies {
96- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
97- implementation " org.jetbrains.kotlin:kotlin-stdlib:1.7.10"
98- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10"
99- implementation platform(' com.google.firebase:firebase-bom:32.0.0' ) // Updated Firebase BOM to latest
89+ implementation platform(' com.google.firebase:firebase-bom:32.0.0' )
10090 implementation ' com.google.firebase:protolite-well-known-types:18.0.0'
10191 implementation(" com.android.volley:volley:1.2.1" )
10292 implementation(" com.google.code.gson:gson:2.10.1" )
10393 implementation(" androidx.multidex:multidex:2.0.1" )
104- }
94+ }
0 commit comments