@@ -4,43 +4,29 @@ plugins {
44 id " dev.flutter.flutter-gradle-plugin"
55}
66
7- def localProperties = new Properties ()
8- def localPropertiesFile = rootProject. file(' local.properties' )
9- if (localPropertiesFile. exists()) {
10- localPropertiesFile. withReader(' UTF-8' ) { reader ->
11- localProperties. load(reader)
12- }
13- }
14-
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-
257def keystoreProperties = new Properties ()
268def keystorePropertiesFile = rootProject. file(' key.properties' )
279if (keystorePropertiesFile. exists()) {
2810 keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
2911}
3012
3113android {
32- compileSdkVersion 34
14+ namespace ' com.remi.piwigo_ng'
15+ // compileSdkVersion flutter.compileSdkVersion
16+ // ndkVersion = flutter.ndkVersion
17+ compileSdkVersion 36
18+ ndkVersion " 28.0.13004108"
3319
3420 compileOptions {
3521 // Flag to enable support for the new language APIs
3622 coreLibraryDesugaringEnabled true
37- // Sets Java compatibility to Java 11
38- sourceCompatibility JavaVersion . VERSION_11
39- targetCompatibility JavaVersion . VERSION_11
23+ // Sets Java compatibility to Java 17
24+ sourceCompatibility JavaVersion . VERSION_17
25+ targetCompatibility JavaVersion . VERSION_17
4026 }
4127
4228 kotlinOptions {
43- jvmTarget = ' 11 '
29+ jvmTarget = ' 17 '
4430 }
4531
4632 sourceSets {
@@ -49,12 +35,11 @@ android {
4935
5036 defaultConfig {
5137 multiDexEnabled true
52- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
5338 applicationId " com.piwigo.piwigo_ng"
54- minSdkVersion 21
55- targetSdkVersion 34
56- versionCode flutterVersionCode . toInteger()
57- versionName flutterVersionName
39+ minSdkVersion 26
40+ targetSdkVersion 36
41+ versionCode = flutter . versionCode
42+ versionName = flutter . versionName
5843 }
5944
6045 signingConfigs {
@@ -78,6 +63,6 @@ flutter {
7863}
7964
8065dependencies {
81- implementation " androidx.window:window:1.0 .0"
82- coreLibraryDesugaring ' com.android.tools:desugar_jdk_libs:1 .1.5'
66+ implementation " androidx.window:window:1.3 .0"
67+ coreLibraryDesugaring ' com.android.tools:desugar_jdk_libs:2 .1.5'
8368}
0 commit comments