Commit graph

589 commits

Author SHA1 Message Date
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
Vishnu Mohandas 5a25676dc4 Generate and store public private keypairs on the server 2020-10-03 03:15:26 +05:30
Vishnu Mohandas 832b0c7e74 Update the computation logic for kek-hash 2020-10-02 18:43:15 +05:30
Vishnu Mohandas 0daecf3924 Remove unused function 2020-10-01 04:44:20 +05:30
Vishnu Mohandas 1b40d64a20 Move hash verification to a separate isolate 2020-09-30 23:59:58 +05:30
Vishnu Mohandas 71720df54c Compute the hash on a separate isolate 2020-09-30 19:20:00 +05:30
Vishnu Mohandas a4323ad280 Reduce the memlimit for pwhash 2020-09-29 00:34:22 +05:30
Vishnu Mohandas fed7cda7f4 Replace scrypt with libsodium's abstractions 2020-09-29 00:02:53 +05:30
Vishnu Mohandas b06190fbf2 Replace AES with libsodium abstractions 2020-09-28 23:22:43 +05:30
Vishnu Mohandas a7944a3f93 Use sodium to generate random bytes 2020-09-28 23:06:04 +05:30
Vishnu Mohandas a089fd1e3b Remove unused AESCrypt library 2020-09-28 22:37:33 +05:30
Vishnu Mohandas 04e2edd4e7 Prevent multiple file download requests 2020-09-28 22:35:53 +05:30
Vishnu Mohandas f3446a9ed0 Don't prefetch files from server 2020-09-28 21:47:19 +05:30
Vishnu Mohandas 61c80bff3e Minor refactor 2020-09-28 21:46:04 +05:30
Vishnu Mohandas 03fb189396 Add some logging to fileutil 2020-09-28 21:45:21 +05:30
Vishnu Mohandas 4de5c56a3f Fix copypastah errors 2020-09-28 21:45:06 +05:30
Vishnu Mohandas f2b10a4168 Move expensive encryption and decryption operations to a separate isolate 2020-09-28 21:24:40 +05:30
Vishnu Mohandas e574a0d8d2 Use Dart's file handling APIs correctly to append to a file 2020-09-26 03:54:33 +05:30
Vishnu Mohandas 05a67773e9 Minor refactor 2020-09-26 03:08:14 +05:30
Vishnu Mohandas d6e0671fe7 Rename variable 2020-09-26 02:28:19 +05:30
Vishnu Mohandas bd66a9a309 Simplify encryption code 2020-09-26 02:26:02 +05:30
Vishnu Mohandas 9f6cfebcb1 Ensure file deletion only after read 2020-09-26 01:55:03 +05:30
Vishnu Mohandas 727a1684ce Switch to libsodium for file encryption and decryption 2020-09-26 00:37:32 +05:30
Vishnu Mohandas 3bad6a7c94 Add API to chacha encrypt and decrypt a file 2020-09-25 21:15:00 +05:30
Vishnu Mohandas 735d30583a Cache downloaded thumbnails and files for 365 days 2020-09-18 00:11:14 +05:30
Vishnu Mohandas 6d8e7c1a43 Save files to cache with the extension 2020-09-17 19:59:42 +05:30
Vishnu Mohandas 9e641ba57d Return base64 encoded string 2020-09-10 05:18:11 +05:30
Vishnu Mohandas 87fd87987a Explicitly call the AESCrypt password as password 2020-09-10 03:57:54 +05:30
Vishnu Mohandas db3869fa58 Use existing raw API for steel crypt 2020-09-10 03:00:04 +05:30
Vishnu Mohandas 94a41a72c9 Remove all assumptions related to key attribute encoding 2020-09-10 02:39:41 +05:30
Vishnu Mohandas 5fffea1824 Remove single line hash function 2020-09-10 02:22:18 +05:30
Vishnu Mohandas d9a583a46c Ensure that CBC is always the chosen mode of encryption 2020-09-10 02:17:51 +05:30
Vishnu Mohandas 4cd93610f7 Make no assumptions about the encoding type of the key 2020-09-10 01:01:14 +05:30
Vishnu Mohandas 1f98f8ca8d Modify steel crypt to expose a hashBytes function that does not assume the encoding of the inputs or output 2020-09-09 14:35:24 +05:30
Vishnu Mohandas 831de35e9c Update file upload API 2020-09-06 11:59:30 +05:30
Vishnu Mohandas bc36bf8f5e Verify the correctness of the passphrase entered 2020-09-05 14:23:23 +05:30
Vishnu Mohandas a5d3305cbf Encrypt every file with a separate key 2020-09-03 22:20:26 +05:30
Vishnu Mohandas aa2890107f Add API to use AesCrypt to encrypt and decrypt data directly 2020-09-03 21:08:46 +05:30
Vishnu Mohandas 81db6e73d1 Display the full month in billing details 2020-08-29 09:34:59 +05:30
Vishnu Mohandas ddb2c7dc82 Update UI for the OTT sign in flow 2020-08-25 11:30:19 +05:30
Vishnu Mohandas 0c70cd96fd Fix crash on attempting to share multiple large files 2020-08-25 05:29:57 +05:30
Vishnu Mohandas 3d3c1496e7 Pull the key from server on sign in 2020-08-15 06:52:14 +05:30
Vishnu Mohandas 1ac16347bd Show progress dialog while downloading a video 2020-08-14 05:31:37 +05:30
Vishnu Mohandas a1ebee60b8 Add in memory cache for thumbnails to improve hero experience 2020-08-14 05:17:44 +05:30
Vishnu Mohandas 2505389d00 Use Computer to handle isolates 2020-08-14 04:34:32 +05:30
Vishnu Mohandas 7bd2ad19de Revert "Queue encryption and decryption with work-manager"
This reverts commit 5000a0b3cd.
2020-08-14 04:13:09 +05:30
Vishnu Mohandas bda0d8afd9 Minor change to the image decoding API 2020-08-14 04:01:37 +05:30
Vishnu Mohandas 5000a0b3cd Queue encryption and decryption with work-manager 2020-08-14 03:31:18 +05:30
Vishnu Mohandas 873f1b631d Use a single cache for thumbnails 2020-08-14 03:03:31 +05:30
Vishnu Mohandas 1ce1479dd9 Perform encryption and decryption on a separate isolate 2020-08-14 02:30:40 +05:30
Vishnu Mohandas 7da487cd4e Decrypt and render encrypted videos 2020-08-14 01:33:29 +05:30
Vishnu Mohandas c3265b91ab Move file decrypting logic out of ZoomableImage 2020-08-13 07:05:57 +05:30
Vishnu Mohandas 2a4404c293 Refactor file util 2020-08-13 06:54:48 +05:30
Vishnu Mohandas 600fd58a46 Augment the getBytes function to take care of encrypted files 2020-08-13 06:48:41 +05:30
Vishnu Mohandas d36b88aa23 Mark preloadFile as TODO since the logic has to be reworked 2020-08-13 06:28:25 +05:30
Vishnu Mohandas f6d3a7e6bd Decrypt, save and display encrypted thumbnails 2020-08-13 04:47:15 +05:30
Vishnu Mohandas 746fb18cf7 Download and save encrypted files 2020-08-12 04:34:16 +05:30
Vishnu Mohandas 2e39f2e90a Upload thumbnail along with the file 2020-08-11 05:38:48 +05:30
Vishnu Mohandas 4b63196e34 Encrypt and upload files 2020-08-11 05:17:22 +05:30
Vishnu Mohandas 797c6ae856 Reuse existing library for generating secure random string 2020-08-10 05:49:44 +05:30
Vishnu Mohandas c7b40265c3 Fix issue with loading remote images 2020-08-10 04:04:59 +05:30
Vishnu Mohandas f80e06762f Add crypto util 2020-08-10 02:09:11 +05:30
Vishnu Mohandas 786dba4514 Set the background color for progress dialog 2020-08-09 20:00:46 +05:30
Vishnu Mohandas 805f41f811 Set the background color for toasts 2020-08-09 20:00:42 +05:30
Vishnu Mohandas 8f2dce89c7 Update the base plugin for memories 2020-07-30 00:47:13 +05:30
Vishnu Mohandas 590c72f2e5 Preload the next memory 2020-07-29 21:18:13 +05:30
Vishnu Mohandas 1c8b29d60f Rename method to delete files 2020-07-29 13:25:29 +05:30
Vishnu Mohandas ce9cf2c026 Extract function to delete a file from the DB 2020-07-29 13:23:13 +05:30
Vishnu Mohandas 5911a718cb Add file sync util for the day Flutter makes using isolate less painful 2020-07-28 02:02:07 +05:30
Vishnu Mohandas 755664a8de Display memories from previous years 2020-07-21 15:55:19 +05:30
Vishnu Mohandas e917e4e568 Increase connection timeout to 250ms 2020-07-16 05:57:55 +05:30
Vishnu Mohandas 5c53661dd8 Display a progress dialog while deleting a photo 2020-07-16 00:44:37 +05:30
Vishnu Mohandas 8f1e4297aa Add progress dialog while fetching data to share files 2020-07-08 03:34:08 +05:30
Vishnu Mohandas f4fe539df4 Accept toast-length as a parameter 2020-07-08 03:23:09 +05:30
Vishnu Mohandas 8f0b606713 Add a util for displaying toasts 2020-07-08 03:16:14 +05:30
Vishnu Mohandas 8b6685c3e2 Update video controls 2020-06-21 05:21:10 +05:30
Vishnu Mohandas a5aaf91460 Extend support for videos 2020-06-20 04:33:26 +05:30
Vishnu Mohandas a99bfde90d Fix the title matching logic for remote HEIC files that was triggering duplicate entries 2020-06-18 01:46:46 +05:30
Vishnu Mohandas d178b0838d Improve log statement readability 2020-06-18 01:17:49 +05:30
Vishnu Mohandas e4017d91df Add an info button to photos 2020-06-14 00:17:48 +05:30
Vishnu Mohandas f6c3881673 Fix issue in sharing HEIC files 2020-05-31 02:56:26 +05:30
Vishnu Mohandas b37682d863 Enable sharing of remote photos 2020-05-25 20:37:22 +05:30
Vishnu Mohandas 51b97dd698 Make endpoint search cancellable 2020-05-17 23:18:49 +05:30
Vishnu Mohandas 275c36755c Move the responsibility of filtering to an album 2020-05-06 22:46:30 +05:30
Vishnu Mohandas 98f413fbb3 Uncomment necessary code 2020-05-04 18:35:53 +05:30
Vishnu Mohandas 657b3a539b Revert "Add new lines between log statements"
This reverts commit 7c0fdb0b60.
2020-05-04 01:57:06 +05:30
Vishnu Mohandas 7c0fdb0b60 Add new lines between log statements 2020-05-04 01:53:48 +05:30
Vishnu Mohandas 455ac899e2 Catch Android runtime errors with Sentry 2020-05-03 23:41:54 +05:30
Vishnu Mohandas 80bbcd8816 Fix issues related to emailing logs 2020-05-02 22:51:50 +05:30
Vishnu Mohandas 3489172067 Add ability to send logs via email 2020-05-02 22:42:03 +05:30
Vishnu Mohandas 7b3a3eb184 Add logging to file 2020-05-02 21:58:54 +05:30
Vishnu Mohandas ee1c234cec Remove debug code 2020-05-02 00:05:52 +05:30
Vishnu Mohandas d4b698e6ab Rename package name 2020-05-01 23:50:12 +05:30
Vishnu Mohandas d228f7278f Add endpoint discovery mechanism 2020-04-30 20:39:41 +05:30
Vishnu Mohandas 4a892e2ce3 Fix issues on iOS 2020-04-24 18:10:24 +05:30
Vishnu Mohandas 293e2cae95 Fix issues on Samsung phones 2020-04-21 17:18:56 +05:30
Vishnu Mohandas d53c34659a Refactor gallery 2020-04-17 15:24:42 +05:30
Vishnu Mohandas f1a696f8ee Refactor code 2020-04-14 21:06:18 +05:30
Vishnu Mohandas 6e7b03a048 Give up on the idea of providing smooth-scrolling because Flutter sucks. 2020-04-13 23:23:03 +05:30