@@ -12,24 +12,15 @@ if (localPropertiesFile.exists()) {
1212 }
1313}
1414
15- def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
16- if (flutterVersionCode == null ) {
17- flutterVersionCode = ' 1'
18- }
19-
20- def flutterVersionName = localProperties. getProperty(' flutter.versionName' )
21- if (flutterVersionName == null ) {
22- flutterVersionName = ' 1.0'
23- }
24-
2515def keystoreProperties = new Properties ()
2616def keystorePropertiesFile = rootProject. file(' key.properties' )
2717if (keystorePropertiesFile. exists()) {
2818 keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
2919}
3020
3121android {
32- compileSdkVersion 36
22+ compileSdkVersion flutter. compileSdkVersion
23+ ndkVersion flutter. ndkVersion
3324
3425 sourceSets {
3526 main. java. srcDirs + = ' src/main/kotlin'
@@ -42,15 +33,13 @@ android {
4233 kotlinOptions {
4334 jvmTarget = 17
4435 }
45- ndkVersion = flutter. ndkVersion
46-
4736
4837 defaultConfig {
4938 applicationId " com.unicornsonlsd.finamp"
5039 minSdkVersion flutter. minSdkVersion
51- targetSdkVersion 35
52- versionCode flutterVersionCode . toInteger()
53- versionName flutterVersionName
40+ targetSdkVersion flutter . targetSdkVersion
41+ versionCode flutter . versionCode
42+ versionName flutter . versionName
5443 }
5544 signingConfigs {
5645 release {
@@ -77,8 +66,10 @@ android {
7766 // minifyEnabled false
7867 }
7968 profile {
80- // https://github.com/flutter/flutter/issues/169215
81- // applicationIdSuffix '.profile'
69+ if (signingConfigs. hasProperty(' profile' )) {
70+ signingConfig signingConfigs. profile
71+ }
72+ applicationIdSuffix ' .profile'
8273 // minifyEnabled true // avoid dexing issues
8374 resValue " string" , " app_name" , " Finamp Profile"
8475 }
@@ -102,8 +93,8 @@ flutter {
10293}
10394
10495dependencies {
105- implementation ' androidx.appcompat:appcompat:1.3 .1'
106- implementation ' androidx.mediarouter:mediarouter:1.7.0 '
107- implementation " androidx.core:core-splashscreen:1.0 .0"
108- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1 "
96+ implementation ' androidx.appcompat:appcompat:1.7 .1'
97+ implementation ' androidx.mediarouter:mediarouter:1.8.1 '
98+ implementation " androidx.core:core-splashscreen:1.2 .0"
99+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2 "
109100}
0 commit comments