fix: sync is_favorite from native (#20412)

* feat: sync is_favorite from native

* handle favorite during upload

* Update mobile/ios/Runner/Sync/MessagesImpl.swift

Co-authored-by: Alex <alex.tran1502@gmail.com>

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
shenlong 2025-07-30 08:27:04 +05:30 committed by GitHub
parent 07ed060c32
commit 268b411a6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 30 additions and 8 deletions

View file

@ -5,8 +5,7 @@ import 'package:pigeon/pigeon.dart';
dartOut: 'lib/platform/native_sync_api.g.dart',
swiftOut: 'ios/Runner/Sync/Messages.g.swift',
swiftOptions: SwiftOptions(),
kotlinOut:
'android/app/src/main/kotlin/app/alextran/immich/sync/Messages.g.kt',
kotlinOut: 'android/app/src/main/kotlin/app/alextran/immich/sync/Messages.g.kt',
kotlinOptions: KotlinOptions(package: 'app.alextran.immich.sync'),
dartOptions: DartOptions(),
dartPackageName: 'immich_mobile',
@ -24,6 +23,7 @@ class PlatformAsset {
final int? height;
final int durationInSeconds;
final int orientation;
final bool isFavorite;
const PlatformAsset({
required this.id,
@ -35,6 +35,7 @@ class PlatformAsset {
this.height,
this.durationInSeconds = 0,
this.orientation = 0,
this.isFavorite = false,
});
}