Commit graph

626 commits

Author SHA1 Message Date
Neeraj Gupta 41f404c487 Share both img and video for live photo 2021-08-04 19:18:50 +05:30
Neeraj Gupta 82fa67ef9e Minor refactoring 2021-08-04 15:54:53 +05:30
Neeraj Gupta 771ceda332 LivePhoto: download and unzip livePhoto content 2021-08-03 20:11:40 +05:30
Neeraj Gupta 854a021cc8 Bug fix in livephoto upload flow 2021-08-03 20:11:40 +05:30
Neeraj Gupta 85f3eb2bff Refactor download & decrypt logic in separate util 2021-08-03 20:11:40 +05:30
Neeraj Gupta 5e38786fe1 LivePhoto: Support for uploading image & video in zipped format 2021-08-03 20:11:40 +05:30
vishnukvmd cf699872ce Increment the number of retry attempts correctly 2021-07-31 11:38:50 +05:30
vishnukvmd 47c8beb374 Send file and thumbnail sizes to the server for verification 2021-07-29 21:46:44 +05:30
vishnukvmd dfdf054e5c Retry failed upload API calls 2021-07-27 22:34:32 +05:30
vishnukvmd 73dfaa8a8e Fix lint warnings 2021-07-27 22:15:16 +05:30
vishnukvmd c8660b6420 Render data in GBs 2021-07-27 19:49:58 +05:30
Neeraj Gupta 1d8721803b Rename 2021-07-24 23:03:59 +05:30
Neeraj Gupta 830e83e3bb Gracefully handle deletion of unsynced files 2021-07-24 22:52:46 +05:30
Neeraj Gupta bb95979bb6 Support deleting shared media files from localStorage 2021-07-24 20:50:46 +05:30
Neeraj Gupta 48a2a55643 Handle missing shared media file 2021-07-24 19:08:47 +05:30
Neeraj Gupta 4bab7ca586 Store manual backup media in a separate directory 2021-07-24 19:00:33 +05:30
Neeraj Gupta 2559e90352 Formatting changes 2021-07-24 18:03:03 +05:30
Neeraj Gupta 6e1ea2ae6d Move app cache files identifier in constant 2021-07-23 18:23:39 +05:30
Neeraj Gupta 0b32796633 improve time parse logic from name for shared files 2021-07-23 18:15:11 +05:30
Neeraj Gupta 64f44ff50c Shared files: parse time from exif data 2021-07-23 13:58:11 +05:30
Neeraj Gupta f29abe8e72 Merge remote-tracking branch 'origin/master' into share_to_ente_android 2021-07-23 09:58:30 +05:30
vishnukvmd dbfcbdec64 Fix linter warnings 2021-07-23 00:03:35 +05:30
Neeraj Gupta 4cfe31406b ZoomableImg: Use helper method to get thumbnail and file 2021-07-22 19:51:24 +05:30
Neeraj Gupta b123ee0500 getThumbnailFromLocal: add size and quality as optional param 2021-07-22 16:32:45 +05:30
Neeraj Gupta 781a2f03f1 Listen to incoming media & prompt to all files in collection 2021-07-22 15:58:07 +05:30
Neeraj Gupta 77c2489714 Merge remote-tracking branch 'origin/master' into share_to_ente 2021-07-22 13:16:22 +05:30
vishnukvmd e7dd26c69e Fix lint warnings 2021-07-22 12:21:59 +05:30
Neeraj Gupta 9adf41fd2e Add support for uploading & reading image from app cache 2021-07-22 11:41:32 +05:30
vishnukvmd 9f8c409f3d Fix lint warnings 2021-07-22 02:17:43 +05:30
Neeraj Gupta 1c1fb43eda FileUploader: Move AssetEntity related logic in helper class 2021-07-21 16:40:21 +05:30
Neeraj Gupta 759c894a88 File: Add isRemoteFile util method 2021-07-20 12:08:38 +05:30
Neeraj Gupta 2ccdcc4a8a Track counter for fileDownload requests & cancel only when counter <= zero 2021-07-19 20:47:01 +05:30
Neeraj Gupta f8b01859c1 Remove unused methods 2021-07-16 22:31:22 +05:30
vishnukvmd a440fca9de Update logic to render number of uploaded files 2021-07-12 17:07:02 +05:30
Vishnu Mohandas 8be410b583 Reduce toast length 2021-06-29 20:56:36 +05:30
Vishnu Mohandas 4584a3911f Fix event data 2021-06-29 11:38:52 +05:30
Vishnu Mohandas 994d64eee5 Enable user interactions during a toast 2021-06-29 11:21:28 +05:30
Vishnu Mohandas 2dff31e405 Fix background color for dialog 2021-06-29 09:56:20 +05:30
Vishnu Mohandas a97b978848 Remove unused imports 2021-06-29 09:53:30 +05:30
Vishnu Mohandas aeb8c1ec69 Safe guard against empty file titles 2021-06-29 09:53:19 +05:30
Vishnu Mohandas 1f653c0f14 Convert only unknown images 2021-06-29 09:40:24 +05:30
Vishnu Mohandas 1a07114b5e Handle unknown file extensions gracefully 2021-06-29 09:37:13 +05:30
Vishnu Mohandas bf210d18ab Enable one-shot deletes for Android 11+ 2021-06-29 00:33:53 +05:30
Vishnu Mohandas dada941088 Fix iOS toasts 2021-06-29 00:18:33 +05:30
Vishnu Mohandas 03450cf57f Rename functions 2021-06-29 00:02:09 +05:30
Vishnu Mohandas 0b71e19962 Use a different toast library on iOS 2021-06-28 23:55:35 +05:30
Vishnu Mohandas 7f0deae679 Add hints for iOS 2021-06-28 22:21:52 +05:30
Vishnu Mohandas ecec55d0be Reformat code 2021-06-28 22:04:06 +05:30
Vishnu Mohandas b9f59c6ae3 Enhance delete on iOS 2021-06-28 22:02:29 +05:30
Vishnu Mohandas 248746c45f Merge branch 'master' of github.com:ente-io/frame 2021-06-28 21:43:24 +05:30
Vishnu 424f4db999 Improve file delete progress dialog 2021-06-28 21:38:07 +05:30
Vishnu 3419e42095 Add progress dialog 2021-06-28 21:22:21 +05:30
Vishnu c9c2d2ec0e Show dialog in the backup section widget 2021-06-28 20:00:48 +05:30
Vishnu 6bd8f413c3 Delete files in batches on Android 2021-06-28 18:24:57 +05:30
Vishnu 8ba259e147 Show more accurate usage stats 2021-06-28 18:24:27 +05:30
Vishnu 41ca328009 Add API to delete local files 2021-06-28 15:42:12 +05:30
Vishnu Mohandas 41c1f39421 Ignore invalid files 2021-06-19 16:31:32 +05:30
Vishnu Mohandas 811a4cb71e Move expensive ops to a separate isolate 2021-06-19 16:31:32 +05:30
Vishnu Mohandas 7c06ea50b6 Reduce log level 2021-06-19 16:31:32 +05:30
Vishnu d3ee26db0c Process older photos 2021-06-15 17:27:33 +05:30
Vishnu f7bc1962f6 Pull out remote sync to a separate service 2021-06-14 21:54:15 +05:30
Vishnu 3bf844f834 Set type for deletedIDs 2021-06-14 02:08:26 +05:30
Vishnu 6861d0a399 Add logs for deletion 2021-06-14 01:39:06 +05:30
Vishnu 782e6c70f3 Mark files that were deleted during upload correctly 2021-06-14 01:35:42 +05:30
Vishnu 8026c12fc0 Safeguard against already deleted files 2021-06-14 01:19:25 +05:30
Vishnu d292fc8280 Add utility method to fetch all local IDs 2021-06-14 00:38:15 +05:30
Vishnu Mohandas f583d1f7b4 Add util for emailing logs 2021-06-12 16:03:24 +05:30
Vishnu cda1900d96 Remove redundant function 2021-06-11 12:49:19 +05:30
Vishnu Mohandas 5da2f35ee4 Add util to replace page 2021-06-09 19:07:20 +05:30
Vishnu Mohandas b0140f53c3 Save edited file to DB 2021-06-03 03:16:38 +05:30
Vishnu Mohandas 409543081d Add interface for image editor 2021-06-02 19:24:31 +05:30
Vishnu Mohandas 2932faac88 Offload email validation to plugin 2021-05-30 04:18:23 +05:30
Vishnu Mohandas 47997e2100 Upgrade dependencies 2021-05-30 03:28:42 +05:30
Vishnu Mohandas 0c10209624 Safe guard against invalid assets 2021-05-26 00:42:26 +05:30
Vishnu Mohandas ab2f13b8a6 Save guard against deletion errors 2021-05-25 17:56:31 +05:30
Vishnu Mohandas 2f9ccb6787 Merge branch 'master' into sign_up_flow 2021-05-14 03:12:42 +05:30
Vishnu Mohandas 2e31c98186 Reformat code 2021-05-13 21:00:34 +05:30
Vishnu Mohandas 540b64bbbc Remove verbose logs 2021-05-13 03:08:28 +05:30
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
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