mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore(mobile): add forwarding shims at old data layer paths
This commit is contained in:
parent
cab6419bd7
commit
6b2255142a
48 changed files with 152 additions and 0 deletions
3
mobile/.gitignore
vendored
3
mobile/.gitignore
vendored
|
|
@ -32,6 +32,9 @@
|
|||
.pub/
|
||||
/build/
|
||||
lib/**/*.drift.dart
|
||||
# ...except the hand-written forwarding shims that point at package:immich_data
|
||||
!lib/infrastructure/entities/*.entity.drift.dart
|
||||
!lib/infrastructure/repositories/*.repository.drift.dart
|
||||
lib/routing/router.gr.dart
|
||||
test/drift/main/generated/
|
||||
|
||||
|
|
|
|||
3
mobile/lib/constants/errors.dart
Normal file
3
mobile/lib/constants/errors.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// Moved to package:immich_data. Import that instead
|
||||
// TODO(agg23): Remove
|
||||
export 'package:immich_data/server/errors.dart';
|
||||
3
mobile/lib/domain/models/album/album.model.dart
Normal file
3
mobile/lib/domain/models/album/album.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/album/album.dart';
|
||||
3
mobile/lib/domain/models/album/local_album.model.dart
Normal file
3
mobile/lib/domain/models/album/local_album.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/album/local_album.dart';
|
||||
3
mobile/lib/domain/models/asset/base_asset.model.dart
Normal file
3
mobile/lib/domain/models/asset/base_asset.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/asset/base_asset.dart';
|
||||
3
mobile/lib/domain/models/asset_edit.model.dart
Normal file
3
mobile/lib/domain/models/asset_edit.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/asset_edit.dart';
|
||||
3
mobile/lib/domain/models/exif.model.dart
Normal file
3
mobile/lib/domain/models/exif.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/exif.dart';
|
||||
3
mobile/lib/domain/models/log.model.dart
Normal file
3
mobile/lib/domain/models/log.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/log.dart';
|
||||
3
mobile/lib/domain/models/memory.model.dart
Normal file
3
mobile/lib/domain/models/memory.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/memory.dart';
|
||||
3
mobile/lib/domain/models/user.model.dart
Normal file
3
mobile/lib/domain/models/user.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/user/user.dart';
|
||||
3
mobile/lib/domain/models/user_metadata.model.dart
Normal file
3
mobile/lib/domain/models/user_metadata.model.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/model/user/user_metadata.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/asset_edit.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/asset_edit.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/asset_face.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/asset_ocr.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/auth_user.drift.dart';
|
||||
3
mobile/lib/infrastructure/entities/exif.entity.dart
Normal file
3
mobile/lib/infrastructure/entities/exif.entity.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/exif.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/exif.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/local_album.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/local_album.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/local_album_asset.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/local_asset.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/local_asset.drift.dart';
|
||||
3
mobile/lib/infrastructure/entities/log.entity.dart
Normal file
3
mobile/lib/infrastructure/entities/log.entity.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/log.dart';
|
||||
3
mobile/lib/infrastructure/entities/log.entity.drift.dart
Normal file
3
mobile/lib/infrastructure/entities/log.entity.drift.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/log.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/memory.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/memory_asset.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/partner.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/person.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/remote_album.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/remote_album_asset.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/remote_album_user.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/remote_asset.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/remote_asset.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/remote_asset_cloud_id.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/settings.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/stack.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/store.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/trashed_local_asset.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/trashed_local_asset.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/user.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/table/user_metadata.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/database.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/database.drift.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/logger.dart';
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/logger.drift.dart';
|
||||
3
mobile/lib/infrastructure/utils/exif.converter.dart
Normal file
3
mobile/lib/infrastructure/utils/exif.converter.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// MOVED to package:immich_data — this shim keeps existing imports working
|
||||
// during the migration. New code should import the package path directly.
|
||||
export 'package:immich_data/db/util/exif_converter.dart';
|
||||
11
mobile/lib/repositories/api.repository.dart
Normal file
11
mobile/lib/repositories/api.repository.dart
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import 'package:immich_mobile/constants/errors.dart';
|
||||
|
||||
abstract class ApiRepository {
|
||||
Future<T> checkNull<T>(Future<T?> future) async {
|
||||
final response = await future;
|
||||
if (response == null) {
|
||||
throw const NoResponseDtoError();
|
||||
}
|
||||
return response;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue