Skip to content

Commit 7797703

Browse files
committed
Merge remote-tracking branch 'origin/master' into more_list_types
# Conflicts: # lib/api/ImageAPI.dart # lib/api/TagAPI.dart # lib/views/CategoryViewPage.dart # lib/views/ImageViewPage.dart # lib/views/RootCategoryViewPage.dart # lib/views/components/dialogs/tags_dialogs.dart
2 parents ed76d5f + 7a7da9d commit 7797703

154 files changed

Lines changed: 20479 additions & 8174 deletions

File tree

Some content is hidden

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

android/app/build.gradle

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,35 @@ if (keystorePropertiesFile.exists()) {
3131
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
3232
}
3333

34-
3534
android {
36-
compileSdkVersion 31
35+
compileSdkVersion 34
36+
37+
compileOptions {
38+
// Flag to enable support for the new language APIs
39+
coreLibraryDesugaringEnabled true
40+
// Sets Java compatibility to Java 8
41+
sourceCompatibility JavaVersion.VERSION_1_8
42+
targetCompatibility JavaVersion.VERSION_1_8
43+
}
44+
45+
kotlinOptions {
46+
jvmTarget = '1.8'
47+
}
3748

3849
sourceSets {
3950
main.java.srcDirs += 'src/main/kotlin'
4051
}
4152

4253
defaultConfig {
54+
multiDexEnabled true
4355
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4456
applicationId "com.piwigo.piwigo_ng"
4557
minSdkVersion 21
46-
targetSdkVersion 31
58+
targetSdkVersion 34
4759
versionCode flutterVersionCode.toInteger()
4860
versionName flutterVersionName
4961
}
62+
5063
signingConfigs {
5164
release {
5265
keyAlias keystoreProperties['keyAlias']
@@ -55,6 +68,7 @@ android {
5568
storePassword keystoreProperties['storePassword']
5669
}
5770
}
71+
5872
buildTypes {
5973
release {
6074
signingConfig signingConfigs.release
@@ -68,4 +82,6 @@ flutter {
6882

6983
dependencies {
7084
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
85+
implementation "androidx.window:window:1.0.0"
86+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
7187
}

android/app/src/main/AndroidManifest.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.remi.piwigo_ng">
33

4-
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
54
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
6-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
5+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
6+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" android:minSdkVersion="33"/>
7+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" android:minSdkVersion="33"/>
8+
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" android:minSdkVersion="33"/>
79
<uses-permission android:name="android.permission.CAMERA" />
810
<uses-permission android:name="android.permission.INTERNET"/>
11+
<uses-permission android:name="android.permission.VIBRATE" />
912

1013
<application
1114
android:label="Piwigo NG"
15+
android:name="${applicationName}"
1216
android:usesCleartextTraffic="true"
1317
android:requestLegacyExternalStorage="true"
18+
android:largeHeap="true"
19+
android:hardwareAccelerated="false"
1420
android:icon="@mipmap/ic_launcher">
1521
<activity
1622
android:name=".MainActivity"
@@ -49,12 +55,8 @@
4955
<data android:scheme="https" />
5056
</intent>
5157
<intent>
52-
<action android:name="android.intent.action.DIAL" />
53-
<data android:scheme="tel" />
54-
</intent>
55-
<intent>
56-
<action android:name="android.intent.action.SEND" />
57-
<data android:mimeType="*/*" />
58+
<action android:name="android.intent.action.VIEW" />
59+
<data android:scheme="file" />
5860
</intent>
5961
</queries>
6062
</manifest>

android/app/src/main/res/values/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
This Theme is only used starting with V2 of Flutter's Android embedding. -->
1515
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
1616
<item name="android:windowBackground">?android:colorBackground</item>
17+
<!--item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item-->
1718
</style>
1819
</resources>

android/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.21'
2+
ext.kotlin_version = '1.7.10'
33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:7.1.3'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
1313

1414
allprojects {
1515
repositories {
1616
google()
17-
jcenter()
17+
mavenCentral()
1818
}
1919
}
2020

2121
rootProject.buildDir = '../build'
2222
subprojects {
2323
project.buildDir = "${rootProject.buildDir}/${project.name}"
24-
}
25-
subprojects {
2624
project.evaluationDependsOn(':app')
2725
}
2826

29-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
3028
delete rootProject.buildDir
3129
}

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4-
android.jetifier.blacklist=bcprov-jdk15on
4+
android.jetifier.ignorelist=bcprov-jdk15on

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-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip

crowdin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
files:
2-
- source: /lib/l10n/app_en.arb
3-
translation: /lib/l10n/app_%two_letters_code%.arb
2+
- source: /l10n/app_en.arb
3+
translation: /l10n/app_%two_letters_code%.arb

l10n.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
arb-dir: lib/l10n
1+
arb-dir: l10n
22
template-arb-file: app_en.arb
33
output-localization-file: app_localizations.dart

0 commit comments

Comments
 (0)