chore(mobile): add forwarding shims at old data layer paths

This commit is contained in:
Adam Gastineau 2026-08-03 09:59:57 -07:00
parent cab6419bd7
commit 6b2255142a
48 changed files with 152 additions and 0 deletions

3
mobile/.gitignore vendored
View file

@ -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/

View file

@ -0,0 +1,3 @@
// Moved to package:immich_data. Import that instead
// TODO(agg23): Remove
export 'package:immich_data/server/errors.dart';

View 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';

View 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';

View 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';

View 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';

View 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';

View 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';

View 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';

View 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';

View 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';

View 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/asset_edit.dart';

View 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/asset_edit.drift.dart';

View 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/asset_face.drift.dart';

View 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/asset_ocr.drift.dart';

View 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/auth_user.drift.dart';

View 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';

View 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.drift.dart';

View 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/local_album.dart';

View 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/local_album.drift.dart';

View 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/local_album_asset.drift.dart';

View 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/local_asset.dart';

View 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/local_asset.drift.dart';

View 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';

View 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';

View 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/memory.drift.dart';

View 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/memory_asset.drift.dart';

View 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/partner.drift.dart';

View 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/person.drift.dart';

View 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/remote_album.drift.dart';

View 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/remote_album_asset.drift.dart';

View 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/remote_album_user.drift.dart';

View 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/remote_asset.dart';

View 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/remote_asset.drift.dart';

View 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/remote_asset_cloud_id.drift.dart';

View 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/settings.drift.dart';

View 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/stack.drift.dart';

View 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/store.drift.dart';

View 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/trashed_local_asset.dart';

View 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/trashed_local_asset.drift.dart';

View 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/user.drift.dart';

View 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/user_metadata.drift.dart';

View 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/database.dart';

View 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/database.drift.dart';

View 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/logger.dart';

View 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/logger.drift.dart';

View 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';

View 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;
}
}