Skip to content

Commit 0ac23eb

Browse files
authored
Merge pull request #216 from Piwigo/develop
2 parents 2ac26cb + cf1d272 commit 0ac23eb

48 files changed

Lines changed: 1882 additions & 241 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fvmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "3.27.4"
3+
}

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/.idea/
22
/test/
33
/build/
4-
/pubspec.lock
54
/flutter_01.log
65
/.flutter-plugins
76
/.flutter-plugins-dependencies
87
/.packages
98

109
*.env
10+
11+
# FVM Version Cache
12+
.fvm/
13+
/.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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ 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/
17+
18+
# Gradle build files
19+
/app/build/

android/app/build.gradle

Lines changed: 15 additions & 30 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"
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

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/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ allprojects {
55
}
66
}
77

8-
rootProject.buildDir = '../build'
8+
rootProject.layout.buildDirectory.set(layout.projectDirectory.dir("../build"))
99
subprojects {
10-
project.buildDir = "${rootProject.buildDir}/${project.name}"
10+
project.layout.buildDirectory.set(rootProject.layout.buildDirectory.dir("$project.name"))
1111
project.evaluationDependsOn(':app')
1212
}
1313

1414
tasks.register("clean", Delete) {
15-
delete rootProject.buildDir
16-
}
15+
delete rootProject.layout.buildDirectory
16+
}

android/gradle.properties

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
org.gradle.jvmargs=-Xmx1536M
2-
android.useAndroidX=true
1+
## For more details on how to configure your build environment visit
2+
# http://www.gradle.org/docs/current/userguide/build_environment.html
3+
#
4+
# Specifies the JVM arguments used for the daemon process.
5+
# The setting is particularly useful for tweaking memory settings.
6+
# Default value: -Xmx1024m -XX:MaxPermSize=256m
7+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8+
#
9+
# When configured, Gradle will run in incubating parallel mode.
10+
# This option should only be used with decoupled projects. For more details, visit
11+
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
12+
# org.gradle.parallel=true
13+
#Tue Apr 22 14:46:56 CEST 2025
314
android.enableJetifier=true
415
android.jetifier.ignorelist=bcprov-jdk15on
16+
android.nonFinalResIds=false
17+
android.nonTransitiveRClass=false
18+
android.useAndroidX=true
19+
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"

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

0 commit comments

Comments
 (0)