mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +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>
29 lines
765 B
Dart
29 lines
765 B
Dart
import 'package:pigeon/pigeon.dart';
|
|
|
|
@ConfigurePigeon(
|
|
PigeonOptions(
|
|
dartOut: 'lib/platform/remote_image_api.g.dart',
|
|
swiftOut: 'ios/Runner/Images/RemoteImages.g.swift',
|
|
swiftOptions: SwiftOptions(includeErrorClass: false),
|
|
kotlinOut:
|
|
'android/app/src/main/kotlin/app/alextran/immich/images/RemoteImages.g.kt',
|
|
kotlinOptions: KotlinOptions(package: 'app.alextran.immich.images', includeErrorClass: false),
|
|
dartOptions: DartOptions(),
|
|
dartPackageName: 'immich_mobile',
|
|
),
|
|
)
|
|
@HostApi()
|
|
abstract class RemoteImageApi {
|
|
@async
|
|
Map<String, int>? requestImage(
|
|
String url, {
|
|
required Map<String, String> headers,
|
|
required int requestId,
|
|
});
|
|
|
|
void cancelRequest(int requestId);
|
|
|
|
@async
|
|
int clearCache();
|
|
}
|