Skip to content

Commit 936315d

Browse files
PiwigoNG 2.4.3
* Tone down colors in folder box Add TextOnBackgroundLight and TextOnBackgroundDark in the corresponding themes Add LabelMedium text style and use it in select_move_or_copy_modal.dart * Upgrade to flutter 3.38.2, bump dependencies (no major version bump) * #249 - Add author data support Add author data in json parsing and replace user preference in edit page. This should not influence default author upload * Fix #245 and #234 by adding a no tag mention at the bottom of the properties modal Add field in .arb file Remove preference import in edit view Add conditional Text if tag list is shorter than 1 * Add user agent header (#251) * Add Header to differentiate PiwigoNG from other API users Add an header to all types of query using package_info_plus. This add an header right before the query but the netcode being a mess it may not be applied everywhere. Ideally this should be a dio baseoption but async code can't run in init of a class and package info plus doesn't support non async calls A third party package with async calls seems like the worst way of implementing this but this seems like the only option * Upgrade to flutter 3.38.4, bump dependencies (no major version bump) * Fix community upload issues Set uploadChunkSize and fileKey when user has community status * New Crowdin updates (#246) * New translations app_en.arb (Chinese Simplified) * New translations app_en.arb (French) * New translations app_en.arb (Spanish) * New translations app_en.arb (German) * New translations app_en.arb (Lithuanian) * New translations app_en.arb (Slovak) * New translations app_en.arb (Chinese Simplified) * Upgrade to flutter 3.38.5 and FlutterSecureStorage 10.0.0 * Dart 3.10.4 * Flutter secure storage no longer on jetpack encrypt and should not fail on Android 16 * Change version to 2.4.2 * Upgrade to Flutter 3.41 and bump dependencies (#269) * Migrate to flutter 3.41.6 * Update deps via flutter pub get * Manually upgrade dependencies : - font_awesome_flutter: 10.10.0 -> 11.0.0 - drag_select_grid_view: 0.6.1 -> 0.7.6 - flutter_local_notifications: 19.1.0 -> 21.0.0 Convert local notification to named parameters * New Crowdin updates (#265) * New translations app_en.arb (Chinese Simplified) * New translations app_en.arb (Chinese Simplified) * New translations app_en.arb (Chinese Simplified) * New translations app_en.arb (Chinese Simplified) * Fix auto upload md5 url overflow issue and upgrade internals (#264) * Upgrade flutter and Prepare for AGP 9.0 Upgrades : - AGP 8.13.2 - kotlin 2.2.20 - Flutter 3.38.6 * Fix auto_upload by changing query from GET to POST * Fix #270 author upload field and upgrade file picker * Upgrade filePicker and associated dependencies Fix CWE-22 and allow static methods * Fix author upload issue Add filter on field that match author without removing default author --------- Co-authored-by: Remi Martin <71256855+remi-martin@users.noreply.github.com>
1 parent 268a582 commit 936315d

24 files changed

Lines changed: 307 additions & 235 deletions

.fvmrc

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

android/app/build.gradle.kts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22
import java.util.Properties
33
import java.io.FileInputStream
44

