2024-09-24 14:50:21 +02:00
|
|
|
const int noDbId = -9223372036854775808; // from Isar
|
2025-01-16 21:20:44 -06:00
|
|
|
const double downloadCompleted = -1;
|
|
|
|
const double downloadFailed = -2;
|
2025-02-28 01:48:49 +05:30
|
|
|
|
|
|
|
// Number of log entries to retain on app start
|
|
|
|
const int kLogTruncateLimit = 250;
|
2025-04-04 01:12:35 +05:30
|
|
|
|
2025-04-17 20:55:27 +05:30
|
|
|
// Sync
|
|
|
|
const int kSyncEventBatchSize = 5000;
|
2025-05-29 21:12:00 +05:30
|
|
|
const int kFetchLocalAssetsBatchSize = 40000;
|
2025-04-17 20:55:27 +05:30
|
|
|
|
|
|
|
// Hash batch limits
|
2025-04-04 01:12:35 +05:30
|
|
|
const int kBatchHashFileLimit = 128;
|
|
|
|
const int kBatchHashSizeLimit = 1024 * 1024 * 1024; // 1GB
|
2025-05-20 08:35:22 -05:00
|
|
|
|
|
|
|
// Secure storage keys
|
|
|
|
const String kSecuredPinCode = "secured_pin_code";
|
2025-06-16 20:37:45 +05:30
|
|
|
|
|
|
|
// Timeline constants
|
|
|
|
const int kTimelineNoneSegmentSize = 120;
|
|
|
|
const int kTimelineAssetLoadBatchSize = 256;
|
|
|
|
const int kTimelineAssetLoadOppositeSize = 64;
|
2025-06-17 09:43:09 -05:00
|
|
|
|
|
|
|
// Widget keys
|
|
|
|
const String kWidgetAuthToken = "widget_auth_token";
|
|
|
|
const String kWidgetServerEndpoint = "widget_server_url";
|
|
|
|
const String appShareGroupId = "group.app.immich.share";
|
|
|
|
|
|
|
|
// add widget identifiers here for new widgets
|
|
|
|
// these are used to force a widget refresh
|
2025-06-20 08:52:05 -05:00
|
|
|
// (iOSName, androidFQDN)
|
|
|
|
const List<(String, String)> kWidgetNames = [
|
|
|
|
('com.immich.widget.random', 'app.alextran.immich.widget.RandomReceiver'),
|
|
|
|
('com.immich.widget.memory', 'app.alextran.immich.widget.MemoryReceiver'),
|
2025-06-17 09:43:09 -05:00
|
|
|
];
|