#1463 fixed DB migration from v13; upgraded Flutter to stable v3.29.1

This commit is contained in:
Thibault Deckers 2025-03-07 20:07:34 +01:00
parent 4e10d882c9
commit 32bda0d9a7
6 changed files with 44 additions and 44 deletions

@ -1 +1 @@
Subproject commit 35c388afb57ef061d06a39b537336c87e0e3d1b1 Subproject commit 09de023485e95e6d1225c2baa44b8feb85e0d45f

View file

@ -4,8 +4,6 @@ All notable changes to this project will be documented in this file.
## <a id="unreleased"></a>[Unreleased] ## <a id="unreleased"></a>[Unreleased]
## <a id="v1.12.4"></a>[v1.12.4] - 2025-03-05
### Added ### Added
- support for Samsung HEIC motion photos embedding video in sefd box - support for Samsung HEIC motion photos embedding video in sefd box
@ -17,7 +15,7 @@ All notable changes to this project will be documented in this file.
### Changed ### Changed
- increased precision of file modified date to milliseconds - increased precision of file modified date to milliseconds
- upgraded Flutter to stable v3.29.0 - upgraded Flutter to stable v3.29.1
### Fixed ### Fixed
@ -26,6 +24,8 @@ All notable changes to this project will be documented in this file.
- decoding of SVG containing references to namespaces in !ATTLIST - decoding of SVG containing references to namespaces in !ATTLIST
- fallback decoding of images packed in RGBA_1010102 config - fallback decoding of images packed in RGBA_1010102 config
## <a id="v1.12.4"></a>[v1.12.4] - 2025-03-05 [YANKED]
## <a id="v1.12.3"></a>[v1.12.3] - 2025-02-06 ## <a id="v1.12.3"></a>[v1.12.3] - 2025-02-06
### Added ### Added

View file

@ -21,6 +21,7 @@ class LocalMediaDbUpgrader {
// warning: "ALTER TABLE ... RENAME COLUMN ..." is not supported // warning: "ALTER TABLE ... RENAME COLUMN ..." is not supported
// on SQLite <3.25.0, bundled on older Android devices // on SQLite <3.25.0, bundled on older Android devices
static Future<void> upgradeDb(Database db, int oldVersion, int newVersion) async { static Future<void> upgradeDb(Database db, int oldVersion, int newVersion) async {
debugPrint('DB will be upgraded from v$oldVersion to v$newVersion');
while (oldVersion < newVersion) { while (oldVersion < newVersion) {
switch (oldVersion) { switch (oldVersion) {
case 1: case 1:
@ -471,12 +472,11 @@ class LocalMediaDbUpgrader {
', trashed INTEGER DEFAULT 0' ', trashed INTEGER DEFAULT 0'
', origin INTEGER DEFAULT 0' ', origin INTEGER DEFAULT 0'
')'); ')');
await db.rawInsert('INSERT INTO $newEntryTable(contentId,uri,path,sourceMimeType,width,height,sourceRotationDegrees,sizeBytes,title,dateAddedSecs,dateModifiedMillis,sourceDateTakenMillis,durationMillis,trashed,origin)' await db.rawInsert('INSERT INTO $newEntryTable(id,contentId,uri,path,sourceMimeType,width,height,sourceRotationDegrees,sizeBytes,title,dateAddedSecs,dateModifiedMillis,sourceDateTakenMillis,durationMillis,trashed,origin)'
' SELECT contentId,uri,path,sourceMimeType,width,height,sourceRotationDegrees,sizeBytes,title,dateAddedSecs,dateModifiedSecs*1000,sourceDateTakenMillis,durationMillis,trashed,origin' ' SELECT id,contentId,uri,path,sourceMimeType,width,height,sourceRotationDegrees,sizeBytes,title,dateAddedSecs,dateModifiedSecs*1000,sourceDateTakenMillis,durationMillis,trashed,origin'
' FROM $entryTable;'); ' FROM $entryTable;');
await db.execute('DROP TABLE $entryTable;'); await db.execute('DROP TABLE $entryTable;');
await db.execute('ALTER TABLE $newEntryTable RENAME TO $entryTable;'); await db.execute('ALTER TABLE $newEntryTable RENAME TO $entryTable;');
}); });
} }
} }

View file

@ -543,10 +543,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: google_maps_flutter_android name: google_maps_flutter_android
sha256: "721ffae2240e957c04b0de19ffd4b68580adb57a8224496b7fb55fad23aec98a" sha256: "3b3f55d6b4f2bde6bbe80dca0bf8d228313005c9ce8a97a1d24257600d8c92e5"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.14.13" version: "2.14.14"
google_maps_flutter_ios: google_maps_flutter_ios:
dependency: transitive dependency: transitive
description: description:
@ -711,10 +711,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: local_auth_android name: local_auth_android
sha256: "8bba79f4f0f7bc812fce2ca20915d15618c37721246ba6c3ef2aa7a763a90cf2" sha256: "0abe4e72f55c785b28900de52a2522c86baba0988838b5dc22241b072ecccd74"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.47" version: "1.0.48"
local_auth_darwin: local_auth_darwin:
dependency: transitive dependency: transitive
description: description:
@ -963,10 +963,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: path_provider_android name: path_provider_android
sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" sha256: "0ca7359dad67fd7063cb2892ab0c0737b2daafd807cf1acecd62374c8fae6c12"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.2.15" version: "2.2.16"
path_provider_foundation: path_provider_foundation:
dependency: transitive dependency: transitive
description: description:
@ -1179,10 +1179,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: pub_semver name: pub_semver
sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd" sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.5" version: "2.2.0"
qr: qr:
dependency: transitive dependency: transitive
description: description:
@ -1275,10 +1275,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_android name: shared_preferences_android
sha256: "9f9f3d372d4304723e6136663bb291c0b93f5e4c8a4a6314347f481a33bda2b1" sha256: "3ec7210872c4ba945e3244982918e502fa2bfb5230dff6832459ca0e1879b7ad"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.4.7" version: "2.4.8"
shared_preferences_foundation: shared_preferences_foundation:
dependency: transitive dependency: transitive
description: description:
@ -1569,10 +1569,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_android name: url_launcher_android
sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193" sha256: "1d0eae19bd7606ef60fe69ef3b312a437a16549476c42321d5dc1506c9ca3bf4"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.3.14" version: "6.3.15"
url_launcher_ios: url_launcher_ios:
dependency: transitive dependency: transitive
description: description:
@ -1791,4 +1791,4 @@ packages:
version: "3.1.3" version: "3.1.3"
sdks: sdks:
dart: ">=3.7.0 <4.0.0" dart: ">=3.7.0 <4.0.0"
flutter: ">=3.29.0" flutter: ">=3.29.1"

View file

@ -13,7 +13,7 @@ publish_to: none
environment: environment:
# this project bundles Flutter SDK via `flutter_wrapper` # this project bundles Flutter SDK via `flutter_wrapper`
# cf https://github.com/passsy/flutter_wrapper # cf https://github.com/passsy/flutter_wrapper
flutter: 3.29.0 flutter: 3.29.1
sdk: ">=3.6.0 <4.0.0" # incoherent dartfmt from 3.7.0 sdk: ">=3.6.0 <4.0.0" # incoherent dartfmt from 3.7.0
workspace: workspace:
- plugins/aves_magnifier - plugins/aves_magnifier

File diff suppressed because one or more lines are too long