constants.dart 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 jan011971Time = 31580904000000;
  15. const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
  16. const int galleryLoadEndTime = 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 oldSharedMediaIdentifier = 'ente-shared://';
  20. const String sharedMediaIdentifier = 'ente-shared-media://';
  21. const int maxLivePhotoToastCount = 2;
  22. const String livePhotoToastCounterKey = "show_live_photo_toast";
  23. const String fileCaptionDefaultHint = "Add a description...";
  24. const thumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
  25. const thumbnailServerLoadDeferDuration = Duration(milliseconds: 80);
  26. // 256 bit key maps to 24 words
  27. // https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic
  28. const mnemonicKeyWordCount = 24;
  29. // https://stackoverflow.com/a/61162219
  30. const dragSensitivity = 8;
  31. const supportEmail = 'support@ente.io';
  32. // Default values for various feature flags
  33. class FFDefault {
  34. static const bool enableStripe = true;
  35. static const bool disableCFWorker = false;
  36. }
  37. const kDefaultProductionEndpoint = 'https://api.ente.io';