2022-09-20 11:53:32 +00:00
|
|
|
const int thumbnailSmallSize = 256;
|
|
|
|
const int thumbnailQuality = 50;
|
|
|
|
const int thumbnailLargeSize = 512;
|
|
|
|
const int compressedThumbnailResolution = 1080;
|
|
|
|
const int thumbnailDataLimit = 100 * 1024;
|
|
|
|
const String sentryDSN =
|
2021-07-22 09:30:03 +00:00
|
|
|
"https://2235e5c99219488ea93da34b9ac1cb68@sentry.ente.io/4";
|
2022-09-20 11:53:32 +00:00
|
|
|
const String sentryDebugDSN =
|
2021-07-22 09:30:03 +00:00
|
|
|
"https://ca5e686dd7f149d9bf94e620564cceba@sentry.ente.io/3";
|
2022-09-20 11:53:32 +00:00
|
|
|
const String sentryTunnel = "https://sentry-reporter.ente.io";
|
2023-05-19 08:47:05 +00:00
|
|
|
const String githubIssuesUrl = "https://github.com/ente-io/photos-app/issues";
|
2022-09-20 11:53:32 +00:00
|
|
|
const int microSecondsInDay = 86400000000;
|
|
|
|
const int android11SDKINT = 30;
|
2022-11-12 11:27:36 +00:00
|
|
|
const int jan011981Time = 347155200000000;
|
2022-09-20 11:53:32 +00:00
|
|
|
const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
|
|
|
|
const int galleryLoadEndTime = 9223372036854775807; // 2^63 -1
|
2022-11-18 06:05:46 +00:00
|
|
|
const int batchSize = 1000;
|
2022-12-07 05:20:41 +00:00
|
|
|
const photoGridSizeDefault = 4;
|
|
|
|
const photoGridSizeMin = 2;
|
|
|
|
const photoGridSizeMax = 6;
|
2023-01-09 14:22:25 +00:00
|
|
|
const subGalleryMultiplier = 10;
|
2021-07-23 12:53:39 +00:00
|
|
|
|
|
|
|
// used to identify which ente file are available in app cache
|
2022-07-05 20:05:51 +00:00
|
|
|
// todo: 6Jun22: delete old media identifier after 3 months
|
2022-09-20 11:53:32 +00:00
|
|
|
const String oldSharedMediaIdentifier = 'ente-shared://';
|
|
|
|
const String sharedMediaIdentifier = 'ente-shared-media://';
|
2021-08-10 07:21:13 +00:00
|
|
|
|
2022-09-20 11:53:32 +00:00
|
|
|
const thumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
|
|
|
|
const thumbnailServerLoadDeferDuration = Duration(milliseconds: 80);
|
2021-11-12 17:40:56 +00:00
|
|
|
|
|
|
|
// 256 bit key maps to 24 words
|
|
|
|
// https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic
|
2022-09-20 11:53:32 +00:00
|
|
|
const mnemonicKeyWordCount = 24;
|
2022-03-14 11:44:18 +00:00
|
|
|
|
|
|
|
// https://stackoverflow.com/a/61162219
|
2022-09-20 11:53:32 +00:00
|
|
|
const dragSensitivity = 8;
|
2022-05-31 07:52:47 +00:00
|
|
|
|
2022-09-20 11:53:32 +00:00
|
|
|
const supportEmail = 'support@ente.io';
|
2022-06-03 10:13:19 +00:00
|
|
|
|
|
|
|
// Default values for various feature flags
|
|
|
|
class FFDefault {
|
|
|
|
static const bool enableStripe = true;
|
|
|
|
static const bool disableCFWorker = false;
|
|
|
|
}
|
2022-08-10 13:27:32 +00:00
|
|
|
|
2022-08-10 13:28:33 +00:00
|
|
|
const kDefaultProductionEndpoint = 'https://api.ente.io';
|
2022-10-19 11:28:03 +00:00
|
|
|
|
|
|
|
const int intMaxValue = 9223372036854775807;
|
2022-12-06 08:11:37 +00:00
|
|
|
|
|
|
|
//Screen width of iPhone 14 pro max in points is taken as maximum
|
|
|
|
const double restrictedMaxWidth = 430;
|
2022-12-20 09:35:11 +00:00
|
|
|
|
|
|
|
const double mobileSmallThreshold = 336;
|
2023-02-02 11:59:55 +00:00
|
|
|
|
2023-09-02 09:10:32 +00:00
|
|
|
// Note: 0 indicates no device limit
|
|
|
|
const publicLinkDeviceLimits = [0,50, 25, 10, 5, 2, 1];
|
2023-03-17 04:42:47 +00:00
|
|
|
|
|
|
|
const kilometersPerDegree = 111.16;
|
2023-03-21 12:57:32 +00:00
|
|
|
|
2023-04-26 13:01:33 +00:00
|
|
|
const defaultRadiusValues = <double>[1, 2, 10, 20, 40, 80, 200, 400, 1200];
|
2023-03-22 07:54:58 +00:00
|
|
|
|
2023-04-27 07:27:32 +00:00
|
|
|
const defaultRadiusValue = 40.0;
|
2023-03-23 15:29:26 +00:00
|
|
|
|
|
|
|
const galleryGridSpacing = 2.0;
|