mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
28 lines
834 B
Dart
28 lines
834 B
Dart
const int noDbId = -9223372036854775808; // from Isar
|
|
const double downloadCompleted = -1;
|
|
const double downloadFailed = -2;
|
|
|
|
// Number of log entries to retain on app start
|
|
const int kLogTruncateLimit = 250;
|
|
|
|
// Sync
|
|
const int kSyncEventBatchSize = 5000;
|
|
const int kFetchLocalAssetsBatchSize = 40000;
|
|
|
|
// Hash batch limits
|
|
const int kBatchHashFileLimit = 128;
|
|
const int kBatchHashSizeLimit = 1024 * 1024 * 1024; // 1GB
|
|
|
|
// Secure storage keys
|
|
const String kSecuredPinCode = "secured_pin_code";
|
|
|
|
// background_downloader task groups
|
|
const kManualUploadGroup = 'manual_upload_group';
|
|
const kBackupGroup = 'backup_group';
|
|
const kBackupLivePhotoGroup = 'backup_live_photo_group';
|
|
|
|
// Timeline constants
|
|
const int kTimelineNoneSegmentSize = 120;
|
|
const int kTimelineAssetLoadBatchSize = 256;
|
|
const int kTimelineAssetLoadOppositeSize = 64;
|