π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[locker] Switch to new upload APIs
Neeraj Gupta96fc6a305ef1
diff --git a/mobile/apps/locker/ios/Podfile.lock b/mobile/apps/locker/ios/Podfile.lockindex 174a4f586e..5ce90958e6 100644--- a/mobile/apps/locker/ios/Podfile.lock+++ b/mobile/apps/locker/ios/Podfile.lock@@ -75,9 +75,9 @@ PODS:- FlutterMacOS- privacy_screen (0.0.1):- Flutter- - SDWebImage (5.21.1):- - SDWebImage/Core (= 5.21.1)- - SDWebImage/Core (5.21.1)+ - SDWebImage (5.21.3):+ - SDWebImage/Core (= 5.21.3)+ - SDWebImage/Core (5.21.3)- Sentry/HybridSDK (8.46.0)- sentry_flutter (8.14.2):- Flutter@@ -188,37 +188,37 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/url_launcher_ios/ios"SPEC CHECKSUMS:- app_links: 76b66b60cc809390ca1ad69bfd66b998d2387ac7- cupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86c- device_info_plus: 335f3ce08d2e174b9fdc3db3db0f4e3b1f66bd89+ app_links: f3e17e4ee5e357b39d8b95290a9b2c299fca71c6+ cupertino_http: 947a233f40cfea55167a49f2facc18434ea117ba+ device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3cDKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60- file_picker: a0560bc09d61de87f12d246fc47d2119e6ef37be- file_saver: 6cdbcddd690cb02b0c1a0c225b37cd805c2bf8b6+ file_picker: b159e0c068aef54932bb15dc9fd1571818edaf49+ file_saver: 503e386464dbe118f630e17b4c2e1190fa0cf808Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7- flutter_email_sender: aa1e9772696691d02cd91fea829856c11efb8e58- flutter_inappwebview_ios: b89ba3482b96fb25e00c967aae065701b66e9b99- flutter_local_authentication: 989278c681612f1ee0e36019e149137f114b9d7f- flutter_secure_storage: 1ed9476fba7e7a782b22888f956cce43e2c62f13- fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1- listen_sharing_intent: fe0b9a59913cc124dd6cbd55cd9f881de5f75759- local_auth_darwin: 553ce4f9b16d3fdfeafce9cf042e7c9f77c1c391- objective_c: 89e720c30d716b036faf9c9684022048eee1eee2- open_file_ios: 5ff7526df64e4394b4fe207636b67a95e83078bb+ flutter_email_sender: e03bdda7637bcd3539bfe718fddd980e9508efaa+ flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4+ flutter_local_authentication: 1172a4dd88f6306dadce067454e2c4caf07977bb+ flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12+ fluttertoast: 21eecd6935e7064cc1fcb733a4c5a428f3f24f0f+ listen_sharing_intent: 74a842adcbcf7bedf7bbc938c749da9155141b9a+ local_auth_darwin: 66e40372f1c29f383a314c738c7446e2f7fdadc3+ objective_c: 77e887b5ba1827970907e10e832eec1683f3431d+ open_file_ios: 461db5853723763573e140de3193656f91990d9eOrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94- package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499- path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564- privacy_screen: 3159a541f5d3a31bea916cfd4e58f9dc722b3fd4- SDWebImage: f29024626962457f3470184232766516dee8dfea+ package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4+ path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46+ privacy_screen: 1a131c052ceb3c3659934b003b0d397c2381a24e+ SDWebImage: 16309af6d214ba3f77a7c6f6fdda888cb313a50aSentry: da60d980b197a46db0b35ea12cb8f39af48d8854- sentry_flutter: 27892878729f42701297c628eb90e7c6529f3684- share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a- shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7- sodium_libs: 6c6d0e83f4ee427c6464caa1f1bdc2abf3ca0b7f- sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0+ sentry_flutter: 2df8b0aab7e4aba81261c230cbea31c82a62dd1b+ share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f+ shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78+ sodium_libs: 1faae17af662384acbd13e41867a0008cd2e2318+ sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702dSwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4- ua_client_hints: 92fe0d139619b73ec9fcb46cc7e079a26178f586- url_launcher_ios: 694010445543906933d732453a59da0a173ae33d+ ua_client_hints: aeabd123262c087f0ce151ef96fa3ab77bfc8b38+ url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fePODFILE CHECKSUM: d2d3220ea22664a259778d9e314054751db31361diff --git a/mobile/apps/locker/ios/Runner.xcodeproj/project.pbxproj b/mobile/apps/locker/ios/Runner.xcodeproj/project.pbxprojindex 683226caa0..75b853bd63 100644--- a/mobile/apps/locker/ios/Runner.xcodeproj/project.pbxproj+++ b/mobile/apps/locker/ios/Runner.xcodeproj/project.pbxproj@@ -11,13 +11,13 @@27AD87F62E16554700B24C05 /* Share Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 27AD87EC2E16554700B24C05 /* Share Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };- 4CDDC127876941DC8FF88929 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 81319B7747381DEFA0F961F7 /* Pods_Runner.framework */; };74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };- 92402655AF53FB304C48E4BC /* Pods_Share_Extension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B8B5400AA6FED21CC714A5A0 /* Pods_Share_Extension.framework */; };- 9373AE318AB19621F0BB5602 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 871674596693C14F59CB67C9 /* Pods_RunnerTests.framework */; };+ 7DB7472FE5163F8377BAA06E /* Pods_Share_Extension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 287775B7AE148AC0BA3D8BA0 /* Pods_Share_Extension.framework */; };97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };+ C5524BD77FD5F3A28E4B27B9 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C13BD19AB969F2710896608C /* Pods_Runner.framework */; };+ D1265C7EE51D7F4B311138D6 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FDA38002AE5F3BE62147DBD /* Pods_RunnerTests.framework */; };/* End PBXBuildFile section *//* Begin PBXContainerItemProxy section */@@ -62,24 +62,26 @@/* End PBXCopyFilesBuildPhase section *//* Begin PBXFileReference section */- 041816B42CE5846482BE66D6 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };+ 0BCDDC0B76BC47310A263AA3 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };+ 1BD356E2AB17406483C7EED5 /* Pods-Share Extension.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.profile.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.profile.xcconfig"; sourceTree = "<group>"; };+ 24AF90800C85F21B7FE65C5C /* Pods-Share Extension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.debug.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.debug.xcconfig"; sourceTree = "<group>"; };27AD87D62E16497400B24C05 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };27AD87EC2E16554700B24C05 /* Share Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Share Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };+ 287775B7AE148AC0BA3D8BA0 /* Pods_Share_Extension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Share_Extension.framework; sourceTree = BUILT_PRODUCTS_DIR; };331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };- 3AEDBF29614F8677DCE69E7E /* Pods-Ente Locker.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Ente Locker.release.xcconfig"; path = "Target Support Files/Pods-Ente Locker/Pods-Ente Locker.release.xcconfig"; sourceTree = "<group>"; };3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };- 405BE3630B56B70E48B35F05 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };- 43F401025D1F7ED737A76C71 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };- 611BD59A807D8565F74139DC /* Pods_Ente_Locker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Ente_Locker.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 4FDA38002AE5F3BE62147DBD /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 6996F0C9FE5B3381D2AB65D7 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };+ 6DB88B6270DABA9C3008A2E8 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };+ 7023A3B47DED2B222A9A8524 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };- 81319B7747381DEFA0F961F7 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };- 871674596693C14F59CB67C9 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };- 89AC4F9CF1F94E149746EB60 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };+ 82CB94009AF08031CAFB767B /* Pods-Share Extension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.release.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.release.xcconfig"; sourceTree = "<group>"; };+ 9171E7F346383A173442C22C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };@@ -87,14 +89,8 @@97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };- A1080DB69690A2BD27969FC2 /* Pods-Share Extension.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.profile.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.profile.xcconfig"; sourceTree = "<group>"; };- A68B5D5A3F2AA255856692FC /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };- B8B5400AA6FED21CC714A5A0 /* Pods_Share_Extension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Share_Extension.framework; sourceTree = BUILT_PRODUCTS_DIR; };- B96B59C79D8F854FB9838CDF /* Pods-Ente Locker.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Ente Locker.profile.xcconfig"; path = "Target Support Files/Pods-Ente Locker/Pods-Ente Locker.profile.xcconfig"; sourceTree = "<group>"; };- C775876A93D19660332985CC /* Pods-Ente Locker.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Ente Locker.debug.xcconfig"; path = "Target Support Files/Pods-Ente Locker/Pods-Ente Locker.debug.xcconfig"; sourceTree = "<group>"; };- D09D02A78DCA8C010704EF91 /* Pods-Share Extension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.debug.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.debug.xcconfig"; sourceTree = "<group>"; };- E11D72536D63426171C60203 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };- F4C835C880E118F472E3A8B3 /* Pods-Share Extension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.release.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.release.xcconfig"; sourceTree = "<group>"; };+ B1F21036098F244DCEAA27C4 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };+ C13BD19AB969F2710896608C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };/* End PBXFileReference section *//* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */@@ -138,7 +134,7 @@isa = PBXFrameworksBuildPhase;buildActionMask = 2147483647;files = (- 92402655AF53FB304C48E4BC /* Pods_Share_Extension.framework in Frameworks */,+ 7DB7472FE5163F8377BAA06E /* Pods_Share_Extension.framework in Frameworks */,);runOnlyForDeploymentPostprocessing = 0;};@@ -146,7 +142,7 @@isa = PBXFrameworksBuildPhase;buildActionMask = 2147483647;files = (- 4CDDC127876941DC8FF88929 /* Pods_Runner.framework in Frameworks */,+ C5524BD77FD5F3A28E4B27B9 /* Pods_Runner.framework in Frameworks */,);runOnlyForDeploymentPostprocessing = 0;};@@ -154,7 +150,7 @@isa = PBXFrameworksBuildPhase;buildActionMask = 2147483647;files = (- 9373AE318AB19621F0BB5602 /* Pods_RunnerTests.framework in Frameworks */,+ D1265C7EE51D7F4B311138D6 /* Pods_RunnerTests.framework in Frameworks */,);runOnlyForDeploymentPostprocessing = 0;};@@ -172,18 +168,15 @@35603BA520E189E527465052 /* Pods */ = {isa = PBXGroup;children = (- A68B5D5A3F2AA255856692FC /* Pods-Runner.debug.xcconfig */,- 89AC4F9CF1F94E149746EB60 /* Pods-Runner.release.xcconfig */,- 405BE3630B56B70E48B35F05 /* Pods-Runner.profile.xcconfig */,- E11D72536D63426171C60203 /* Pods-RunnerTests.debug.xcconfig */,- 43F401025D1F7ED737A76C71 /* Pods-RunnerTests.release.xcconfig */,- 041816B42CE5846482BE66D6 /* Pods-RunnerTests.profile.xcconfig */,- C775876A93D19660332985CC /* Pods-Ente Locker.debug.xcconfig */,- 3AEDBF29614F8677DCE69E7E /* Pods-Ente Locker.release.xcconfig */,- B96B59C79D8F854FB9838CDF /* Pods-Ente Locker.profile.xcconfig */,- D09D02A78DCA8C010704EF91 /* Pods-Share Extension.debug.xcconfig */,- F4C835C880E118F472E3A8B3 /* Pods-Share Extension.release.xcconfig */,- A1080DB69690A2BD27969FC2 /* Pods-Share Extension.profile.xcconfig */,+ 0BCDDC0B76BC47310A263AA3 /* Pods-Runner.debug.xcconfig */,+ 7023A3B47DED2B222A9A8524 /* Pods-Runner.release.xcconfig */,+ 9171E7F346383A173442C22C /* Pods-Runner.profile.xcconfig */,+ B1F21036098F244DCEAA27C4 /* Pods-RunnerTests.debug.xcconfig */,+ 6DB88B6270DABA9C3008A2E8 /* Pods-RunnerTests.release.xcconfig */,+ 6996F0C9FE5B3381D2AB65D7 /* Pods-RunnerTests.profile.xcconfig */,+ 24AF90800C85F21B7FE65C5C /* Pods-Share Extension.debug.xcconfig */,+ 82CB94009AF08031CAFB767B /* Pods-Share Extension.release.xcconfig */,+ 1BD356E2AB17406483C7EED5 /* Pods-Share Extension.profile.xcconfig */,);path = Pods;sourceTree = "<group>";@@ -209,7 +202,7 @@97C146EF1CF9000F007C117D /* Products */,331C8082294A63A400263BE5 /* RunnerTests */,35603BA520E189E527465052 /* Pods */,- DE91D11FDE3D2B3ABE02BCCD /* Frameworks */,+ FD2680D106A0BF904AB8E741 /* Frameworks */,);sourceTree = "<group>";};@@ -239,13 +232,12 @@path = Runner;sourceTree = "<group>";};- DE91D11FDE3D2B3ABE02BCCD /* Frameworks */ = {+ FD2680D106A0BF904AB8E741 /* Frameworks */ = {isa = PBXGroup;children = (- 81319B7747381DEFA0F961F7 /* Pods_Runner.framework */,- 871674596693C14F59CB67C9 /* Pods_RunnerTests.framework */,- 611BD59A807D8565F74139DC /* Pods_Ente_Locker.framework */,- B8B5400AA6FED21CC714A5A0 /* Pods_Share_Extension.framework */,+ C13BD19AB969F2710896608C /* Pods_Runner.framework */,+ 4FDA38002AE5F3BE62147DBD /* Pods_RunnerTests.framework */,+ 287775B7AE148AC0BA3D8BA0 /* Pods_Share_Extension.framework */,);name = Frameworks;sourceTree = "<group>";@@ -257,7 +249,7 @@isa = PBXNativeTarget;buildConfigurationList = 27AD87F82E16554700B24C05 /* Build configuration list for PBXNativeTarget "Share Extension" */;buildPhases = (- 1304177914FB1E5B189BACD6 /* [CP] Check Pods Manifest.lock */,+ 4C11447D4B933752FB45CF78 /* [CP] Check Pods Manifest.lock */,27AD87E82E16554700B24C05 /* Sources */,27AD87E92E16554700B24C05 /* Frameworks */,27AD87EA2E16554700B24C05 /* Resources */,@@ -278,7 +270,7 @@isa = PBXNativeTarget;buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;buildPhases = (- AF55335C8D25422D2D282490 /* [CP] Check Pods Manifest.lock */,+ DC58853DB2A7059A34CE9BA2 /* [CP] Check Pods Manifest.lock */,331C807D294A63A400263BE5 /* Sources */,331C807F294A63A400263BE5 /* Resources */,CF47A9397DB3A7B2B1C598E3 /* Frameworks */,@@ -297,7 +289,7 @@isa = PBXNativeTarget;buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;buildPhases = (- DA099182B8E4842D754F598F /* [CP] Check Pods Manifest.lock */,+ 20BB8D075FD247726C50BB17 /* [CP] Check Pods Manifest.lock */,9740EEB61CF901F6004384FC /* Run Script */,97C146EA1CF9000F007C117D /* Sources */,97C146EB1CF9000F007C117D /* Frameworks */,@@ -305,7 +297,7 @@9705A1C41CF9048500538489 /* Embed Frameworks */,27AD87D02E1647E900B24C05 /* Embed Foundation Extensions */,3B06AD1E1E4923F5004D2608 /* Thin Binary */,- 82B64A7C257381AA0C0D6B15 /* [CP] Embed Pods Frameworks */,+ 8D527468FFBB8338B89BF7B2 /* [CP] Embed Pods Frameworks */,);buildRules = ();@@ -390,7 +382,7 @@/* End PBXResourcesBuildPhase section *//* Begin PBXShellScriptBuildPhase section */- 1304177914FB1E5B189BACD6 /* [CP] Check Pods Manifest.lock */ = {+ 20BB8D075FD247726C50BB17 /* [CP] Check Pods Manifest.lock */ = {isa = PBXShellScriptBuildPhase;buildActionMask = 2147483647;files = (@@ -405,7 +397,7 @@outputFileListPaths = ();outputPaths = (- "$(DERIVED_FILE_DIR)/Pods-Share Extension-checkManifestLockResult.txt",+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",);runOnlyForDeploymentPostprocessing = 0;shellPath = /bin/sh;@@ -428,61 +420,61 @@shellPath = /bin/sh;shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";};- 82B64A7C257381AA0C0D6B15 /* [CP] Embed Pods Frameworks */ = {+ 4C11447D4B933752FB45CF78 /* [CP] Check Pods Manifest.lock */ = {isa = PBXShellScriptBuildPhase;buildActionMask = 2147483647;files = ();inputFileListPaths = (- "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",);- name = "[CP] Embed Pods Frameworks";+ inputPaths = (+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",+ "${PODS_ROOT}/Manifest.lock",+ );+ name = "[CP] Check Pods Manifest.lock";outputFileListPaths = (- "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",+ );+ outputPaths = (+ "$(DERIVED_FILE_DIR)/Pods-Share Extension-checkManifestLockResult.txt",);runOnlyForDeploymentPostprocessing = 0;shellPath = /bin/sh;- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";showEnvVarsInLog = 0;};- 9740EEB61CF901F6004384FC /* Run Script */ = {+ 8D527468FFBB8338B89BF7B2 /* [CP] Embed Pods Frameworks */ = {isa = PBXShellScriptBuildPhase;- alwaysOutOfDate = 1;buildActionMask = 2147483647;files = ();- inputPaths = (+ inputFileListPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",);- name = "Run Script";- outputPaths = (+ name = "[CP] Embed Pods Frameworks";+ outputFileListPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",);runOnlyForDeploymentPostprocessing = 0;shellPath = /bin/sh;- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";+ showEnvVarsInLog = 0;};- AF55335C8D25422D2D282490 /* [CP] Check Pods Manifest.lock */ = {+ 9740EEB61CF901F6004384FC /* Run Script */ = {isa = PBXShellScriptBuildPhase;+ alwaysOutOfDate = 1;buildActionMask = 2147483647;files = ();- inputFileListPaths = (- );inputPaths = (- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",- "${PODS_ROOT}/Manifest.lock",- );- name = "[CP] Check Pods Manifest.lock";- outputFileListPaths = ();+ name = "Run Script";outputPaths = (- "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",);runOnlyForDeploymentPostprocessing = 0;shellPath = /bin/sh;- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";- showEnvVarsInLog = 0;+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";};- DA099182B8E4842D754F598F /* [CP] Check Pods Manifest.lock */ = {+ DC58853DB2A7059A34CE9BA2 /* [CP] Check Pods Manifest.lock */ = {isa = PBXShellScriptBuildPhase;buildActionMask = 2147483647;files = (@@ -497,7 +489,7 @@outputFileListPaths = ();outputPaths = (- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",+ "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",);runOnlyForDeploymentPostprocessing = 0;shellPath = /bin/sh;@@ -646,7 +638,7 @@};27AD87F92E16554700B24C05 /* Debug */ = {isa = XCBuildConfiguration;- baseConfigurationReference = D09D02A78DCA8C010704EF91 /* Pods-Share Extension.debug.xcconfig */;+ baseConfigurationReference = 24AF90800C85F21B7FE65C5C /* Pods-Share Extension.debug.xcconfig */;buildSettings = {CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";@@ -688,7 +680,7 @@};27AD87FA2E16554700B24C05 /* Release */ = {isa = XCBuildConfiguration;- baseConfigurationReference = F4C835C880E118F472E3A8B3 /* Pods-Share Extension.release.xcconfig */;+ baseConfigurationReference = 82CB94009AF08031CAFB767B /* Pods-Share Extension.release.xcconfig */;buildSettings = {CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";@@ -727,7 +719,7 @@};27AD87FB2E16554700B24C05 /* Profile */ = {isa = XCBuildConfiguration;- baseConfigurationReference = A1080DB69690A2BD27969FC2 /* Pods-Share Extension.profile.xcconfig */;+ baseConfigurationReference = 1BD356E2AB17406483C7EED5 /* Pods-Share Extension.profile.xcconfig */;buildSettings = {CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";@@ -766,7 +758,7 @@};331C8088294A63A400263BE5 /* Debug */ = {isa = XCBuildConfiguration;- baseConfigurationReference = E11D72536D63426171C60203 /* Pods-RunnerTests.debug.xcconfig */;+ baseConfigurationReference = B1F21036098F244DCEAA27C4 /* Pods-RunnerTests.debug.xcconfig */;buildSettings = {BUNDLE_LOADER = "$(TEST_HOST)";CODE_SIGN_STYLE = Automatic;@@ -784,7 +776,7 @@};331C8089294A63A400263BE5 /* Release */ = {isa = XCBuildConfiguration;- baseConfigurationReference = 43F401025D1F7ED737A76C71 /* Pods-RunnerTests.release.xcconfig */;+ baseConfigurationReference = 6DB88B6270DABA9C3008A2E8 /* Pods-RunnerTests.release.xcconfig */;buildSettings = {BUNDLE_LOADER = "$(TEST_HOST)";CODE_SIGN_STYLE = Automatic;@@ -800,7 +792,7 @@};331C808A294A63A400263BE5 /* Profile */ = {isa = XCBuildConfiguration;- baseConfigurationReference = 041816B42CE5846482BE66D6 /* Pods-RunnerTests.profile.xcconfig */;+ baseConfigurationReference = 6996F0C9FE5B3381D2AB65D7 /* Pods-RunnerTests.profile.xcconfig */;buildSettings = {BUNDLE_LOADER = "$(TEST_HOST)";CODE_SIGN_STYLE = Automatic;diff --git a/mobile/apps/locker/lib/services/files/upload/file_upload_service.dart b/mobile/apps/locker/lib/services/files/upload/file_upload_service.dartindex 21fdd4ff8c..dfd30b3616 100644--- a/mobile/apps/locker/lib/services/files/upload/file_upload_service.dart+++ b/mobile/apps/locker/lib/services/files/upload/file_upload_service.dart@@ -2,7 +2,6 @@ import 'dart:async';import 'dart:collection';import 'dart:convert';import 'dart:io';-import 'dart:math' as math;import 'package:collection/collection.dart';import 'package:dio/dio.dart';@@ -49,7 +48,6 @@ class FileUploader {LinkedHashMap<String, BackupItem>();final kSafeBufferForLockExpiry = const Duration(hours: 4).inMicroseconds;final kBGTaskDeathTimeout = const Duration(seconds: 5).inMicroseconds;- final _uploadURLs = Queue<UploadURL>();LinkedHashMap<String, BackupItem> get allBackups => _allBackups;@@ -179,10 +177,6 @@ class FileUploader {_totalCountInUploadSession = 0;}- void clearCachedUploadURLs() {- _uploadURLs.clear();- }-void removeFromQueueWhere(final bool Function(File) fn,final Error reason,@@ -334,10 +328,18 @@ class FileUploader {// otherwise just delete the file for singlepart uploadawait File(encryptedFilePath).delete();}++ // Validate source file before encryption+ final sourceFileSize = await file.length();+ if (sourceFileSize == 0) {+ throw Exception('Source file is empty (0 bytes): ${file.path}');+ }+ _logger.info('Source file size: $sourceFileSize bytes');+await _checkIfWithinStorageLimit(file);final encryptedFile = File(encryptedFilePath);- final fileAttributes = await CryptoUtil.encryptFile(+ final fileAttributes = await CryptoUtil.encryptFileWithMD5(file.path,encryptedFilePath,key: key,@@ -347,7 +349,7 @@ class FileUploader {final thumbnailData = base64Decode(blackThumbnailBase64);final encryptedThumbnailData = await CryptoUtil.encryptData(thumbnailData,- fileAttributes.key!,+ fileAttributes.key,);if (File(encryptedThumbnailPath).existsSync()) {await File(encryptedThumbnailPath).delete();@@ -357,16 +359,52 @@ class FileUploader {.writeAsBytes(encryptedThumbnailData.encryptedData!);final encThumbSize = await encryptedThumbnailFile.length();- final thumbnailUploadURL = await _getUploadURL();+ // Validate file sizes before upload+ if (encFileSize == 0) {+ throw Exception(+ 'Encrypted file size is 0',+ );+ }+ if (encThumbSize == 0) {+ throw Exception(+ 'Encrypted thumbnail size is 0',+ );+ }++ // Calculate MD5 hashes for checksum verification+ final thumbnailMd5 = await computeMd5(encryptedThumbnailPath);+ final fileMd5 = fileAttributes.fileMd5;++ // Validate that MD5 was calculated during encryption+ if (fileMd5 == null || fileMd5.isEmpty) {+ throw Exception('File MD5 hash is null or empty');+ }++ _logger.info(+ 'Uploading file: encFileSize=$encFileSize, encThumbSize=$encThumbSize',+ );++ final thumbnailUploadURL = await _getUploadURL(+ contentLength: encThumbSize,+ md5: thumbnailMd5,+ );final thumbnailObjectKey = await _putFile(thumbnailUploadURL,encryptedThumbnailFile,encThumbSize,+ thumbnailMd5,);- final fileUploadURL = await _getUploadURL();- final fileObjectKey =- await _putFile(fileUploadURL, encryptedFile, encFileSize);+ final fileUploadURL = await _getUploadURL(+ contentLength: encFileSize,+ md5: fileMd5,+ );+ final fileObjectKey = await _putFile(+ fileUploadURL,+ encryptedFile,+ encFileSize,+ fileMd5,+ );final enteFile = EnteFile.fromFile(file);@@ -616,59 +654,38 @@ class FileUploader {}}- Future<UploadURL> _getUploadURL() async {- if (_uploadURLs.isEmpty) {- // the queue is empty, fetch at least for one file to handle force uploads- // that are not in the queue. This is to also avoid- await fetchUploadURLs(math.max(_queue.length, 1));- }+ // Fetch a fresh upload URL for each file with content length and MD5+ Future<UploadURL> _getUploadURL({+ required int contentLength,+ required String md5,+ }) async {try {- return _uploadURLs.removeFirst();- } catch (e) {- if (e is StateError && e.message == 'No element' && _queue.isEmpty) {- _logger.warning("Oops, uploadUrls has no element now, fetching again");- return _getUploadURL();- } else {- rethrow;- }- }- }-- Future<void>? _uploadURLFetchInProgress;-- Future<void> fetchUploadURLs(int fileCount) async {- _uploadURLFetchInProgress ??= Future<void>(() async {- try {- final response = await _enteDio.get(- "/files/upload-urls",- queryParameters: {- "count": math.min(42, fileCount * 2), // m4gic number- },- );- final urls = (response.data["urls"] as List)- .map((e) => UploadURL.fromMap(e))- .toList();- _uploadURLs.addAll(urls);- } on DioException catch (e, s) {- if (e.response != null) {- if (e.response!.statusCode == 402) {- final error = NoActiveSubscriptionError();- clearQueue(error);- throw error;- } else if (e.response!.statusCode == 426) {- final error = StorageLimitExceededError();- clearQueue(error);- throw error;- } else {- _logger.warning("Could not fetch upload URLs", e, s);- }+ final response = await _enteDio.post(+ "/files/upload-url",+ data: {+ "contentLength": contentLength,+ "contentMD5": md5,+ },+ );+ return UploadURL.fromMap(+ (response.data as Map).cast<String, dynamic>(),+ );+ } on DioException catch (e, s) {+ if (e.response != null) {+ if (e.response!.statusCode == 402) {+ final error = NoActiveSubscriptionError();+ clearQueue(error);+ throw error;+ } else if (e.response!.statusCode == 426) {+ final error = StorageLimitExceededError();+ clearQueue(error);+ throw error;+ } else {+ _logger.warning("Could not fetch upload URL", e, s);}- rethrow;- } finally {- _uploadURLFetchInProgress = null;}- });- return _uploadURLFetchInProgress;+ rethrow;+ }}void _onStorageLimitExceeded() {@@ -679,7 +696,8 @@ class FileUploader {Future<String> _putFile(UploadURL uploadURL,File file,- int fileSize, {+ int fileSize,+ String md5, {int attempt = 1,}) async {final startTime = DateTime.now().millisecondsSinceEpoch;@@ -691,6 +709,7 @@ class FileUploader {options: Options(headers: {Headers.contentLengthHeader: fileSize,+ 'Content-MD5': md5,},),);@@ -704,11 +723,15 @@ class FileUploader {rethrow;} else if (attempt < kMaximumUploadAttempts) {_logger.info("Upload failed for $fileName, retrying");- final newUploadURL = await _getUploadURL();+ final newUploadURL = await _getUploadURL(+ contentLength: fileSize,+ md5: md5,+ );return _putFile(newUploadURL,file,fileSize,+ md5,attempt: attempt + 1,);} else {diff --git a/mobile/apps/locker/lib/utils/data_util.dart b/mobile/apps/locker/lib/utils/data_util.dartindex d324cde35d..9dd5fc5236 100644--- a/mobile/apps/locker/lib/utils/data_util.dart+++ b/mobile/apps/locker/lib/utils/data_util.dart@@ -1,5 +1,10 @@+import 'dart:convert';+import 'dart:io';import 'dart:math';+import 'package:convert/convert.dart';+import 'package:crypto/crypto.dart';+final storageUnits = ["bytes", "KB", "MB", "GB", "TB"];String convertBytesToReadableFormat(int bytes) {@@ -61,3 +66,15 @@ num roundGBsToTBs(sizeInGBs) {return sizeInTBs;}}++/// Computes the MD5 hash of a file.+///+/// Returns base64-encoded MD5 hash suitable for HTTP Content-MD5 header.+Future<String> computeMd5(String filePath) async {+ final file = File(filePath);+ final output = AccumulatorSink<Digest>();+ final input = md5.startChunkedConversion(output);+ await file.openRead().forEach(input.add);+ input.close();+ return base64Encode(output.events.single.bytes);+}diff --git a/mobile/apps/locker/pubspec.lock b/mobile/apps/locker/pubspec.lockindex 7c84878989..5452226ee1 100644--- a/mobile/apps/locker/pubspec.lock+++ b/mobile/apps/locker/pubspec.lock@@ -122,7 +122,7 @@ packages:source: hostedversion: "1.19.1"convert:- dependency: transitive+ dependency: "direct main"description:name: convertsha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68@@ -243,7 +243,7 @@ packages:description:path: "."ref: HEAD- resolved-ref: f91e1545f8263df127762240c4da54a0c42835b2+ resolved-ref: "7fc9a9709ab818e4cfff23866c60285ba305f0dd"url: "https://github.com/ente-io/ente_crypto_dart.git"source: gitversion: "1.0.0"diff --git a/mobile/apps/locker/pubspec.yaml b/mobile/apps/locker/pubspec.yamlindex 5e9614bcb5..184b9c7ad7 100644--- a/mobile/apps/locker/pubspec.yaml+++ b/mobile/apps/locker/pubspec.yaml@@ -9,6 +9,7 @@ dependencies:adaptive_theme: ^3.6.0bip39: ^1.0.6collection: ^1.18.0+ convert: ^3.1.1crypto: ^3.0.6dio: ^5.8.0+1dotted_border: ^3.1.0