Skip to content

Commit 7223cf8

Browse files
authored
Merge pull request #211
- Add documentation - Remove deprecated dependencies - Update the Android build system - Move to Flutter 3.27.4
2 parents 60010cf + 4413282 commit 7223cf8

36 files changed

Lines changed: 648 additions & 484 deletions

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "3.22.2"
2+
"flutter": "3.27.4"
33
}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
# FVM Version Cache
1212
.fvm/
1313
/.dart_tool/
14+
15+
# Localizations
16+
/lib/l10n/app_localizations*.dart
17+
/l10n/untranslated.json
18+
19+
# Disable targeting web :
20+
/lib/generated_plugin_registrant.dart

android/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ GeneratedPluginRegistrant.java
1010
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
1111
key.properties
1212
/build/.last_build_id
13+
14+
# Remove AGP temp files
15+
/.idea/
16+
/build/

android/app/build.gradle

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
257
def keystoreProperties = new Properties()
268
def keystorePropertiesFile = rootProject.file('key.properties')
279
if (keystorePropertiesFile.exists()) {
2810
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2911
}
3012

3113
android {
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"
5439
minSdkVersion 21
5540
targetSdkVersion 34
56-
versionCode flutterVersionCode.toInteger()
57-
versionName flutterVersionName
41+
versionCode = flutter.versionCode
42+
versionName = flutter.versionName
5843
}
5944

6045
signingConfigs {
@@ -78,6 +63,6 @@ flutter {
7863
}
7964

8065
dependencies {
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
}

android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.remi.piwigo_ng">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.remi.piwigo_ng">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

4-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
3+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
54
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
65
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" android:minSdkVersion="33"/>
76
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" android:minSdkVersion="33"/>

android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.remi.piwigo_ng">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
44
android.jetifier.ignorelist=bcprov-jdk15on
5+
android.nonTransitiveRClass=false
6+
android.nonFinalResIds=false

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip

android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.1.3" apply false
22-
id "org.jetbrains.kotlin.android" version "1.9.22" apply false
21+
id "com.android.application" version '8.9.1' apply false
22+
id "org.jetbrains.kotlin.android" version "2.0.21" apply false
2323
}
2424

2525
include ":app"

0 commit comments

Comments
 (0)