refactor(mobile): add Isar DB & Store class (#1574)

* refactor(mobile): add Isar DB & Store class

new Store: globally accessible key-value store like Hive (but based on Isar)

replace first few places of Hive usage with the new Store

* reduce max. DB size to prevent errors on older iOS devices

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Fynn Petersen-Frey
2023-02-09 18:32:08 +01:00
committed by GitHub
parent adb265794c
commit 911c35a7f1
11 changed files with 796 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ description: Immich - selfhosted backup media file on mobile phone
publish_to: "none"
version: 1.45.0+68
isar_version: &isar_version 3.0.5
environment:
sdk: ">=2.17.0 <3.0.0"
@@ -41,6 +42,8 @@ dependencies:
http_parser: ^4.0.1
flutter_web_auth: ^0.5.0
easy_image_viewer: ^1.2.0
isar: *isar_version
isar_flutter_libs: *isar_version # contains Isar Core
openapi:
path: openapi
@@ -58,6 +61,7 @@ dev_dependencies:
auto_route_generator: ^5.0.2
flutter_launcher_icons: "^0.9.2"
flutter_native_splash: ^2.2.16
isar_generator: *isar_version
integration_test:
sdk: flutter