constants.dart 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. const int kThumbnailSmallSize = 256;
  2. const int kThumbnailQuality = 50;
  3. const int kThumbnailLargeSize = 512;
  4. const int kCompressedThumbnailResolution = 1080;
  5. const int kThumbnailDataLimit = 100 * 1024;
  6. const String kSentryDSN =
  7. "https://2235e5c99219488ea93da34b9ac1cb68@sentry.ente.io/4";
  8. const String kSentryDebugDSN =
  9. "https://ca5e686dd7f149d9bf94e620564cceba@sentry.ente.io/3";
  10. const String kSentryTunnel = "https://sentry-reporter.ente.io";
  11. const String kRoadmapURL = "https://roadmap.ente.io";
  12. const int kMicroSecondsInDay = 86400000000;
  13. const int kAndroid11SDKINT = 30;
  14. const int kGalleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
  15. const int kGalleryLoadEndTime = 9223372036854775807; // 2^63 -1
  16. // used to identify which ente file are available in app cache
  17. const String kSharedMediaIdentifier = 'ente-shared://';
  18. const int kMaxLivePhotoToastCount = 2;
  19. const String kLivePhotoToastCounterKey = "show_live_photo_toast";
  20. const kThumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
  21. const kThumbnailServerLoadDeferDuration = Duration(milliseconds: 80);
  22. // 256 bit key maps to 24 words
  23. // https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic
  24. const kMnemonicKeyWordCount = 24;
  25. // https://stackoverflow.com/a/61162219
  26. const kDragSensitivity = 8;
  27. const kSupportEmail = 'support@ente.io';
  28. // Default values for various feature flags
  29. class FFDefault {
  30. static const bool enableStripe = true;
  31. static const bool disableUrlSharing = false;
  32. static const bool disableCFWorker = false;
  33. static const bool enableMissingLocationMigration = false;
  34. }