constants.dart 1.8 KB

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