constants.dart 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. const int thumbnailSmallSize = 256;
  2. const int thumbnailQuality = 50;
  3. const int thumbnailLargeSize = 512;
  4. const int compressedThumbnailResolution = 1080;
  5. const int thumbnailDataLimit = 100 * 1024;
  6. const String sentryDSN =
  7. "https://2235e5c99219488ea93da34b9ac1cb68@sentry.ente.io/4";
  8. const String sentryDebugDSN =
  9. "https://ca5e686dd7f149d9bf94e620564cceba@sentry.ente.io/3";
  10. const String sentryTunnel = "https://sentry-reporter.ente.io";
  11. const String roadmapURL = "https://roadmap.ente.io";
  12. const int microSecondsInDay = 86400000000;
  13. const int android11SDKINT = 30;
  14. const int jan011981Time = 347155200000000;
  15. const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
  16. const int galleryLoadEndTime = 9223372036854775807; // 2^63 -1
  17. const int batchSize = 1000;
  18. const photoGridSizeDefault = 4;
  19. const photoGridSizeMin = 2;
  20. const photoGridSizeMax = 6;
  21. const subGalleryMultiplier = 10;
  22. // used to identify which ente file are available in app cache
  23. // todo: 6Jun22: delete old media identifier after 3 months
  24. const String oldSharedMediaIdentifier = 'ente-shared://';
  25. const String sharedMediaIdentifier = 'ente-shared-media://';
  26. const int maxLivePhotoToastCount = 2;
  27. const String livePhotoToastCounterKey = "show_live_photo_toast";
  28. const String fileCaptionDefaultHint = "Add a description...";
  29. const thumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
  30. const thumbnailServerLoadDeferDuration = Duration(milliseconds: 80);
  31. // 256 bit key maps to 24 words
  32. // https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic
  33. const mnemonicKeyWordCount = 24;
  34. // https://stackoverflow.com/a/61162219
  35. const dragSensitivity = 8;
  36. const supportEmail = 'support@ente.io';
  37. // Default values for various feature flags
  38. class FFDefault {
  39. static const bool enableStripe = true;
  40. static const bool disableCFWorker = false;
  41. }
  42. const kDefaultProductionEndpoint = 'https://api.ente.io';
  43. const int intMaxValue = 9223372036854775807;
  44. //Screen width of iPhone 14 pro max in points is taken as maximum
  45. const double restrictedMaxWidth = 430;
  46. const double mobileSmallThreshold = 336;
  47. const publicLinkDeviceLimits = [50, 25, 10, 5, 2, 1];