constants.dart 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. // todo: 6Jun22: delete old media identifier after 3 months
  18. const String kOldSharedMediaIdentifier = 'ente-shared://';
  19. const String kSharedMediaIdentifier = 'ente-shared-media://';
  20. const int kMaxLivePhotoToastCount = 2;
  21. const String kLivePhotoToastCounterKey = "show_live_photo_toast";
  22. const kThumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
  23. const kThumbnailServerLoadDeferDuration = Duration(milliseconds: 80);
  24. // 256 bit key maps to 24 words
  25. // https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic
  26. const kMnemonicKeyWordCount = 24;
  27. // https://stackoverflow.com/a/61162219
  28. const kDragSensitivity = 8;
  29. const kSupportEmail = 'support@ente.io';
  30. // Default values for various feature flags
  31. class FFDefault {
  32. static const bool enableStripe = true;
  33. static const bool disableUrlSharing = false;
  34. static const bool disableCFWorker = false;
  35. static const bool enableMissingLocationMigration = false;
  36. }
  37. const kDefaultProductionEndpoint = 'https://api.ente.io';