Commit graph

632 commits

Author SHA1 Message Date
vishnukvmd bf796b6530 Minor copy changes 2021-10-26 19:02:33 +05:30
vishnukvmd dcd61846a7 Parse updated files correctly 2021-10-26 18:01:36 +05:30
Neeraj Gupta c18e944459
Merge branch 'master' into edit-time 2021-10-26 17:28:45 +05:30
Neeraj Gupta aa145e0217
Support for editing date of memory 2021-10-26 16:07:14 +05:30
Neeraj Gupta eff885f696
Handle pubMetadata in trash & diff fetchers 2021-10-26 11:15:26 +05:30
Neeraj Gupta 138501388d
Support for empty trash 2021-10-25 20:27:41 +05:30
Neeraj Gupta 294b0219f1
TrashSync: handle API contract changes 2021-10-24 08:19:34 +05:30
Vishnu Mohandas dd8fe294d4
Merge pull request #104 from ente-io/delete_from_ente
Delete from ente only
2021-10-22 17:58:42 +05:30
Neeraj Gupta 33a64f71da
update toast text 2021-10-22 17:05:05 +05:30
Neeraj Gupta 047b154156
trash_db: store file original metadata as json 2021-10-22 15:00:06 +05:30
Neeraj Gupta 6d3327113a
Fixes based on review comments 2021-10-21 17:38:12 +05:30
Neeraj Gupta 9cf348bd3b
trigger complete sync on deleting files from just ente 2021-10-20 20:20:51 +05:30
Neeraj Gupta 6f48caf21d
deleteFromEnte: fireEvent to reload main gallery 2021-10-20 19:32:10 +05:30
Neeraj Gupta b586dc4411
Merge branch 'trash_api' into delete_from_ente 2021-10-20 19:19:55 +05:30
Neeraj Gupta 39b0f50277
Merge remote-tracking branch 'origin/master' into trash_api 2021-10-20 17:33:35 +05:30
vishnukvmd 615bee6e7a Add log statement to indicate that the file was updated 2021-10-18 18:06:10 +05:30
vishnukvmd 5eab93ee23 Ignore upload if file was already uploaded 2021-10-18 18:00:26 +05:30
Neeraj Gupta 4d92f0fcf5
use trash api while deleting files from remote 2021-10-18 10:13:25 +05:30
Neeraj Gupta 0b8d9c1e13
TrashGallery: actions for restoring/deleting selected files 2021-10-17 22:20:25 +05:30
Neeraj Gupta 45c7da0123
trash: show days left for auto-deletion on thumbnail 2021-10-17 18:07:30 +05:30
Neeraj Gupta dff56f7f72
go to previous screen when file is deleted from trash 2021-10-13 14:55:04 +05:30
Neeraj Gupta 517a7b2a20
Use dummy generatedID for trashed files 2021-10-13 14:47:58 +05:30
Neeraj Gupta 49df079bcc
Add support for deleting files from trash 2021-10-13 04:21:19 +05:30
Neeraj Gupta ceaed8def3
TrashFile: extend File 2021-10-13 02:59:05 +05:30
Neeraj Gupta 79c2aeb5d0
trash files on deletion 2021-10-13 01:55:23 +05:30
Neeraj Gupta 84b0283933
Sync trashed items in local db 2021-10-13 00:57:11 +05:30
Neeraj Gupta a5265b09af
Add diff fetcher for trashed files 2021-10-12 20:18:35 +05:30
Neeraj Gupta 7bd9cbee92
Merge branch 'livePhotoBug' of github.com:ente-io/frame into livePhotoBug 2021-10-06 13:33:59 +05:30
Neeraj Gupta 56a4262a9e
Fix download toast & auto-play liveVideo post download 2021-10-06 13:32:37 +05:30
vishnukvmd d28f8f9b33 Merge branch 'master' into livePhotoBug 2021-10-05 16:00:01 +05:30
Neeraj Gupta da1693e856
minor rename 2021-10-05 10:27:46 +05:30
vishnukvmd 40e5818c63 Replace deprecated share lib 2021-10-05 10:26:48 +05:30
vishnukvmd 56183c72d3 Request originFile while sharing 2021-10-05 10:21:54 +05:30
Neeraj Gupta ebd3db77ae
minor refactor 2021-10-04 14:57:58 +05:30
Neeraj Gupta 2a2d1d568c
bubble up exception during convert/caching phase 2021-10-04 14:15:19 +05:30
Neeraj Gupta 701efe3e21
Fix bug during first load of remote livePhoto 2021-10-04 11:59:22 +05:30
vishnukvmd 71adfcfc54 Extract code to archive a file to a utility function 2021-10-04 03:26:09 +05:30
vishnukvmd ff3a178dbb Fix endpoint 2021-10-01 18:58:59 +05:30
vishnukvmd 771f8f6190 Surface errors from the diff fetcher 2021-10-01 18:58:18 +05:30
vishnukvmd ff3e88a2f1 Publish a single event for file deletions within a collection 2021-09-30 14:58:46 +05:30
vishnukvmd e9b1b8c713 Truncate log statement 2021-09-30 13:46:54 +05:30
Neeraj Gupta bc6fac532a Fix gallery import by removing filter on creationTime 2021-09-29 19:27:20 +05:30
Neeraj Gupta 25d6291877
Fix exif lookup on iOS 2021-09-28 14:54:41 +05:30
vishnukvmd f5643b2f1c Dedupe existing files fetched from remote 2021-09-23 20:25:08 +05:30
vishnukvmd 6d5c80fef6 Remove unnecessary optimization 2021-09-23 18:42:50 +05:30
vishnukvmd 2ee21cd928 Merge branch 'master' into deduplicate 2021-09-23 12:46:08 +05:30
vishnukvmd c0f4fcf857 Improve log statement 2021-09-23 12:40:09 +05:30
Neeraj Gupta fa4480eb44
Improve filename to datetime parsing for video files 2021-09-22 11:48:48 +05:30
Neeraj Gupta 82a9e88cd7
Merge pull request #46 from ente-io/archive_unarchive
Add support for archiving memories
2021-09-22 08:10:10 +05:30
Neeraj Gupta 8f2d5bbd05
reduce initial thumbnail quality to 80 2021-09-20 20:48:20 +05:30
Neeraj Gupta 2474130147
fix logging 2021-09-20 17:57:12 +05:30
Neeraj Gupta be8019f338
SharedMedia: Fix handling of video media type 2021-09-20 17:33:34 +05:30
Neeraj Gupta ccbcef0b6d
Support for generating thumbnail for shared video file 2021-09-20 17:22:08 +05:30
Neeraj Gupta 81eeeb7aeb
magic-metadata: rename 2021-09-20 12:11:38 +05:30
Neeraj Gupta fd95bcdfe8
[shared-media] ignore unsupported file types 2021-09-20 11:48:09 +05:30
Neeraj Gupta af8e1a0ff5
trigger remote sync when files magic metadata is out of sync 2021-09-18 10:23:27 +05:30
Neeraj Gupta e9de949468
[archive] more refactoring 2021-09-18 09:24:32 +05:30
Neeraj Gupta e3c0888083
archive: minor refactor 2021-09-18 09:13:13 +05:30
Neeraj Gupta 8d66af68ac
Support archiving memories & hide them from home page 2021-09-16 23:03:16 +05:30
Neeraj Gupta df4d6b43d4
Parse magic metadata on diff fetch 2021-09-16 22:52:19 +05:30
Neeraj Gupta f3e131e160
Sync service to update magic metadata on remote 2021-09-16 22:51:27 +05:30
vishnukvmd 82aeff80cc Execute deletion on remote 2021-09-16 02:20:13 +05:30
vishnukvmd fbf337c93c Fix lint warnings 2021-09-16 02:14:52 +05:30
Neeraj Gupta c416ca1e94
Merge pull request #41 from ente-io/move_files
Support for moving files between albums
2021-09-13 18:16:49 +05:30
vishnukvmd f2dacffc56 Set color of the dialog button text 2021-09-13 14:17:39 +05:30
Neeraj Gupta 5fa838338c fileTooLargeErr: fix status code mapping 2021-09-12 06:33:54 +05:30
Neeraj Gupta 9507222d9e upload: stop logging fileTooLargeErr as error 2021-09-12 06:26:56 +05:30
vishnukvmd 1578bf2529 Persist updated sort key to disk 2021-09-11 12:31:47 +05:30
Neeraj Gupta 73911b0631 await on localSettings init 2021-09-09 11:23:51 +05:30
Neeraj Gupta 6e1f5558af Gracefully handle deletion of files in app cache 2021-09-09 11:20:55 +05:30
Neeraj Gupta 512b724f8e Fix sort option names 2021-09-09 01:49:25 +05:30
Neeraj Gupta 8404c87791 Support sorting on ente albums by name, recent photo & last modified 2021-09-09 01:36:37 +05:30
Neeraj Gupta 77721ca3b3 Support for persisting sort settings on device 2021-09-09 00:04:20 +05:30
Neeraj Gupta 1e81500edf Linter: fix list warning 2021-09-05 14:57:07 +05:30
Neeraj Gupta 586bb42458 Linter: Fixed unused imports 2021-09-05 11:52:12 +05:30
Neeraj Gupta 3c8b06ad6a Linter: replace FlatButton with TextButton 2021-09-04 15:51:54 +05:30
Neeraj Gupta 3f27c83abd Show correct err when verification code has expired 2021-09-04 15:51:07 +05:30
Neeraj Gupta d47517c639 Log additional details for invalidFile errors 2021-09-01 16:08:00 +05:30
vishnukvmd b97fb12b05 Clear origin files that are cached 2021-08-24 12:44:51 +05:30
vishnukvmd 66e2b5ca7a Add an option to fetch origin file from disk 2021-08-24 01:59:37 +05:30
Vishnu Mohandas bc768cf7fd
Merge pull request #25 from ente-io/bug_fix_sourcePathOnNull 2021-08-22 10:59:22 +05:30
Neeraj Gupta 402cd380d5 Log invalid file extension 2021-08-22 10:52:30 +05:30
Neeraj Gupta 55890f5396 Fix handling of invalid files
When we don't await on _onInvalidFileError, then it result i the following  NPE  error:

