mirror of
https://github.com/immich-app/immich.git
synced 2025-12-16 17:23:16 +03:00
Compare commits
1 Commits
push-ukqkw
...
track-live
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca6fe89388 |
@@ -87,7 +87,8 @@ data class PlatformAsset (
|
|||||||
val updatedAt: Long? = null,
|
val updatedAt: Long? = null,
|
||||||
val width: Long? = null,
|
val width: Long? = null,
|
||||||
val height: Long? = null,
|
val height: Long? = null,
|
||||||
val durationInSeconds: Long
|
val durationInSeconds: Long,
|
||||||
|
val isLivePhoto: Boolean
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
companion object {
|
companion object {
|
||||||
@@ -100,7 +101,8 @@ data class PlatformAsset (
|
|||||||
val width = pigeonVar_list[5] as Long?
|
val width = pigeonVar_list[5] as Long?
|
||||||
val height = pigeonVar_list[6] as Long?
|
val height = pigeonVar_list[6] as Long?
|
||||||
val durationInSeconds = pigeonVar_list[7] as Long
|
val durationInSeconds = pigeonVar_list[7] as Long
|
||||||
return PlatformAsset(id, name, type, createdAt, updatedAt, width, height, durationInSeconds)
|
val isLivePhoto = pigeonVar_list[8] as Boolean
|
||||||
|
return PlatformAsset(id, name, type, createdAt, updatedAt, width, height, durationInSeconds, isLivePhoto)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fun toList(): List<Any?> {
|
fun toList(): List<Any?> {
|
||||||
@@ -113,6 +115,7 @@ data class PlatformAsset (
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
durationInSeconds,
|
durationInSeconds,
|
||||||
|
isLivePhoto,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ struct PlatformAsset: Hashable {
|
|||||||
var width: Int64? = nil
|
var width: Int64? = nil
|
||||||
var height: Int64? = nil
|
var height: Int64? = nil
|
||||||
var durationInSeconds: Int64
|
var durationInSeconds: Int64
|
||||||
|
var isLivePhoto: Bool
|
||||||
|
|
||||||
|
|
||||||
// swift-format-ignore: AlwaysUseLowerCamelCase
|
// swift-format-ignore: AlwaysUseLowerCamelCase
|
||||||
@@ -150,6 +151,7 @@ struct PlatformAsset: Hashable {
|
|||||||
let width: Int64? = nilOrValue(pigeonVar_list[5])
|
let width: Int64? = nilOrValue(pigeonVar_list[5])
|
||||||
let height: Int64? = nilOrValue(pigeonVar_list[6])
|
let height: Int64? = nilOrValue(pigeonVar_list[6])
|
||||||
let durationInSeconds = pigeonVar_list[7] as! Int64
|
let durationInSeconds = pigeonVar_list[7] as! Int64
|
||||||
|
let isLivePhoto = pigeonVar_list[8] as! Bool
|
||||||
|
|
||||||
return PlatformAsset(
|
return PlatformAsset(
|
||||||
id: id,
|
id: id,
|
||||||
@@ -159,7 +161,8 @@ struct PlatformAsset: Hashable {
|
|||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
durationInSeconds: durationInSeconds
|
durationInSeconds: durationInSeconds,
|
||||||
|
isLivePhoto: isLivePhoto
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
func toList() -> [Any?] {
|
func toList() -> [Any?] {
|
||||||
@@ -172,6 +175,7 @@ struct PlatformAsset: Hashable {
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
durationInSeconds,
|
durationInSeconds,
|
||||||
|
isLivePhoto,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
static func == (lhs: PlatformAsset, rhs: PlatformAsset) -> Bool {
|
static func == (lhs: PlatformAsset, rhs: PlatformAsset) -> Bool {
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ extension PHAsset {
|
|||||||
updatedAt: modificationDate.map { Int64($0.timeIntervalSince1970) },
|
updatedAt: modificationDate.map { Int64($0.timeIntervalSince1970) },
|
||||||
width: Int64(pixelWidth),
|
width: Int64(pixelWidth),
|
||||||
height: Int64(pixelHeight),
|
height: Int64(pixelHeight),
|
||||||
durationInSeconds: Int64(duration)
|
durationInSeconds: Int64(duration),
|
||||||
|
isLivePhoto: isLivePhoto()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -169,7 +170,8 @@ class NativeSyncApiImpl: NativeSyncApi {
|
|||||||
id: asset.localIdentifier,
|
id: asset.localIdentifier,
|
||||||
name: "",
|
name: "",
|
||||||
type: 0,
|
type: 0,
|
||||||
durationInSeconds: 0
|
durationInSeconds: 0,
|
||||||
|
isLivePhoto: false
|
||||||
)
|
)
|
||||||
if (updatedAssets.contains(AssetWrapper(with: predicate))) {
|
if (updatedAssets.contains(AssetWrapper(with: predicate))) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ sealed class BaseAsset {
|
|||||||
final int? height;
|
final int? height;
|
||||||
final int? durationInSeconds;
|
final int? durationInSeconds;
|
||||||
final bool isFavorite;
|
final bool isFavorite;
|
||||||
|
final bool isLivePhoto;
|
||||||
|
final bool livePhotoImageUploaded;
|
||||||
|
final bool livePhotoVideoUploaded;
|
||||||
|
|
||||||
const BaseAsset({
|
const BaseAsset({
|
||||||
required this.name,
|
required this.name,
|
||||||
@@ -36,6 +39,9 @@ sealed class BaseAsset {
|
|||||||
this.height,
|
this.height,
|
||||||
this.durationInSeconds,
|
this.durationInSeconds,
|
||||||
this.isFavorite = false,
|
this.isFavorite = false,
|
||||||
|
this.isLivePhoto = false,
|
||||||
|
this.livePhotoImageUploaded = false,
|
||||||
|
this.livePhotoVideoUploaded = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
bool get isImage => type == AssetType.image;
|
bool get isImage => type == AssetType.image;
|
||||||
@@ -53,6 +59,9 @@ sealed class BaseAsset {
|
|||||||
height: ${height ?? "<NA>"},
|
height: ${height ?? "<NA>"},
|
||||||
durationInSeconds: ${durationInSeconds ?? "<NA>"},
|
durationInSeconds: ${durationInSeconds ?? "<NA>"},
|
||||||
isFavorite: $isFavorite,
|
isFavorite: $isFavorite,
|
||||||
|
isLivePhoto: $isLivePhoto,
|
||||||
|
livePhotoImageUploaded: $livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: $livePhotoVideoUploaded,
|
||||||
}''';
|
}''';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +76,10 @@ sealed class BaseAsset {
|
|||||||
width == other.width &&
|
width == other.width &&
|
||||||
height == other.height &&
|
height == other.height &&
|
||||||
durationInSeconds == other.durationInSeconds &&
|
durationInSeconds == other.durationInSeconds &&
|
||||||
isFavorite == other.isFavorite;
|
isFavorite == other.isFavorite &&
|
||||||
|
isLivePhoto == other.isLivePhoto &&
|
||||||
|
livePhotoImageUploaded == other.livePhotoImageUploaded &&
|
||||||
|
livePhotoVideoUploaded == other.livePhotoVideoUploaded;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -81,6 +93,9 @@ sealed class BaseAsset {
|
|||||||
width.hashCode ^
|
width.hashCode ^
|
||||||
height.hashCode ^
|
height.hashCode ^
|
||||||
durationInSeconds.hashCode ^
|
durationInSeconds.hashCode ^
|
||||||
isFavorite.hashCode;
|
isFavorite.hashCode ^
|
||||||
|
isLivePhoto.hashCode ^
|
||||||
|
livePhotoImageUploaded.hashCode ^
|
||||||
|
livePhotoVideoUploaded.hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ class LocalAsset extends BaseAsset {
|
|||||||
super.height,
|
super.height,
|
||||||
super.durationInSeconds,
|
super.durationInSeconds,
|
||||||
super.isFavorite = false,
|
super.isFavorite = false,
|
||||||
|
super.isLivePhoto = false,
|
||||||
|
super.livePhotoImageUploaded = false,
|
||||||
|
super.livePhotoVideoUploaded = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -35,6 +38,9 @@ class LocalAsset extends BaseAsset {
|
|||||||
durationInSeconds: ${durationInSeconds ?? "<NA>"},
|
durationInSeconds: ${durationInSeconds ?? "<NA>"},
|
||||||
remoteId: ${remoteId ?? "<NA>"}
|
remoteId: ${remoteId ?? "<NA>"}
|
||||||
isFavorite: $isFavorite,
|
isFavorite: $isFavorite,
|
||||||
|
isLivePhoto: $isLivePhoto,
|
||||||
|
livePhotoImageUploaded: $livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: $livePhotoVideoUploaded,
|
||||||
}''';
|
}''';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,6 +66,9 @@ class LocalAsset extends BaseAsset {
|
|||||||
int? height,
|
int? height,
|
||||||
int? durationInSeconds,
|
int? durationInSeconds,
|
||||||
bool? isFavorite,
|
bool? isFavorite,
|
||||||
|
bool? isLivePhoto,
|
||||||
|
bool? livePhotoImageUploaded,
|
||||||
|
bool? livePhotoVideoUploaded,
|
||||||
}) {
|
}) {
|
||||||
return LocalAsset(
|
return LocalAsset(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@@ -73,6 +82,11 @@ class LocalAsset extends BaseAsset {
|
|||||||
height: height ?? this.height,
|
height: height ?? this.height,
|
||||||
durationInSeconds: durationInSeconds ?? this.durationInSeconds,
|
durationInSeconds: durationInSeconds ?? this.durationInSeconds,
|
||||||
isFavorite: isFavorite ?? this.isFavorite,
|
isFavorite: isFavorite ?? this.isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto ?? this.isLivePhoto,
|
||||||
|
livePhotoImageUploaded:
|
||||||
|
livePhotoImageUploaded ?? this.livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded:
|
||||||
|
livePhotoVideoUploaded ?? this.livePhotoVideoUploaded,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,6 +376,9 @@ extension on Iterable<PlatformAsset> {
|
|||||||
width: e.width,
|
width: e.width,
|
||||||
height: e.height,
|
height: e.height,
|
||||||
durationInSeconds: e.durationInSeconds,
|
durationInSeconds: e.durationInSeconds,
|
||||||
|
isLivePhoto: e.isLivePhoto,
|
||||||
|
livePhotoImageUploaded: false,
|
||||||
|
livePhotoVideoUploaded: false,
|
||||||
),
|
),
|
||||||
).toList();
|
).toList();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ class LocalAssetEntity extends Table with DriftDefaultsMixin, AssetEntityMixin {
|
|||||||
// Only used during backup to mirror the favorite status of the asset in the server
|
// Only used during backup to mirror the favorite status of the asset in the server
|
||||||
BoolColumn get isFavorite => boolean().withDefault(const Constant(false))();
|
BoolColumn get isFavorite => boolean().withDefault(const Constant(false))();
|
||||||
|
|
||||||
|
BoolColumn get isLivePhoto => boolean().withDefault(const Constant(false))();
|
||||||
|
BoolColumn get livePhotoImageUploaded =>
|
||||||
|
boolean().withDefault(const Constant(false))();
|
||||||
|
BoolColumn get livePhotoVideoUploaded =>
|
||||||
|
boolean().withDefault(const Constant(false))();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Set<Column> get primaryKey => {id};
|
Set<Column> get primaryKey => {id};
|
||||||
}
|
}
|
||||||
@@ -28,5 +34,8 @@ extension LocalAssetEntityDataDomainEx on LocalAssetEntityData {
|
|||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
durationInSeconds: durationInSeconds,
|
durationInSeconds: durationInSeconds,
|
||||||
isFavorite: isFavorite,
|
isFavorite: isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto,
|
||||||
|
livePhotoImageUploaded: livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: livePhotoVideoUploaded,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ typedef $$LocalAssetEntityTableCreateCompanionBuilder
|
|||||||
required String id,
|
required String id,
|
||||||
i0.Value<String?> checksum,
|
i0.Value<String?> checksum,
|
||||||
i0.Value<bool> isFavorite,
|
i0.Value<bool> isFavorite,
|
||||||
|
i0.Value<bool> isLivePhoto,
|
||||||
|
i0.Value<bool> livePhotoImageUploaded,
|
||||||
|
i0.Value<bool> livePhotoVideoUploaded,
|
||||||
});
|
});
|
||||||
typedef $$LocalAssetEntityTableUpdateCompanionBuilder
|
typedef $$LocalAssetEntityTableUpdateCompanionBuilder
|
||||||
= i1.LocalAssetEntityCompanion Function({
|
= i1.LocalAssetEntityCompanion Function({
|
||||||
@@ -33,6 +36,9 @@ typedef $$LocalAssetEntityTableUpdateCompanionBuilder
|
|||||||
i0.Value<String> id,
|
i0.Value<String> id,
|
||||||
i0.Value<String?> checksum,
|
i0.Value<String?> checksum,
|
||||||
i0.Value<bool> isFavorite,
|
i0.Value<bool> isFavorite,
|
||||||
|
i0.Value<bool> isLivePhoto,
|
||||||
|
i0.Value<bool> livePhotoImageUploaded,
|
||||||
|
i0.Value<bool> livePhotoVideoUploaded,
|
||||||
});
|
});
|
||||||
|
|
||||||
class $$LocalAssetEntityTableFilterComposer
|
class $$LocalAssetEntityTableFilterComposer
|
||||||
@@ -76,6 +82,18 @@ class $$LocalAssetEntityTableFilterComposer
|
|||||||
|
|
||||||
i0.ColumnFilters<bool> get isFavorite => $composableBuilder(
|
i0.ColumnFilters<bool> get isFavorite => $composableBuilder(
|
||||||
column: $table.isFavorite, builder: (column) => i0.ColumnFilters(column));
|
column: $table.isFavorite, builder: (column) => i0.ColumnFilters(column));
|
||||||
|
|
||||||
|
i0.ColumnFilters<bool> get isLivePhoto => $composableBuilder(
|
||||||
|
column: $table.isLivePhoto,
|
||||||
|
builder: (column) => i0.ColumnFilters(column));
|
||||||
|
|
||||||
|
i0.ColumnFilters<bool> get livePhotoImageUploaded => $composableBuilder(
|
||||||
|
column: $table.livePhotoImageUploaded,
|
||||||
|
builder: (column) => i0.ColumnFilters(column));
|
||||||
|
|
||||||
|
i0.ColumnFilters<bool> get livePhotoVideoUploaded => $composableBuilder(
|
||||||
|
column: $table.livePhotoVideoUploaded,
|
||||||
|
builder: (column) => i0.ColumnFilters(column));
|
||||||
}
|
}
|
||||||
|
|
||||||
class $$LocalAssetEntityTableOrderingComposer
|
class $$LocalAssetEntityTableOrderingComposer
|
||||||
@@ -120,6 +138,18 @@ class $$LocalAssetEntityTableOrderingComposer
|
|||||||
i0.ColumnOrderings<bool> get isFavorite => $composableBuilder(
|
i0.ColumnOrderings<bool> get isFavorite => $composableBuilder(
|
||||||
column: $table.isFavorite,
|
column: $table.isFavorite,
|
||||||
builder: (column) => i0.ColumnOrderings(column));
|
builder: (column) => i0.ColumnOrderings(column));
|
||||||
|
|
||||||
|
i0.ColumnOrderings<bool> get isLivePhoto => $composableBuilder(
|
||||||
|
column: $table.isLivePhoto,
|
||||||
|
builder: (column) => i0.ColumnOrderings(column));
|
||||||
|
|
||||||
|
i0.ColumnOrderings<bool> get livePhotoImageUploaded => $composableBuilder(
|
||||||
|
column: $table.livePhotoImageUploaded,
|
||||||
|
builder: (column) => i0.ColumnOrderings(column));
|
||||||
|
|
||||||
|
i0.ColumnOrderings<bool> get livePhotoVideoUploaded => $composableBuilder(
|
||||||
|
column: $table.livePhotoVideoUploaded,
|
||||||
|
builder: (column) => i0.ColumnOrderings(column));
|
||||||
}
|
}
|
||||||
|
|
||||||
class $$LocalAssetEntityTableAnnotationComposer
|
class $$LocalAssetEntityTableAnnotationComposer
|
||||||
@@ -160,6 +190,15 @@ class $$LocalAssetEntityTableAnnotationComposer
|
|||||||
|
|
||||||
i0.GeneratedColumn<bool> get isFavorite => $composableBuilder(
|
i0.GeneratedColumn<bool> get isFavorite => $composableBuilder(
|
||||||
column: $table.isFavorite, builder: (column) => column);
|
column: $table.isFavorite, builder: (column) => column);
|
||||||
|
|
||||||
|
i0.GeneratedColumn<bool> get isLivePhoto => $composableBuilder(
|
||||||
|
column: $table.isLivePhoto, builder: (column) => column);
|
||||||
|
|
||||||
|
i0.GeneratedColumn<bool> get livePhotoImageUploaded => $composableBuilder(
|
||||||
|
column: $table.livePhotoImageUploaded, builder: (column) => column);
|
||||||
|
|
||||||
|
i0.GeneratedColumn<bool> get livePhotoVideoUploaded => $composableBuilder(
|
||||||
|
column: $table.livePhotoVideoUploaded, builder: (column) => column);
|
||||||
}
|
}
|
||||||
|
|
||||||
class $$LocalAssetEntityTableTableManager extends i0.RootTableManager<
|
class $$LocalAssetEntityTableTableManager extends i0.RootTableManager<
|
||||||
@@ -201,6 +240,9 @@ class $$LocalAssetEntityTableTableManager extends i0.RootTableManager<
|
|||||||
i0.Value<String> id = const i0.Value.absent(),
|
i0.Value<String> id = const i0.Value.absent(),
|
||||||
i0.Value<String?> checksum = const i0.Value.absent(),
|
i0.Value<String?> checksum = const i0.Value.absent(),
|
||||||
i0.Value<bool> isFavorite = const i0.Value.absent(),
|
i0.Value<bool> isFavorite = const i0.Value.absent(),
|
||||||
|
i0.Value<bool> isLivePhoto = const i0.Value.absent(),
|
||||||
|
i0.Value<bool> livePhotoImageUploaded = const i0.Value.absent(),
|
||||||
|
i0.Value<bool> livePhotoVideoUploaded = const i0.Value.absent(),
|
||||||
}) =>
|
}) =>
|
||||||
i1.LocalAssetEntityCompanion(
|
i1.LocalAssetEntityCompanion(
|
||||||
name: name,
|
name: name,
|
||||||
@@ -213,6 +255,9 @@ class $$LocalAssetEntityTableTableManager extends i0.RootTableManager<
|
|||||||
id: id,
|
id: id,
|
||||||
checksum: checksum,
|
checksum: checksum,
|
||||||
isFavorite: isFavorite,
|
isFavorite: isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto,
|
||||||
|
livePhotoImageUploaded: livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: livePhotoVideoUploaded,
|
||||||
),
|
),
|
||||||
createCompanionCallback: ({
|
createCompanionCallback: ({
|
||||||
required String name,
|
required String name,
|
||||||
@@ -225,6 +270,9 @@ class $$LocalAssetEntityTableTableManager extends i0.RootTableManager<
|
|||||||
required String id,
|
required String id,
|
||||||
i0.Value<String?> checksum = const i0.Value.absent(),
|
i0.Value<String?> checksum = const i0.Value.absent(),
|
||||||
i0.Value<bool> isFavorite = const i0.Value.absent(),
|
i0.Value<bool> isFavorite = const i0.Value.absent(),
|
||||||
|
i0.Value<bool> isLivePhoto = const i0.Value.absent(),
|
||||||
|
i0.Value<bool> livePhotoImageUploaded = const i0.Value.absent(),
|
||||||
|
i0.Value<bool> livePhotoVideoUploaded = const i0.Value.absent(),
|
||||||
}) =>
|
}) =>
|
||||||
i1.LocalAssetEntityCompanion.insert(
|
i1.LocalAssetEntityCompanion.insert(
|
||||||
name: name,
|
name: name,
|
||||||
@@ -237,6 +285,9 @@ class $$LocalAssetEntityTableTableManager extends i0.RootTableManager<
|
|||||||
id: id,
|
id: id,
|
||||||
checksum: checksum,
|
checksum: checksum,
|
||||||
isFavorite: isFavorite,
|
isFavorite: isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto,
|
||||||
|
livePhotoImageUploaded: livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: livePhotoVideoUploaded,
|
||||||
),
|
),
|
||||||
withReferenceMapper: (p0) => p0
|
withReferenceMapper: (p0) => p0
|
||||||
.map((e) => (e.readTable(table), i0.BaseReferences(db, table, e)))
|
.map((e) => (e.readTable(table), i0.BaseReferences(db, table, e)))
|
||||||
@@ -337,6 +388,36 @@ class $LocalAssetEntityTable extends i3.LocalAssetEntity
|
|||||||
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
||||||
'CHECK ("is_favorite" IN (0, 1))'),
|
'CHECK ("is_favorite" IN (0, 1))'),
|
||||||
defaultValue: const i4.Constant(false));
|
defaultValue: const i4.Constant(false));
|
||||||
|
static const i0.VerificationMeta _isLivePhotoMeta =
|
||||||
|
const i0.VerificationMeta('isLivePhoto');
|
||||||
|
@override
|
||||||
|
late final i0.GeneratedColumn<bool> isLivePhoto = i0.GeneratedColumn<bool>(
|
||||||
|
'is_live_photo', aliasedName, false,
|
||||||
|
type: i0.DriftSqlType.bool,
|
||||||
|
requiredDuringInsert: false,
|
||||||
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
||||||
|
'CHECK ("is_live_photo" IN (0, 1))'),
|
||||||
|
defaultValue: const i4.Constant(false));
|
||||||
|
static const i0.VerificationMeta _livePhotoImageUploadedMeta =
|
||||||
|
const i0.VerificationMeta('livePhotoImageUploaded');
|
||||||
|
@override
|
||||||
|
late final i0.GeneratedColumn<bool> livePhotoImageUploaded =
|
||||||
|
i0.GeneratedColumn<bool>('live_photo_image_uploaded', aliasedName, false,
|
||||||
|
type: i0.DriftSqlType.bool,
|
||||||
|
requiredDuringInsert: false,
|
||||||
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
||||||
|
'CHECK ("live_photo_image_uploaded" IN (0, 1))'),
|
||||||
|
defaultValue: const i4.Constant(false));
|
||||||
|
static const i0.VerificationMeta _livePhotoVideoUploadedMeta =
|
||||||
|
const i0.VerificationMeta('livePhotoVideoUploaded');
|
||||||
|
@override
|
||||||
|
late final i0.GeneratedColumn<bool> livePhotoVideoUploaded =
|
||||||
|
i0.GeneratedColumn<bool>('live_photo_video_uploaded', aliasedName, false,
|
||||||
|
type: i0.DriftSqlType.bool,
|
||||||
|
requiredDuringInsert: false,
|
||||||
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
||||||
|
'CHECK ("live_photo_video_uploaded" IN (0, 1))'),
|
||||||
|
defaultValue: const i4.Constant(false));
|
||||||
@override
|
@override
|
||||||
List<i0.GeneratedColumn> get $columns => [
|
List<i0.GeneratedColumn> get $columns => [
|
||||||
name,
|
name,
|
||||||
@@ -348,7 +429,10 @@ class $LocalAssetEntityTable extends i3.LocalAssetEntity
|
|||||||
durationInSeconds,
|
durationInSeconds,
|
||||||
id,
|
id,
|
||||||
checksum,
|
checksum,
|
||||||
isFavorite
|
isFavorite,
|
||||||
|
isLivePhoto,
|
||||||
|
livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded
|
||||||
];
|
];
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@@ -404,6 +488,24 @@ class $LocalAssetEntityTable extends i3.LocalAssetEntity
|
|||||||
isFavorite.isAcceptableOrUnknown(
|
isFavorite.isAcceptableOrUnknown(
|
||||||
data['is_favorite']!, _isFavoriteMeta));
|
data['is_favorite']!, _isFavoriteMeta));
|
||||||
}
|
}
|
||||||
|
if (data.containsKey('is_live_photo')) {
|
||||||
|
context.handle(
|
||||||
|
_isLivePhotoMeta,
|
||||||
|
isLivePhoto.isAcceptableOrUnknown(
|
||||||
|
data['is_live_photo']!, _isLivePhotoMeta));
|
||||||
|
}
|
||||||
|
if (data.containsKey('live_photo_image_uploaded')) {
|
||||||
|
context.handle(
|
||||||
|
_livePhotoImageUploadedMeta,
|
||||||
|
livePhotoImageUploaded.isAcceptableOrUnknown(
|
||||||
|
data['live_photo_image_uploaded']!, _livePhotoImageUploadedMeta));
|
||||||
|
}
|
||||||
|
if (data.containsKey('live_photo_video_uploaded')) {
|
||||||
|
context.handle(
|
||||||
|
_livePhotoVideoUploadedMeta,
|
||||||
|
livePhotoVideoUploaded.isAcceptableOrUnknown(
|
||||||
|
data['live_photo_video_uploaded']!, _livePhotoVideoUploadedMeta));
|
||||||
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,6 +537,14 @@ class $LocalAssetEntityTable extends i3.LocalAssetEntity
|
|||||||
.read(i0.DriftSqlType.string, data['${effectivePrefix}checksum']),
|
.read(i0.DriftSqlType.string, data['${effectivePrefix}checksum']),
|
||||||
isFavorite: attachedDatabase.typeMapping
|
isFavorite: attachedDatabase.typeMapping
|
||||||
.read(i0.DriftSqlType.bool, data['${effectivePrefix}is_favorite'])!,
|
.read(i0.DriftSqlType.bool, data['${effectivePrefix}is_favorite'])!,
|
||||||
|
isLivePhoto: attachedDatabase.typeMapping
|
||||||
|
.read(i0.DriftSqlType.bool, data['${effectivePrefix}is_live_photo'])!,
|
||||||
|
livePhotoImageUploaded: attachedDatabase.typeMapping.read(
|
||||||
|
i0.DriftSqlType.bool,
|
||||||
|
data['${effectivePrefix}live_photo_image_uploaded'])!,
|
||||||
|
livePhotoVideoUploaded: attachedDatabase.typeMapping.read(
|
||||||
|
i0.DriftSqlType.bool,
|
||||||
|
data['${effectivePrefix}live_photo_video_uploaded'])!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -463,6 +573,9 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
final String id;
|
final String id;
|
||||||
final String? checksum;
|
final String? checksum;
|
||||||
final bool isFavorite;
|
final bool isFavorite;
|
||||||
|
final bool isLivePhoto;
|
||||||
|
final bool livePhotoImageUploaded;
|
||||||
|
final bool livePhotoVideoUploaded;
|
||||||
const LocalAssetEntityData(
|
const LocalAssetEntityData(
|
||||||
{required this.name,
|
{required this.name,
|
||||||
required this.type,
|
required this.type,
|
||||||
@@ -473,7 +586,10 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
this.durationInSeconds,
|
this.durationInSeconds,
|
||||||
required this.id,
|
required this.id,
|
||||||
this.checksum,
|
this.checksum,
|
||||||
required this.isFavorite});
|
required this.isFavorite,
|
||||||
|
required this.isLivePhoto,
|
||||||
|
required this.livePhotoImageUploaded,
|
||||||
|
required this.livePhotoVideoUploaded});
|
||||||
@override
|
@override
|
||||||
Map<String, i0.Expression> toColumns(bool nullToAbsent) {
|
Map<String, i0.Expression> toColumns(bool nullToAbsent) {
|
||||||
final map = <String, i0.Expression>{};
|
final map = <String, i0.Expression>{};
|
||||||
@@ -498,6 +614,11 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
map['checksum'] = i0.Variable<String>(checksum);
|
map['checksum'] = i0.Variable<String>(checksum);
|
||||||
}
|
}
|
||||||
map['is_favorite'] = i0.Variable<bool>(isFavorite);
|
map['is_favorite'] = i0.Variable<bool>(isFavorite);
|
||||||
|
map['is_live_photo'] = i0.Variable<bool>(isLivePhoto);
|
||||||
|
map['live_photo_image_uploaded'] =
|
||||||
|
i0.Variable<bool>(livePhotoImageUploaded);
|
||||||
|
map['live_photo_video_uploaded'] =
|
||||||
|
i0.Variable<bool>(livePhotoVideoUploaded);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -516,6 +637,11 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
id: serializer.fromJson<String>(json['id']),
|
id: serializer.fromJson<String>(json['id']),
|
||||||
checksum: serializer.fromJson<String?>(json['checksum']),
|
checksum: serializer.fromJson<String?>(json['checksum']),
|
||||||
isFavorite: serializer.fromJson<bool>(json['isFavorite']),
|
isFavorite: serializer.fromJson<bool>(json['isFavorite']),
|
||||||
|
isLivePhoto: serializer.fromJson<bool>(json['isLivePhoto']),
|
||||||
|
livePhotoImageUploaded:
|
||||||
|
serializer.fromJson<bool>(json['livePhotoImageUploaded']),
|
||||||
|
livePhotoVideoUploaded:
|
||||||
|
serializer.fromJson<bool>(json['livePhotoVideoUploaded']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@override
|
@override
|
||||||
@@ -533,6 +659,9 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
'id': serializer.toJson<String>(id),
|
'id': serializer.toJson<String>(id),
|
||||||
'checksum': serializer.toJson<String?>(checksum),
|
'checksum': serializer.toJson<String?>(checksum),
|
||||||
'isFavorite': serializer.toJson<bool>(isFavorite),
|
'isFavorite': serializer.toJson<bool>(isFavorite),
|
||||||
|
'isLivePhoto': serializer.toJson<bool>(isLivePhoto),
|
||||||
|
'livePhotoImageUploaded': serializer.toJson<bool>(livePhotoImageUploaded),
|
||||||
|
'livePhotoVideoUploaded': serializer.toJson<bool>(livePhotoVideoUploaded),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -546,7 +675,10 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
i0.Value<int?> durationInSeconds = const i0.Value.absent(),
|
i0.Value<int?> durationInSeconds = const i0.Value.absent(),
|
||||||
String? id,
|
String? id,
|
||||||
i0.Value<String?> checksum = const i0.Value.absent(),
|
i0.Value<String?> checksum = const i0.Value.absent(),
|
||||||
bool? isFavorite}) =>
|
bool? isFavorite,
|
||||||
|
bool? isLivePhoto,
|
||||||
|
bool? livePhotoImageUploaded,
|
||||||
|
bool? livePhotoVideoUploaded}) =>
|
||||||
i1.LocalAssetEntityData(
|
i1.LocalAssetEntityData(
|
||||||
name: name ?? this.name,
|
name: name ?? this.name,
|
||||||
type: type ?? this.type,
|
type: type ?? this.type,
|
||||||
@@ -560,6 +692,11 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
checksum: checksum.present ? checksum.value : this.checksum,
|
checksum: checksum.present ? checksum.value : this.checksum,
|
||||||
isFavorite: isFavorite ?? this.isFavorite,
|
isFavorite: isFavorite ?? this.isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto ?? this.isLivePhoto,
|
||||||
|
livePhotoImageUploaded:
|
||||||
|
livePhotoImageUploaded ?? this.livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded:
|
||||||
|
livePhotoVideoUploaded ?? this.livePhotoVideoUploaded,
|
||||||
);
|
);
|
||||||
LocalAssetEntityData copyWithCompanion(i1.LocalAssetEntityCompanion data) {
|
LocalAssetEntityData copyWithCompanion(i1.LocalAssetEntityCompanion data) {
|
||||||
return LocalAssetEntityData(
|
return LocalAssetEntityData(
|
||||||
@@ -576,6 +713,14 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
checksum: data.checksum.present ? data.checksum.value : this.checksum,
|
checksum: data.checksum.present ? data.checksum.value : this.checksum,
|
||||||
isFavorite:
|
isFavorite:
|
||||||
data.isFavorite.present ? data.isFavorite.value : this.isFavorite,
|
data.isFavorite.present ? data.isFavorite.value : this.isFavorite,
|
||||||
|
isLivePhoto:
|
||||||
|
data.isLivePhoto.present ? data.isLivePhoto.value : this.isLivePhoto,
|
||||||
|
livePhotoImageUploaded: data.livePhotoImageUploaded.present
|
||||||
|
? data.livePhotoImageUploaded.value
|
||||||
|
: this.livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: data.livePhotoVideoUploaded.present
|
||||||
|
? data.livePhotoVideoUploaded.value
|
||||||
|
: this.livePhotoVideoUploaded,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -591,14 +736,29 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
..write('durationInSeconds: $durationInSeconds, ')
|
..write('durationInSeconds: $durationInSeconds, ')
|
||||||
..write('id: $id, ')
|
..write('id: $id, ')
|
||||||
..write('checksum: $checksum, ')
|
..write('checksum: $checksum, ')
|
||||||
..write('isFavorite: $isFavorite')
|
..write('isFavorite: $isFavorite, ')
|
||||||
|
..write('isLivePhoto: $isLivePhoto, ')
|
||||||
|
..write('livePhotoImageUploaded: $livePhotoImageUploaded, ')
|
||||||
|
..write('livePhotoVideoUploaded: $livePhotoVideoUploaded')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode => Object.hash(name, type, createdAt, updatedAt, width,
|
int get hashCode => Object.hash(
|
||||||
height, durationInSeconds, id, checksum, isFavorite);
|
name,
|
||||||
|
type,
|
||||||
|
createdAt,
|
||||||
|
updatedAt,
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
durationInSeconds,
|
||||||
|
id,
|
||||||
|
checksum,
|
||||||
|
isFavorite,
|
||||||
|
isLivePhoto,
|
||||||
|
livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
identical(this, other) ||
|
identical(this, other) ||
|
||||||
@@ -612,7 +772,10 @@ class LocalAssetEntityData extends i0.DataClass
|
|||||||
other.durationInSeconds == this.durationInSeconds &&
|
other.durationInSeconds == this.durationInSeconds &&
|
||||||
other.id == this.id &&
|
other.id == this.id &&
|
||||||
other.checksum == this.checksum &&
|
other.checksum == this.checksum &&
|
||||||
other.isFavorite == this.isFavorite);
|
other.isFavorite == this.isFavorite &&
|
||||||
|
other.isLivePhoto == this.isLivePhoto &&
|
||||||
|
other.livePhotoImageUploaded == this.livePhotoImageUploaded &&
|
||||||
|
other.livePhotoVideoUploaded == this.livePhotoVideoUploaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
class LocalAssetEntityCompanion
|
class LocalAssetEntityCompanion
|
||||||
@@ -627,6 +790,9 @@ class LocalAssetEntityCompanion
|
|||||||
final i0.Value<String> id;
|
final i0.Value<String> id;
|
||||||
final i0.Value<String?> checksum;
|
final i0.Value<String?> checksum;
|
||||||
final i0.Value<bool> isFavorite;
|
final i0.Value<bool> isFavorite;
|
||||||
|
final i0.Value<bool> isLivePhoto;
|
||||||
|
final i0.Value<bool> livePhotoImageUploaded;
|
||||||
|
final i0.Value<bool> livePhotoVideoUploaded;
|
||||||
const LocalAssetEntityCompanion({
|
const LocalAssetEntityCompanion({
|
||||||
this.name = const i0.Value.absent(),
|
this.name = const i0.Value.absent(),
|
||||||
this.type = const i0.Value.absent(),
|
this.type = const i0.Value.absent(),
|
||||||
@@ -638,6 +804,9 @@ class LocalAssetEntityCompanion
|
|||||||
this.id = const i0.Value.absent(),
|
this.id = const i0.Value.absent(),
|
||||||
this.checksum = const i0.Value.absent(),
|
this.checksum = const i0.Value.absent(),
|
||||||
this.isFavorite = const i0.Value.absent(),
|
this.isFavorite = const i0.Value.absent(),
|
||||||
|
this.isLivePhoto = const i0.Value.absent(),
|
||||||
|
this.livePhotoImageUploaded = const i0.Value.absent(),
|
||||||
|
this.livePhotoVideoUploaded = const i0.Value.absent(),
|
||||||
});
|
});
|
||||||
LocalAssetEntityCompanion.insert({
|
LocalAssetEntityCompanion.insert({
|
||||||
required String name,
|
required String name,
|
||||||
@@ -650,6 +819,9 @@ class LocalAssetEntityCompanion
|
|||||||
required String id,
|
required String id,
|
||||||
this.checksum = const i0.Value.absent(),
|
this.checksum = const i0.Value.absent(),
|
||||||
this.isFavorite = const i0.Value.absent(),
|
this.isFavorite = const i0.Value.absent(),
|
||||||
|
this.isLivePhoto = const i0.Value.absent(),
|
||||||
|
this.livePhotoImageUploaded = const i0.Value.absent(),
|
||||||
|
this.livePhotoVideoUploaded = const i0.Value.absent(),
|
||||||
}) : name = i0.Value(name),
|
}) : name = i0.Value(name),
|
||||||
type = i0.Value(type),
|
type = i0.Value(type),
|
||||||
id = i0.Value(id);
|
id = i0.Value(id);
|
||||||
@@ -664,6 +836,9 @@ class LocalAssetEntityCompanion
|
|||||||
i0.Expression<String>? id,
|
i0.Expression<String>? id,
|
||||||
i0.Expression<String>? checksum,
|
i0.Expression<String>? checksum,
|
||||||
i0.Expression<bool>? isFavorite,
|
i0.Expression<bool>? isFavorite,
|
||||||
|
i0.Expression<bool>? isLivePhoto,
|
||||||
|
i0.Expression<bool>? livePhotoImageUploaded,
|
||||||
|
i0.Expression<bool>? livePhotoVideoUploaded,
|
||||||
}) {
|
}) {
|
||||||
return i0.RawValuesInsertable({
|
return i0.RawValuesInsertable({
|
||||||
if (name != null) 'name': name,
|
if (name != null) 'name': name,
|
||||||
@@ -676,6 +851,11 @@ class LocalAssetEntityCompanion
|
|||||||
if (id != null) 'id': id,
|
if (id != null) 'id': id,
|
||||||
if (checksum != null) 'checksum': checksum,
|
if (checksum != null) 'checksum': checksum,
|
||||||
if (isFavorite != null) 'is_favorite': isFavorite,
|
if (isFavorite != null) 'is_favorite': isFavorite,
|
||||||
|
if (isLivePhoto != null) 'is_live_photo': isLivePhoto,
|
||||||
|
if (livePhotoImageUploaded != null)
|
||||||
|
'live_photo_image_uploaded': livePhotoImageUploaded,
|
||||||
|
if (livePhotoVideoUploaded != null)
|
||||||
|
'live_photo_video_uploaded': livePhotoVideoUploaded,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -689,7 +869,10 @@ class LocalAssetEntityCompanion
|
|||||||
i0.Value<int?>? durationInSeconds,
|
i0.Value<int?>? durationInSeconds,
|
||||||
i0.Value<String>? id,
|
i0.Value<String>? id,
|
||||||
i0.Value<String?>? checksum,
|
i0.Value<String?>? checksum,
|
||||||
i0.Value<bool>? isFavorite}) {
|
i0.Value<bool>? isFavorite,
|
||||||
|
i0.Value<bool>? isLivePhoto,
|
||||||
|
i0.Value<bool>? livePhotoImageUploaded,
|
||||||
|
i0.Value<bool>? livePhotoVideoUploaded}) {
|
||||||
return i1.LocalAssetEntityCompanion(
|
return i1.LocalAssetEntityCompanion(
|
||||||
name: name ?? this.name,
|
name: name ?? this.name,
|
||||||
type: type ?? this.type,
|
type: type ?? this.type,
|
||||||
@@ -701,6 +884,11 @@ class LocalAssetEntityCompanion
|
|||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
checksum: checksum ?? this.checksum,
|
checksum: checksum ?? this.checksum,
|
||||||
isFavorite: isFavorite ?? this.isFavorite,
|
isFavorite: isFavorite ?? this.isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto ?? this.isLivePhoto,
|
||||||
|
livePhotoImageUploaded:
|
||||||
|
livePhotoImageUploaded ?? this.livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded:
|
||||||
|
livePhotoVideoUploaded ?? this.livePhotoVideoUploaded,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -738,6 +926,17 @@ class LocalAssetEntityCompanion
|
|||||||
if (isFavorite.present) {
|
if (isFavorite.present) {
|
||||||
map['is_favorite'] = i0.Variable<bool>(isFavorite.value);
|
map['is_favorite'] = i0.Variable<bool>(isFavorite.value);
|
||||||
}
|
}
|
||||||
|
if (isLivePhoto.present) {
|
||||||
|
map['is_live_photo'] = i0.Variable<bool>(isLivePhoto.value);
|
||||||
|
}
|
||||||
|
if (livePhotoImageUploaded.present) {
|
||||||
|
map['live_photo_image_uploaded'] =
|
||||||
|
i0.Variable<bool>(livePhotoImageUploaded.value);
|
||||||
|
}
|
||||||
|
if (livePhotoVideoUploaded.present) {
|
||||||
|
map['live_photo_video_uploaded'] =
|
||||||
|
i0.Variable<bool>(livePhotoVideoUploaded.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -753,7 +952,10 @@ class LocalAssetEntityCompanion
|
|||||||
..write('durationInSeconds: $durationInSeconds, ')
|
..write('durationInSeconds: $durationInSeconds, ')
|
||||||
..write('id: $id, ')
|
..write('id: $id, ')
|
||||||
..write('checksum: $checksum, ')
|
..write('checksum: $checksum, ')
|
||||||
..write('isFavorite: $isFavorite')
|
..write('isFavorite: $isFavorite, ')
|
||||||
|
..write('isLivePhoto: $isLivePhoto, ')
|
||||||
|
..write('livePhotoImageUploaded: $livePhotoImageUploaded, ')
|
||||||
|
..write('livePhotoVideoUploaded: $livePhotoVideoUploaded')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -291,6 +291,10 @@ class DriftLocalAlbumRepository extends DriftDatabaseRepository
|
|||||||
durationInSeconds: Value(asset.durationInSeconds),
|
durationInSeconds: Value(asset.durationInSeconds),
|
||||||
id: asset.id,
|
id: asset.id,
|
||||||
checksum: const Value(null),
|
checksum: const Value(null),
|
||||||
|
isFavorite: Value(asset.isFavorite),
|
||||||
|
isLivePhoto: Value(asset.isLivePhoto),
|
||||||
|
livePhotoImageUploaded: Value(asset.livePhotoImageUploaded),
|
||||||
|
livePhotoVideoUploaded: Value(asset.livePhotoVideoUploaded),
|
||||||
);
|
);
|
||||||
batch.insert<$LocalAssetEntityTable, LocalAssetEntityData>(
|
batch.insert<$LocalAssetEntityTable, LocalAssetEntityData>(
|
||||||
_db.localAssetEntity,
|
_db.localAssetEntity,
|
||||||
@@ -395,6 +399,9 @@ extension on LocalAssetEntityData {
|
|||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
durationInSeconds: durationInSeconds,
|
durationInSeconds: durationInSeconds,
|
||||||
isFavorite: isFavorite,
|
isFavorite: isFavorite,
|
||||||
|
isLivePhoto: isLivePhoto,
|
||||||
|
livePhotoImageUploaded: livePhotoImageUploaded,
|
||||||
|
livePhotoVideoUploaded: livePhotoVideoUploaded,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
5
mobile/lib/platform/native_sync_api.g.dart
generated
5
mobile/lib/platform/native_sync_api.g.dart
generated
@@ -40,6 +40,7 @@ class PlatformAsset {
|
|||||||
this.width,
|
this.width,
|
||||||
this.height,
|
this.height,
|
||||||
required this.durationInSeconds,
|
required this.durationInSeconds,
|
||||||
|
required this.isLivePhoto,
|
||||||
});
|
});
|
||||||
|
|
||||||
String id;
|
String id;
|
||||||
@@ -58,6 +59,8 @@ class PlatformAsset {
|
|||||||
|
|
||||||
int durationInSeconds;
|
int durationInSeconds;
|
||||||
|
|
||||||
|
bool isLivePhoto;
|
||||||
|
|
||||||
List<Object?> _toList() {
|
List<Object?> _toList() {
|
||||||
return <Object?>[
|
return <Object?>[
|
||||||
id,
|
id,
|
||||||
@@ -68,6 +71,7 @@ class PlatformAsset {
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
durationInSeconds,
|
durationInSeconds,
|
||||||
|
isLivePhoto,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,6 +90,7 @@ class PlatformAsset {
|
|||||||
width: result[5] as int?,
|
width: result[5] as int?,
|
||||||
height: result[6] as int?,
|
height: result[6] as int?,
|
||||||
durationInSeconds: result[7]! as int,
|
durationInSeconds: result[7]! as int,
|
||||||
|
isLivePhoto: result[8]! as bool,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class PlatformAsset {
|
|||||||
final int? width;
|
final int? width;
|
||||||
final int? height;
|
final int? height;
|
||||||
final int durationInSeconds;
|
final int durationInSeconds;
|
||||||
|
final bool isLivePhoto;
|
||||||
|
|
||||||
const PlatformAsset({
|
const PlatformAsset({
|
||||||
required this.id,
|
required this.id,
|
||||||
@@ -33,6 +34,7 @@ class PlatformAsset {
|
|||||||
this.width,
|
this.width,
|
||||||
this.height,
|
this.height,
|
||||||
this.durationInSeconds = 0,
|
this.durationInSeconds = 0,
|
||||||
|
this.isLivePhoto = false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user