Commit graph

448 commits

Author SHA1 Message Date
Vishnu Mohandas 0969b8f73f Add comment linking to Github issue 2021-05-13 02:03:21 +05:30
Vishnu Mohandas 6f8324137c Safe guard against timeouts in fetching assets or origin files 2021-05-13 01:56:46 +05:30
Vishnu Mohandas 89790cc9c4 Remove redundant variable 2021-05-13 01:33:16 +05:30
Vishnu Mohandas e7a6722458 Update background color of progress dialog 2021-05-12 20:55:14 +05:30
Vishnu Mohandas 74470a7882 Smoothen the first load experience 2021-05-10 18:53:53 +05:30
Vishnu Mohandas 15b0d26bbc Handle invalid files gracefully 2021-05-09 19:55:31 +05:30
Vishnu Mohandas 96465a56fa Push to navigator without triggering a rebuild 2021-05-08 23:44:18 +05:30
Vishnu Mohandas 55decd001c Access code in main 2021-05-07 22:57:11 +05:30
Vishnu Mohandas dc460ffbe2 Remove unused cache 2021-05-07 21:00:52 +05:30
Vishnu Mohandas 85f155fe14 Maintain disk cache for thumbnails by self 2021-05-07 20:59:33 +05:30
Vishnu Mohandas caba788a6a Don't block on writing to cache to return the decrypted thumbnail 2021-05-07 04:05:56 +05:30
Vishnu Mohandas 51b1ef7e30 Move heavy decryption to a separate isolate 2021-05-04 21:13:19 +05:30
Vishnu Mohandas 078421b3b0 Make encrypt function async 2021-05-04 21:02:23 +05:30
Vishnu Mohandas a42ad9548a Fix metadata in file-deletion operations 2021-05-04 02:56:23 +05:30
Vishnu Mohandas d2ebcb12ca Factor out code to delete a file into a util 2021-05-04 02:44:44 +05:30
Vishnu Mohandas 211666c938 Remove debugging code 2021-05-04 00:18:13 +05:30
Vishnu Mohandas d5f9f3e497 Improve logic to load thumbnails 2021-05-03 20:48:56 +05:30
Vishnu Mohandas f0a2fa7e43 Move thumbnail ops to separate util 2021-05-03 02:22:56 +05:30
Vishnu Mohandas 0592ed04b0 Upgrade ALL packages! 2021-05-02 21:35:36 +05:30
Vishnu Mohandas e1522aa8e7 Add special handling for deleted files 2021-05-02 16:01:04 +05:30
Vishnu Mohandas dd007c2bc0 Handle errors during file deletion 2021-05-01 02:32:16 +05:30
Vishnu Mohandas be5f1d3bef Fix dialog dismissal issues with the deletion flow 2021-04-28 04:03:07 +05:30
Vishnu Mohandas 27773608f8 Sync silently with remote post deletion 2021-04-28 03:48:18 +05:30
Vishnu Mohandas 5a6d538879 Update the delete files API 2021-04-28 02:19:00 +05:30
Vishnu Mohandas c4af4a22a7 Pass list instead of iterable 2021-04-28 01:32:20 +05:30
Vishnu Mohandas 0f33fb750c Make utility function available publicly 2021-04-28 00:27:27 +05:30
Vishnu Mohandas 8a6d608f84 Preload remote files as well 2021-04-27 22:03:47 +05:30
Vishnu Mohandas c24a94181b Preload remote thumbnails too 2021-04-27 21:59:58 +05:30
Vishnu Mohandas 30cb575526 Increase number of concurrent downloads 2021-04-24 13:04:45 +05:30
Vishnu Mohandas 426ab8add5 Minimize the number of reloads for collection updates 2021-04-24 03:07:04 +05:30
Vishnu Mohandas 07ce960f65 Emit the list of changed files along with the event 2021-04-24 00:41:05 +05:30
Vishnu Mohandas 2b7c4612ea Remove FileRepository 2021-04-21 18:39:18 +05:30
Vishnu Mohandas 8b73805af4 Implement a lazy loading gallery 2021-04-20 17:56:42 +05:30
Vishnu Mohandas a1d61fcd39 Remove verbose log line 2021-04-19 19:44:21 +05:30
Vishnu Mohandas ffa878e354 Extract method to clear cache to a util 2021-04-19 18:26:12 +05:30
Vishnu Mohandas 338217eac5 Reduce number of DB reads/writes during a diff fetch 2021-04-19 17:16:48 +05:30
Vishnu Mohandas 60555f35cf Reduce number of DB reads during diff fetch 2021-04-19 16:57:52 +05:30
Vishnu Mohandas c65f7ee770 Change background color for toasts 2021-04-06 05:36:54 +05:30
Vishnu Mohandas a21ddfb9c9 Change progress bar color 2021-04-02 05:00:11 +05:30
Vishnu Mohandas 3f4238bef9 Binary search to find appropriate mem and ops limits 2021-04-02 03:24:12 +05:30
Vishnu Mohandas 5d24c29dd4 Init libsodium 2021-04-02 00:33:55 +05:30
Vishnu Mohandas 53b81e537e Log verbose errors when a thumbnail download fails 2021-04-01 23:59:27 +05:30
Vishnu Mohandas d6bc9f72c4 Update progress dialog style 2021-03-31 13:54:50 +05:30
Vishnu Mohandas d1d72ed325 Display the correct queue size 2021-03-22 12:44:16 +05:30
Vishnu Mohandas 887bcbf06a Add functionality to add and remove folders from queue 2021-03-22 11:59:53 +05:30
Vishnu Mohandas a4fd2f7cf4 Fix dialog dismissals 2021-03-21 16:51:45 +05:30
Vishnu Mohandas bf09a87997 Show lockscreen onStart and onResume 2021-03-21 14:02:10 +05:30
Vishnu Mohandas 088b73eb70 Add setting to show lockscreen 2021-03-19 18:57:39 +05:30
Vishnu Mohandas 8cb7f885b3 Default to sensitive limits for computation and memory for key derivation 2021-03-18 14:57:59 +05:30
Vishnu Mohandas 317bbf8f18 Remove all instances of kekHash 2021-03-18 13:39:02 +05:30
Vishnu Mohandas a7b2e63b1a Add an option to logout 2021-03-18 02:37:17 +05:30
Vishnu Mohandas 77cd8f6b52 Add hex util 2021-03-18 00:49:07 +05:30
Vishnu Mohandas 055d26d4c8 Log error only when file upload finally fails 2021-03-10 10:41:05 +05:30
Vishnu Mohandas 87f68e2b5a Handle deletion failures gracefully 2021-03-08 14:43:46 +05:30
Vishnu Mohandas f83e52f7c7 Log size of the file whose upload failed 2021-03-07 10:54:36 +05:30
Vishnu Mohandas 5cdcf5f743 Capture upload errors triggered in the background 2021-03-05 00:06:40 +05:30
Vishnu Mohandas 15bd805843 Rename param 2021-03-04 23:02:57 +05:30
Vishnu Mohandas d4ce8fc162 Simplify detection of background uploads 2021-03-04 22:58:27 +05:30
Vishnu Mohandas d2fd2004f4 Add a different name for files being uploaded in the background 2021-03-04 21:05:13 +05:30
Vishnu Mohandas f01933d62a Reload prefs before checking for last heartbeat time 2021-03-04 20:44:37 +05:30
Vishnu Mohandas 3519d78be7 Add a heart beat for BG tasks, that can indicate whether the locks are valid or not 2021-03-04 20:44:08 +05:30
Vishnu Mohandas 889b9cbd38 Refactor FileUploader 2021-03-04 20:29:32 +05:30
Vishnu Mohandas a557723061 Refresh on background updates 2021-03-04 06:17:49 +05:30
Vishnu Mohandas 3b3e5b60d1 Make UploadLocksDB dumber 2021-03-04 01:48:50 +05:30
Vishnu Mohandas 0b90ea1271 Update timestamp on disk when a background upload is completed 2021-03-04 01:43:55 +05:30
Vishnu Mohandas 74d108c113 Minor refactor 2021-03-04 01:39:57 +05:30
Vishnu Mohandas 3c331c174a Surface the error to the completer 2021-03-03 23:11:01 +05:30
Vishnu Mohandas b9e9aa393a Take a lock on a file before triggering it's upload 2021-03-03 21:37:02 +05:30
Vishnu Mohandas d7b3410753 Better logging in uploader 2021-03-03 21:34:45 +05:30
Vishnu Mohandas 3a2128618b Save guard against null responses 2021-03-03 10:28:36 +05:30
Vishnu Mohandas f986c9ae29 Make free plan configurable 2021-03-02 12:05:10 +05:30
Vishnu Mohandas b5affaa3c9 Lower log level 2021-03-02 00:25:10 +05:30
Vishnu Mohandas 9194c5d690 Reduce quality of the local thumbnail 2021-03-02 00:12:06 +05:30
Vishnu Mohandas b6c67c787a Use localID as the key for FileUploader 2021-02-26 19:42:23 +05:30
Vishnu Mohandas fef621155b Remove unnecessary log 2021-02-26 15:34:18 +05:30
Vishnu Mohandas 2759399ff3 Extract errors into a separate file 2021-02-26 14:51:47 +05:30
Vishnu Mohandas 1e38f083e0 Delete invalid files when encountered 2021-02-26 14:34:02 +05:30
Vishnu Mohandas 36db572c77 Guard against invalid assets 2021-02-26 14:26:20 +05:30
Vishnu Mohandas 6be3b5b277 Remove noisy logline 2021-02-26 14:02:30 +05:30
Vishnu Mohandas 7f638056a1 Log if the upload is forced 2021-02-26 14:02:16 +05:30
Vishnu Mohandas 23986a8b77 Add logs 2021-02-26 14:01:28 +05:30
Vishnu Mohandas 50a53f136e Minimize noise in logs 2021-02-26 14:00:50 +05:30
Vishnu Mohandas 85022575a1 Simplify force-upload flow 2021-02-26 13:58:01 +05:30
Vishnu Mohandas c0fd287b0e Add log for force uploads 2021-02-26 13:49:35 +05:30
Vishnu Mohandas 5f23d2c808 Remove redundant comment 2021-02-26 13:47:31 +05:30
Vishnu Mohandas 9aa13a83af Clean up force upload flow 2021-02-26 13:46:31 +05:30
Vishnu Mohandas 8dee68650e Upload thumbnails first and files next 2021-02-25 22:02:49 +05:30
Vishnu Mohandas a0614ad114 Clear upload queue with a reason 2021-02-25 21:44:27 +05:30
Vishnu Mohandas 8dfa777db3 Retry failed file puts 2021-02-25 21:23:32 +05:30
Vishnu Mohandas 3cb2b36c4c Clear upload queue if a subscription related error is encountered 2021-02-25 21:18:34 +05:30
Vishnu Mohandas 2659cb8ebc Parse StorageLimitExceededError while fetching upload URLs 2021-02-25 20:54:18 +05:30
Vishnu Mohandas 75baddd762 Log stacktrace 2021-02-18 15:48:33 +05:30
Vishnu Mohandas 04e9184883 Reload file repository once a file has been uploaded or updated 2021-02-18 15:48:14 +05:30
Vishnu Mohandas fb2600d1b1 Log each upload attempt 2021-02-18 12:49:13 +05:30
Vishnu Mohandas 380ce36e7d Show next renewal date on the susbcription screen 2021-02-16 19:31:29 +05:30
Vishnu Mohandas 46cf652463 Trigger CollectionUpdatedEvent selectively 2021-02-14 17:12:11 +05:30
Vishnu Mohandas 725455b3da Compress thumbnails repeatedly 2021-02-14 12:31:57 +05:30
Vishnu Mohandas 703d331bd0 Rename file 2021-02-13 18:00:18 +05:30
Vishnu Mohandas abca565a8a Fetch only required number of URLs 2021-02-13 17:58:35 +05:30
Vishnu Mohandas 3be8ee5299 Keep a limit on the the number reupload attempts 2021-02-13 17:57:41 +05:30
Vishnu Mohandas 10c0a52bf2 Handle contentLength errors 2021-02-13 17:56:37 +05:30
Vishnu Mohandas c64c8c5efe Increase number of parallel thumbnail download requests 2021-02-09 17:46:20 +05:30
Vishnu Mohandas 2af6516c90 Throttle the maximum number of concurrent thumbnail downloads 2021-02-09 17:34:40 +05:30
Vishnu Mohandas 77b909f3d2 Remove legacy code related to orma.in where files could be unencrypted 2021-02-08 14:35:41 +05:30
Vishnu Mohandas 383b67427f Reset cached value once subscription has been updated 2021-02-08 14:13:51 +05:30
Vishnu Mohandas a641c42e90 Remove corrupted files from the DB 2021-02-07 02:43:51 +05:30
Vishnu Mohandas 3a0c21ddd8 Fix issue with rendering a progress dialog 2021-02-07 01:17:42 +05:30
Vishnu Mohandas 2c5f7b97c4 Fix progress dialog color 2021-02-06 01:24:39 +05:30
Vishnu Mohandas 417e83987c Parse storage quota exceeded errors 2021-02-03 00:31:32 +05:30
Vishnu Mohandas 86f97e9c66 Clear and restart uploads when a subscription is purchased 2021-02-02 23:55:43 +05:30
Vishnu Mohandas 38b2df9c58 Revert "Reduce the thumbnail until it's lower than the thumbnail limit"
This reverts commit 5d09e6b601.
2021-02-02 23:42:29 +05:30
Vishnu Mohandas 5d09e6b601 Reduce the thumbnail until it's lower than the thumbnail limit 2021-02-02 23:27:53 +05:30
Vishnu Mohandas a10ad8c279 Handle subscription expired errors 2021-02-02 22:05:38 +05:30
Vishnu Mohandas 0ab2fbd755 Remove verbose log 2021-02-02 17:07:07 +05:30
Vishnu Mohandas a7eb3d8653 Move bytes to GB conversion to a util 2021-02-01 16:32:30 +05:30
Vishnu Mohandas 79d312f263 Revert to official IAP library since purchases aren't getting completed on iOS 2021-02-01 02:11:41 +05:30
Vishnu Mohandas b6e5e810b3 Move computer initialization to CryptoUtil 2021-01-26 17:16:14 +05:30
Vishnu Mohandas f7cbd2c284 Handle null locations gracefully 2021-01-19 14:00:48 +05:30
Vishnu Mohandas 11b61d0902 Fix crashes while sharing large files 2021-01-13 15:46:31 +05:30
Vishnu Mohandas 94ca34de4d Fix sync stop functionality 2021-01-13 14:20:14 +05:30
Vishnu Mohandas e86e38739a Convert error dialogs to lowercase 2021-01-08 22:36:52 +05:30
Vishnu Mohandas 8f17f3d4bf Use unthreatening lower case 2021-01-08 22:32:41 +05:30
Vishnu Mohandas d3d9e2bbf7 Rename passphrase to password 2021-01-05 19:57:02 +05:30
Vishnu Mohandas b699a94b58 Prevent duplicate uploads during reinstallations 2021-01-02 14:34:36 +05:30
Vishnu Mohandas 656af2969e Safeguard against IllegalStateException 2020-12-09 02:17:38 +05:30
Vishnu Mohandas 515342e003 Fetch diff from only those collections that have changed 2020-12-04 02:31:24 +05:30
Vishnu Mohandas e7821d605d Add option to delete file from just the device 2020-12-01 19:32:36 +05:30
Vishnu Mohandas 350b6423cf Update files that haven't been uploaded too 2020-12-01 13:39:02 +05:30
Vishnu Mohandas e743fd6f41 Request for files that have been updated on device 2020-12-01 13:38:19 +05:30
Vishnu Mohandas d318a57d23 Implement ability to update files on remote 2020-12-01 00:12:11 +05:30
Vishnu Mohandas 51f083d290 Adopt API to update file if already uploaded 2020-11-30 23:15:21 +05:30
Vishnu Mohandas 127270b23e Remove only those files that have actually been deleted 2020-11-30 16:16:56 +05:30
Vishnu Mohandas c3bd8c7f2b Clear cache on iOS to reduce disk storage consumption 2020-11-30 15:50:08 +05:30
Vishnu Mohandas 3f084bb38c Clear existing temp files if any before writing to them 2020-11-30 12:27:28 +05:30
Vishnu Mohandas 304ec1806c Add null check 2020-11-30 12:00:34 +05:30
Vishnu Mohandas b92023ad5c Skip parsing files that are already in sync 2020-11-30 11:58:37 +05:30
Vishnu Mohandas 4884e98346 Rename function 2020-11-27 12:25:55 +05:30
Vishnu Mohandas cd224e523d Ensure that tokens are passed only in the header 2020-11-27 12:22:07 +05:30
Vishnu Mohandas 47052a6596 Compress iOS thumbnails 2020-11-22 23:37:40 +05:30
Vishnu Mohandas da2cb1b2cf Improve the resolution of the compressed thumbnail 2020-11-22 23:25:34 +05:30
Vishnu Mohandas a1e68d54a6 Compress thumbnails fetched from the server 2020-11-22 14:46:11 +05:30
Vishnu Mohandas a6c3913af5 Convert HEIC images on Android 2020-11-20 16:35:17 +05:30
Vishnu Mohandas 34ffc9e5a1 Log all network requests 2020-11-19 23:52:30 +05:30
Vishnu Mohandas 316e1c53d7 Simplify the force upload flow 2020-11-19 20:29:01 +05:30
Vishnu Mohandas aa9929f07d Force upload files even on mobile data 2020-11-18 21:32:32 +05:30
Vishnu Mohandas 9b84413a68 Handle file deletions outside ente gracefully 2020-11-17 11:32:14 +05:30
Vishnu Mohandas 1947970b0a Sync only when WiFi is available 2020-11-16 22:05:16 +05:30
Vishnu Mohandas 8448b9baef Lower the quality of local thumbnails that are loaded 2020-11-16 13:05:06 +05:30
Vishnu Mohandas 06f5db3fd7 Ensure that temp files generated are deleted 2020-11-16 12:32:09 +05:30
Vishnu Mohandas ed80f9dc9f Show year within gallery if not within the same year 2020-11-14 16:41:43 +05:30
Vishnu Mohandas 892d04288a Add draggable scroll bar 2020-11-12 18:55:57 +05:30
Vishnu Mohandas 6891beeb48 Make sure that upload resumes when possible 2020-11-09 23:36:27 +05:30
Vishnu Mohandas ccbc3bec96 Fetch a batch of URLs in one go 2020-11-09 23:13:40 +05:30
Vishnu Mohandas 433e11882a Fix race conditions in the upload flow 2020-11-09 21:40:43 +05:30
Vishnu Mohandas e825798433 Enable parallel uploads 2020-11-09 17:58:43 +05:30
Vishnu Mohandas 3602f8d08c Buffer first load from disk to improve performance 2020-11-01 16:30:50 +05:30
Vishnu Mohandas 49af595268 Fix deletion behavior 2020-11-01 13:07:23 +05:30
Vishnu Mohandas 2b2db78d67 Ensure that events are generated on file deletion 2020-11-01 12:15:10 +05:30
Vishnu Mohandas e637d18426 Refresh collection page on file delete 2020-11-01 10:45:33 +05:30
Vishnu Mohandas 4dd4eed10c Update delete API 2020-10-31 04:55:28 +05:30
Vishnu Mohandas 5730d265a3 Remove endpoint finder 2020-10-31 00:05:14 +05:30
Vishnu Mohandas 32087f79d1 Remove logging util 2020-10-31 00:05:08 +05:30
Vishnu Mohandas ff4b620d0d Disable preloading until relevant ordering can be ensured 2020-10-28 21:16:15 +05:30
Vishnu Mohandas 28098cae79 Update diff fetching API 2020-10-28 21:15:05 +05:30
Vishnu Mohandas 585079b380 Download files in parallel when attempting to share 2020-10-26 20:49:29 +05:30
Vishnu Mohandas ccf577c1bb Preload files 2020-10-26 20:38:47 +05:30
Vishnu Mohandas 36ab7edb7c Add a button to create an album 2020-10-26 16:48:00 +05:30
Vishnu Mohandas 22f670ccd4 Prevent parallel downloads for the same thumbnail 2020-10-26 16:24:26 +05:30
Vishnu Mohandas 7fe8f9fa40 Document h4ck 2020-10-25 05:10:53 +05:30
Vishnu Mohandas 6cabe8c21a Ensure that the location is saved to the metadata if unavailable before uploading 2020-10-25 05:09:46 +05:30
Vishnu Mohandas 805e5a8550 Prevent duplicate uploads across collections 2020-10-25 01:35:50 +05:30
Vishnu Mohandas 56c31318d4 Update delete file interaction 2020-10-23 20:50:51 +05:30
Vishnu Mohandas c44e89641b Remove files that have been deleted on remote 2020-10-23 20:29:51 +05:30
Vishnu Mohandas 4a054e4365 Remove debug log statement 2020-10-23 20:25:41 +05:30
Vishnu Mohandas f6e6e8bf49 Update contract of the FileUploader 2020-10-21 21:50:41 +05:30
Vishnu Mohandas ec0972d7ba Log download speeds 2020-10-19 02:35:32 +05:30
Vishnu Mohandas 588fa6dca0 Log the upload speeds 2020-10-18 01:19:45 +05:30
Vishnu Mohandas 6a73308bd1 Fix remaining issues with displaying shared collection items 2020-10-14 03:10:22 +05:30
Vishnu Mohandas 83be7e3e42 Fix file decryption logic 2020-10-13 02:05:33 +05:30
Vishnu Mohandas 107c1b870e Send the collectionID in file creation requests 2020-10-13 00:45:01 +05:30
Vishnu Mohandas 13715c924c Remove redundant code to sync diff 2020-10-12 23:55:33 +05:30
Vishnu Mohandas d5338af961 Update API endpoint to upload and fetch files 2020-10-11 05:59:31 +05:30
Vishnu Mohandas fa8a284af3 Encrypt file key with the collection key 2020-10-11 05:56:52 +05:30
Vishnu Mohandas 8f8594f07f Decrypt keys of files within collections using the collectionKey 2020-10-11 05:47:31 +05:30
Vishnu Mohandas da8b69084b Add collectionID as an attribute to files 2020-10-11 05:30:44 +05:30
Vishnu Mohandas a40355c249 Remove unnecessary await 2020-10-11 05:13:47 +05:30
Vishnu Mohandas bae5c9bf7d Explicitly state the sync nature of the encryption API 2020-10-11 05:08:22 +05:30
Vishnu Mohandas 86b60fd487 Add API to seal with a user's public key 2020-10-11 04:11:15 +05:30
Vishnu Mohandas 50a67acb75 Use the explicit sync-decrypt API 2020-10-11 04:10:18 +05:30
Vishnu Mohandas bd879263f0 Add functionality to extract a decrypted collection key 2020-10-11 04:08:33 +05:30
Vishnu Mohandas ad8bca7fe7 Add a util function to share text 2020-10-10 05:17:14 +05:30
Vishnu Mohandas 785481fccd Add a util to validate emails 2020-10-10 03:15:07 +05:30
Vishnu Mohandas 1330ef07d2 Switch to cryptobox keygen 2020-10-07 05:54:13 +05:30
Vishnu Mohandas 266e1984ae Update file creation API params 2020-10-07 05:26:49 +05:30
Vishnu Mohandas 2346d54838 File file decryption behavior 2020-10-07 05:26:37 +05:30
Vishnu Mohandas 8da3f0c687 Remove more unnecessary models 2020-10-07 04:47:53 +05:30
Vishnu Mohandas 3f5d20027e Remove unnecessary model 2020-10-07 04:42:02 +05:30
Vishnu Mohandas 7f707d187e Refactor crypto util 2020-10-07 04:28:41 +05:30
Vishnu Mohandas 27f019af57 Move to XChaCha for thumbnail and metadata encryption 2020-10-07 04:25:59 +05:30
Vishnu Mohandas 16b2ff0624 Declutter root folder 2020-10-03 23:28:26 +05:30