constants.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
  15. const int galleryLoadEndTime = 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 oldSharedMediaIdentifier = 'ente-shared://';
  19. const String sharedMediaIdentifier = 'ente-shared-media://';
  20. const int maxLivePhotoToastCount = 2;
  21. const String livePhotoToastCounterKey = "show_live_photo_toast";
  22. const thumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
  23. const thumbnailServerLoadDeferDuration = 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 mnemonicKeyWordCount = 24;
  27. // https://stackoverflow.com/a/61162219
  28. const dragSensitivity = 8;
  29. const supportEmail = 'support@ente.io';
  30. // Default values for various feature flags
  31. class FFDefault {
  32. static const bool enableStripe = true;
  33. static const bool disableCFWorker = false;
  34. }
  35. const kDefaultProductionEndpoint = 'https://api.ente.io';