> NoSuchMethodError: The getter 'sourceFile' was called on null.
2021-08-22 10:21:25 +05:30
vishnukvmd f8f589f975 Fix exif local storage 2021-08-18 19:32:37 +05:30
vishnukvmd 97ea3b2777 Add file subtype and video duration to metadata 2021-08-18 17:43:20 +05:30
vishnukvmd dd941e6e31 Add file hash to metadata 2021-08-18 17:37:50 +05:30
vishnukvmd 1fe20b579d Encrypt fileEncryptionKey outside the upload function 2021-08-16 17:01:59 +05:30
vishnukvmd 474c9cc41d Add an option to view logs 2021-08-09 20:05:17 +05:30
vishnukvmd f6322a9b28 Show warning before sending logs 2021-08-09 19:42:42 +05:30
vishnukvmd 528b7da54e Remove all lengthSync ops 2021-08-09 12:04:42 +05:30
vishnukvmd 7792c3d6d0 Remove readAsBytesSync 2021-08-09 12:04:42 +05:30
vishnukvmd 1d6fc95593 Remove all writeAsBytesSync ops 2021-08-09 12:04:42 +05:30
vishnukvmd b11ee940f3 Move delete to async ops 2021-08-09 12:04:42 +05:30
vishnukvmd 5809b9b18d Handle cases where the originFile is null 2021-08-06 14:25:07 +05:30
vishnukvmd 7e2ead40f8 Change live photo name 2021-08-06 14:22:07 +05:30
vishnukvmd 18b6372835 Use await instead of chaining call backs 2021-08-06 14:14:32 +05:30
Neeraj Gupta 8c39bd5b92 Enable live photo in debug mode only 2021-08-05 22:57:00 +05:30
Neeraj Gupta 0ef4e5ad78 Fail livephoto upload if videoUrl is missing 2021-08-05 20:23:54 +05:30
Neeraj Gupta 512247a515 Merge remote-tracking branch 'origin/master' into live_photos 2021-08-05 15:09:52 +05:30
Neeraj Gupta 8a88bbfb2e Check if local file exists before deleting in db 2021-08-05 04:58:26 +05:30
Neeraj Gupta abe969cec0 minor fix to avoid edge-cases 2021-08-05 04:41:58 +05:30
Neeraj Gupta 46d3b34574 Fix bug in thumbnail lookup 2021-08-05 04:27:59 +05:30
vishnukvmd 30daf73bf1 Ignore invalid files whose thumbnails cannot be fetched 2021-08-05 02:43:30 +05:30
vishnukvmd ba61af7fa2 Increase size of thumbnails 2021-08-05 02:42:13 +05:30
vishnukvmd 8ac22e8d08 Prevent double-lockscreens while accessing sensitive information 2021-08-04 23:03:59 +05:30
vishnukvmd 7bb6f1840e Stop existing authentication attempts if any before issuing a new one 2021-08-04 21:40:34 +05:30
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