5+
/*
6+
When AGP 9 is released, we need to migrate the build system using this guide :
7+
https://docs.flutter.dev/release/breaking-changes/migrate-to-agp-9
8+
*/
9+
510
plugins {
611
id("com.android.application")
712
id("kotlin-android")
@@ -29,7 +34,6 @@ android {
2934
ndkVersion = "29.0.14206865 "
3035

3136
val compileJavaVersion = JavaVersion.VERSION_17
32-
val kotlinJvmTarget = JvmTarget.JVM_17
3337

3438
compileOptions {
3539
// Flag to enable support for the new language APIs
@@ -41,10 +45,11 @@ android {
4145

4246
kotlin {
4347
compilerOptions {
44-
jvmTarget = kotlinJvmTarget
48+
jvmTarget = JvmTarget.JVM_17
4549
}
4650
}
4751

52+
4853
defaultConfig {
4954
applicationId = "com.piwigo.piwigo_ng"
5055
multiDexEnabled = true
@@ -75,6 +80,6 @@ flutter {
7580
}
7681

7782
dependencies {
78-
implementation("androidx.window:window:1.5.0")
83+
implementation("androidx.window:window:1.5.1")
7984
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
8085
}

android/settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pluginManagement {
1919
plugins {
2020
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
2121
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
22-
id("com.android.application") version "8.13.0" apply false
23-
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
22+
id("com.android.application") version "8.13.2" apply false
23+
id("org.jetbrains.kotlin.android") version "2.3.0" apply false
2424
}
2525

2626
include(":app")

l10n/app_de.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"piwigoServer_wrongJSONobject": "Konnte das vom Piwigo-Server zurückgegebene JSON-Objekt nicht auswerten.",
3232
"piwigoServer_invalidJSONobject": "Der Piwigo-Server hat kein gültiges JSON-Objekt zurückgegeben.",
3333
"piwigoServer_emptyJSONobject": "Der Piwigo Server hat ein leeres JSON-Objekt zurückgegeben.",
34+
"noTags": "No tags",
3435
"coreDataStore_WarningTitle": "Warnung",
3536
"coreDataStore_WarningMessage": "Während Piwigo versuchte, den Daten-Cache zu lesen, ist ein schwerwiegender Anwendungsfehler aufgetreten. Ein neuer Zwischenspeicher wurde erstellt.",
3637
"coreDataFetch_DigestError": "Konnte die abgerufenen Daten nicht verarbeiten.",

l10n/app_en.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"piwigoServer_emptyJSONobject": "Piwigo server did return an empty JSON object.",
4040

4141

42-
42+
"noTags": "No tags",
4343

4444
"coreDataStore_WarningTitle": "Warning",
4545
"coreDataStore_WarningMessage": "A serious application error occurred while Piwigo tried to read the data cache. A new cache has therefore been created.",

l10n/app_es.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"piwigoServer_wrongJSONobject": "No se ha podido procesar el objeto JSON devuelto por el servidor Piwigo.",
3232
"piwigoServer_invalidJSONobject": "El servidor Piwigo no ha devuelto un objeto JSON válido.",
3333
"piwigoServer_emptyJSONobject": "El servidor Piwigo devolvió un objeto JSON vacío.",
34+
"noTags": "No tags",
3435
"coreDataStore_WarningTitle": "Aviso",
3536
"coreDataStore_WarningMessage": "Se ha producido un error grave en la aplicación mientras Piwigo intentaba leer la caché de datos. Por lo tanto, se ha creado una nueva caché.",
3637
"coreDataFetch_DigestError": "No se han podido procesar los datos obtenidos.",

l10n/app_fr.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"piwigoServer_wrongJSONobject": "Impossible d'analyser l'objet JSON retourné par le serveur Piwigo.",
3232
"piwigoServer_invalidJSONobject": "Le serveur Piwigo n'a pas renvoyé un objet JSON valide.",
3333
"piwigoServer_emptyJSONobject": "Le serveur Piwigo a retourné un fichier JSON vide.",
34+
"noTags": "No tags",
3435
"coreDataStore_WarningTitle": "Avertissement",
3536
"coreDataStore_WarningMessage": "Une erreur sérieuse s'est produite pendant que Piwigo tentait de lire le cache de données. Un nouveau cache a donc été créé.",
3637
"coreDataFetch_DigestError": "Impossible de digérer les données récupérées.",

l10n/app_lt.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"piwigoServer_wrongJSONobject": "Nepavyko apdoroti JSON objekto grąžinto iš Piwigo serverio.",
3232
"piwigoServer_invalidJSONobject": "Piwigo serveris grąžino netinkamą JSON objektą.",
3333
"piwigoServer_emptyJSONobject": "Piwigo serveris grąžino tuščią JSON objektą.",
34+
"noTags": "No tags",
3435
"coreDataStore_WarningTitle": "Įspėjimas",
3536
"coreDataStore_WarningMessage": "Įvyko rimta programos klaida Piwigo bandant nuskaityti duomenis iš podėlio. Todėl buvo sukurtas naujas podėlis.",
3637
"coreDataFetch_DigestError": "Nepavyko apdoroti gautų duomenų.",

l10n/app_sk.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"piwigoServer_wrongJSONobject": "Neviem spracovať obsah JSON objektu, ktorý vrátil Piwigo server.",
3232
"piwigoServer_invalidJSONobject": "Piwigo server nevrátil platný JSON objekt.",
3333
"piwigoServer_emptyJSONobject": "Piwigo server vrátil prázdny JSON objekt.",
34+
"noTags": "No tags",
3435
"coreDataStore_WarningTitle": "Upozornenie",
3536
"coreDataStore_WarningMessage": "Nastala aplikačná chyba, keď Piwigo čítal z vyrovnávacej pamäte, preto bude vytvorená znovu.",
3637
"coreDataFetch_DigestError": "Nie je možné spracovať načítané údaje.",

l10n/app_zh.arb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"piwigoServer_wrongJSONobject": "无法解析 Piwigo 服务器传送的 JSON 对象。",
3232
"piwigoServer_invalidJSONobject": "Piwigo 服务器没有返回有效的 JSON 对象。",
3333
"piwigoServer_emptyJSONobject": "Piwigo 服务器返回了空的 JSON 对象。",
34+
"noTags": "没有标签",
3435
"coreDataStore_WarningTitle": "警告",
3536
"coreDataStore_WarningMessage": "Piwigo 尝试读取数据缓存时出现严重错误。 因此将会创建新的缓存。",
3637
"coreDataFetch_DigestError": "无法解析获取到的数据。",
@@ -87,9 +88,9 @@
8788
"sessionStatusError_message": "验证服务器失败。请尝试重新登录。",
8889
"serverCommunityError_title": "通讯错误",
8990
"serverCommunityError_message": "获取通讯扩展参数失败。请尝试再次登录。",
90-
"logoutConfirmation_title": "注销",
91-
"logoutConfirmation_message": "确定要退出账户吗?",
92-
"logoutFail_title": "登出失败",
91+
"logoutConfirmation_title": "退出登录",
92+
"logoutConfirmation_message": "您确定要退出登录吗?",
93+
"logoutFail_title": "退出登录失败",
9394
"albumCount": "{count, plural,=0{0 个相册} =1{1 个相册} other{{count} 个相册}}",
9495
"@albumCount": {
9596
"placeholders": {
@@ -242,9 +243,9 @@
242243
"moveCategoryHUD_moved": "相册已移动",
243244
"moveCategoryError_title": "移动失败",
244245
"moveCategoryError_message": "移动相册失败",
245-
"selectCategory": "Select Album",
246-
"selectCategory_select": "Please select an album or sub-album.",
247-
"selectCategory_message": "{count, plural, =1{Are you sure you want to upload the image into the album {parent} ?} other{Are you sure you want to upload the images into the album {parent} ?}}",
246+
"selectCategory": "选择相册",
247+
"selectCategory_select": "请选择相册或子相册。",
248+
"selectCategory_message": "{count, plural, =1{您确定将图片上传到相册 {parent} 吗?} other{您确定将这些图片上传到相册 {parent} 吗?}}",
248249
"@selectCategory_message": {
249250
"placeholders": {
250251
"count": {},
@@ -299,7 +300,7 @@
299300
"severalImages": "照片",
300301
"all_Photos": "所有照片",
301302
"severalVideos": "视频",
302-
"noImages": "沒有照片",
303+
"noImages": "暂无照片",
303304
"pullToRefresh": "刷新照片",
304305
"andMore": " & 更多",
305306
"months": "月",
@@ -678,10 +679,10 @@
678679
}
679680
},
680681
"settingsHeader_notSecure": "不安全的连接",
681-
"settings_server": "地址",
682+
"settings_server": "站点地址",
682683
"settings_username": "用户名",
683684
"settings_notLoggedIn": " - 未登录 - ",
684-
"settings_logout": "注销",
685+
"settings_logout": "退出登录",
685686
"settingsFooter_formats": "服务器接受以下文件类型: {types}",
686687
"@settingsFooter_formats": {
687688
"placeholders": {
@@ -813,7 +814,7 @@
813814
"uploadVideoSize_header": "请选择要上传的视频的最大大小",
814815
"uploadVideoSize_resolution": "内置摄像头最大规格",
815816
"uploadPhotoSize_original": "不缩小大小",
816-
"settingsHeader_cache": "缓存设置(已使用/总共)",
817+
"settingsHeader_cache": "缓存设置",
817818
"settings_cacheDisk": "存储",
818819
"settings_cacheMemory": "内存",
819820
"settings_cacheSize": "缓存大小",

0 commit comments

Comments
 (0)