mirror of
https://github.com/immich-app/immich.git
synced 2026-02-05 01:09:14 +03:00
* platform clients * uppercase http method * fix hot reload * custom user agent * init before app launch * set defaults * move to bootstrap * unrelated change * disable disk cache by default * optimized decoding * remove incremental * android impl * memory optimization * lock approach is slower on ios * conditional cronet * clarify parameter * enable disk cache * set user agent * flutter-side decode * optimized http * fixed locking * refactor * potential race conditions * embedded cronet * refactor, fix capacity handling * fast path for known content length * ios optimizations * re-enable cache * formatting * bump concurrency * clear cache button * fix eviction race condition * add extra cancellation check * tighten dispose * better error handling * fix disposal --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
23 lines
1.0 KiB
Dart
23 lines
1.0 KiB
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/domain/services/background_worker.service.dart';
|
|
import 'package:immich_mobile/platform/background_worker_api.g.dart';
|
|
import 'package:immich_mobile/platform/background_worker_lock_api.g.dart';
|
|
import 'package:immich_mobile/platform/connectivity_api.g.dart';
|
|
import 'package:immich_mobile/platform/native_sync_api.g.dart';
|
|
import 'package:immich_mobile/platform/local_image_api.g.dart';
|
|
import 'package:immich_mobile/platform/remote_image_api.g.dart';
|
|
|
|
final backgroundWorkerFgServiceProvider = Provider((_) => BackgroundWorkerFgService(BackgroundWorkerFgHostApi()));
|
|
|
|
final backgroundWorkerLockServiceProvider = Provider<BackgroundWorkerLockService>(
|
|
(_) => BackgroundWorkerLockService(BackgroundWorkerLockApi()),
|
|
);
|
|
|
|
final nativeSyncApiProvider = Provider<NativeSyncApi>((_) => NativeSyncApi());
|
|
|
|
final connectivityApiProvider = Provider<ConnectivityApi>((_) => ConnectivityApi());
|
|
|
|
final localImageApi = LocalImageApi();
|
|
|
|
final remoteImageApi = RemoteImageApi();
|