constants.dart 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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://ed4ddd6309b847ba8849935e26e9b648@sentry.ente.io/9";
  8. const String sentryTunnel = "https://sentry-reporter.ente.io";
  9. const String roadmapURL = "https://roadmap.ente.io";
  10. const String githubIssuesUrl = "https://github.com/ente-io/auth/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc";
  11. const int microSecondsInDay = 86400000000;
  12. const int android11SDKINT = 30;
  13. const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
  14. const int galleryLoadEndTime = 9223372036854775807; // 2^63 -1
  15. // used to identify which ente file are available in app cache
  16. // todo: 6Jun22: delete old media identifier after 3 months
  17. const String oldSharedMediaIdentifier = 'ente-shared://';
  18. const String sharedMediaIdentifier = 'ente-shared-media://';
  19. const int maxLivePhotoToastCount = 2;
  20. const String livePhotoToastCounterKey = "show_live_photo_toast";
  21. const thumbnailDiskLoadDeferDuration = Duration(milliseconds: 40);
  22. const thumbnailServerLoadDeferDuration = Duration(milliseconds: 80);
  23. // 256 bit key maps to 24 words
  24. // https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic
  25. const mnemonicKeyWordCount = 24;
  26. // https://stackoverflow.com/a/61162219
  27. const dragSensitivity = 8;
  28. const supportEmail = 'support@ente.io';
  29. // Default values for various feature flags
  30. class FFDefault {
  31. static const bool enableStripe = true;
  32. static const bool disableCFWorker = false;
  33. }
  34. const kDefaultProductionEndpoint = 'https://api.ente.io';