π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][multipart] Aggresively clear temp dir in debug mode
Neeraj Guptad92bcd41cbaf
diff --git a/mobile/lib/core/constants.dart b/mobile/lib/core/constants.dartindex d8c2a65384..77764ee650 100644--- a/mobile/lib/core/constants.dart+++ b/mobile/lib/core/constants.dart@@ -1,3 +1,5 @@+import "package:flutter/foundation.dart";+const int thumbnailSmallSize = 256;const int thumbnailQuality = 50;const int thumbnailLargeSize = 512;@@ -98,4 +100,6 @@ const blackThumbnailBase64 = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEB''AKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgD/9k=';const uploadTempFilePrefix = "upload_file_";-final tempDirCleanUpInterval = const Duration(seconds: 6).inMicroseconds;+final tempDirCleanUpInterval = kDebugMode+ ? const Duration(seconds: 30).inMicroseconds+ : const Duration(hours: 6).inMicroseconds;