Commit graph

339 commits

Author SHA1 Message Date
Vishnu Mohandas 6fdbba8d73 Update subscription model 2021-02-01 16:08:07 +05:30
Vishnu Mohandas c2dbdaaf7b Rename function 2021-02-01 02:24:22 +05:30
Vishnu Mohandas f962230060 Move code to fetch usage to BillingService 2021-02-01 02:24:00 +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 007389a9d3 Clear transaction only for iOS 2021-01-31 16:45:40 +05:30
Vishnu Mohandas f320d00ef8 Migrate to third party library for IAP 2021-01-30 13:27:18 +05:30
Vishnu Mohandas 2223c4103e Check for updates to subscription if it is locally expired 2021-01-29 17:12:15 +05:30
Vishnu Mohandas 65a4c838dc Make subscription verification async 2021-01-27 16:28:23 +05:30
Vishnu Mohandas 7e444642db Report updated purchases from BillingService 2021-01-27 14:25:58 +05:30
Vishnu Mohandas 70f5fbacd7 Blue blue blue 2021-01-26 16:56:35 +05:30
Vishnu Mohandas 013c1576be Merge branch 'encrypt-collection-name' into ui_refresh 2021-01-25 15:20:53 +05:30
Abhinav-grd a395e27f80 refactored keyDecryption logic into seperate function 2021-01-25 10:55:26 +05:30
Abhinav-grd 75e27aa51f collectionService changes 2021-01-25 00:29:39 +05:30
Abhinav-grd 73fa2aad9e added null check to encryptedName 2021-01-24 21:37:37 +05:30
Abhinav-grd c4e19c56cf cached collection before calling getCollectionKey 2021-01-24 21:17:51 +05:30
Abhinav-grd b5f05b0afd set default version as 0 and corrected version check 2021-01-24 21:17:42 +05:30
Abhinav-grd 41bc291715 moved name decryption logic to _cacheCollectionAttributes 2021-01-24 16:46:00 +05:30
Abhinav-grd cc5dc4aa43 set version default value to zero 2021-01-24 11:52:01 +05:30
Abhinav-grd d96f4d968c cached Collection to use getCollection in decryptName funnction 2021-01-23 18:15:11 +05:30
Vishnu Mohandas f4a8867bcc Fix validity condition for subscriptions 2021-01-23 11:54:22 +05:30
Abhinav-grd 9881c8782d added getcollectionWithDecryptedName function 2021-01-22 14:48:56 +05:30
Abhinav-grd bc0718d806 add version check in decryptCollectionPath to get correct decryptionKey 2021-01-22 14:04:49 +05:30
Abhinav-grd fd322dac33 changed path encryption key and added versioning 2021-01-22 14:00:51 +05:30
Abhinav-grd 0d4b87da55 upated collection creating function send encrypted name 2021-01-22 13:49:27 +05:30
Vishnu Mohandas a944367766 Don't check for validity of subscription to trigger syncs 2021-01-18 22:41:40 +05:30
Vishnu Mohandas 55af1f0cfb Update billing service 2021-01-18 22:33:16 +05:30
Vishnu Mohandas 7728fb8028 Remove verbose log line 2021-01-18 22:32:51 +05:30
Vishnu Mohandas 6a71c6ecb5 Update API to verify subscription 2021-01-18 21:50:53 +05:30
Vishnu Mohandas 9a49d5eb8b Trigger sync on connectivity changes only if the user can upload photos 2021-01-14 01:11:32 +05:30
Vishnu Mohandas 4f18ef6140 Prompt for permissions only when sync is triggered in the foreground 2021-01-13 23:09:33 +05:30
Vishnu Mohandas 94ca34de4d Fix sync stop functionality 2021-01-13 14:20:14 +05:30
Vishnu Mohandas 2e8b3b25fe Load subscription from server using the verification data fetched from IAP 2021-01-11 03:01:13 +05:30
Vishnu Mohandas dda304fca8 Remove unused imports 2021-01-11 03:00:26 +05:30
Vishnu Mohandas 15cbdc2dde Move more content to lowercase 2021-01-08 22:41:32 +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 8d09418427 Add a subcription chooser page 2021-01-06 21:39:42 +05:30
Vishnu Mohandas 23feafcca9 Add todo 2021-01-06 17:27:35 +05:30
Vishnu Mohandas 540cea31df Persist subscription plan returned by the server 2021-01-06 17:26:03 +05:30
Vishnu Mohandas d3d9e2bbf7 Rename passphrase to password 2021-01-05 19:57:02 +05:30
Vishnu Mohandas 669eed55e4 Add BillingService 2021-01-05 15:11:32 +05:30
Vishnu Mohandas b699a94b58 Prevent duplicate uploads during reinstallations 2021-01-02 14:34:36 +05:30
Vishnu Mohandas c4cc453541 Better logs 2021-01-02 13:32:29 +05:30
Vishnu Mohandas 96456bf01f Handle lack of permissions gracefully 2020-12-08 04:33:25 +05:30
Vishnu Mohandas 6a26d7482f Trigger a silent sync once a collection's share status is changed 2020-12-04 04:03:24 +05:30
Vishnu Mohandas 7b721e596b Add and remove from favorites silently 2020-12-04 04:00:10 +05:30
Vishnu Mohandas ae924a52ee Sync collections after uploads 2020-12-04 03:49:25 +05:30
Vishnu Mohandas 3b138aa6f4 Show the sync indicator only when there's a diff to be applied or uploaded 2020-12-04 03:17:06 +05:30
Vishnu Mohandas 515342e003 Fetch diff from only those collections that have changed 2020-12-04 02:31:24 +05:30
Vishnu Mohandas 2e0a4cff32 Clear cache once an existing collection item has been updated 2020-12-01 14:37:48 +05:30
Vishnu Mohandas d5c1a5670e Remove code meant for debugging 2020-12-01 14:26:37 +05:30
Vishnu Mohandas 350b6423cf Update files that haven't been uploaded too 2020-12-01 13:39:02 +05:30
Vishnu Mohandas d318a57d23 Implement ability to update files on remote 2020-12-01 00:12:11 +05:30
Vishnu Mohandas c3bd8c7f2b Clear cache on iOS to reduce disk storage consumption 2020-11-30 15:50:08 +05:30
Vishnu Mohandas 792069fef1 Add log statement 2020-11-22 14:27:43 +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 6f8a1a5427 Show error dialog on registration blocked error 2020-11-17 11:48:46 +05:30
Vishnu Mohandas 1947970b0a Sync only when WiFi is available 2020-11-16 22:05:16 +05:30
Vishnu Mohandas d1834985d5 Refresh sync indicator on user login 2020-11-15 12:49:51 +05:30
Vishnu Mohandas 8334ec809e Make sure that the right files are updated while applying a diff 2020-11-14 16:17:28 +05:30
Vishnu Mohandas ee8d1e653c Replace when conflicts are encountered while applying remote diff 2020-11-14 15:41:12 +05:30
Vishnu Mohandas c6678cd735 Show a sync status indicator on top 2020-11-12 22:02:10 +05:30
Vishnu Mohandas 6891beeb48 Make sure that upload resumes when possible 2020-11-09 23:36:27 +05:30
Vishnu Mohandas 433e11882a Fix race conditions in the upload flow 2020-11-09 21:40:43 +05:30
Vishnu Mohandas dc9092bcfe Trigger UI refresh when a collection is updated 2020-11-09 18:26:50 +05:30
Vishnu Mohandas 889cb027ca Remove redundant check 2020-11-09 18:21:24 +05:30
Vishnu Mohandas e825798433 Enable parallel uploads 2020-11-09 17:58:43 +05:30
Vishnu Mohandas 241cfe5478 Minor refactor 2020-11-07 15:46:30 +05:30
Vishnu Mohandas 58610b7cdd Ensure that the parsed favorites collection is owned by the user 2020-11-05 12:02:56 +05:30
Vishnu Mohandas 96dba3f905 Update shared collections interface 2020-11-02 20:08:59 +05:30
Vishnu Mohandas a8d3038600 Upload only images on debug build 2020-11-02 16:27:55 +05:30
Vishnu Mohandas 3602f8d08c Buffer first load from disk to improve performance 2020-11-01 16:30:50 +05:30
Vishnu Mohandas d6b4f16b5c Remove blocking condition for video 2020-11-01 13:07:58 +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 deeffa6d56 Add extra log lines 2020-11-01 11:00:36 +05:30
Vishnu Mohandas 01d30dbd69 Minor update to UI 2020-11-01 10:35:04 +05:30
Vishnu Mohandas 926d71fd0d Send additional data while triggering an event 2020-10-31 23:29:28 +05:30
Vishnu Mohandas 5170877e36 Ensure that the collections gallery reloads when a collection is updated 2020-10-31 23:29:00 +05:30
Vishnu Mohandas 46e5993de4 Update collection owner structure 2020-10-31 21:41:43 +05:30
Vishnu Mohandas e92e1f51de Set username on signup 2020-10-31 21:03:32 +05:30
Vishnu Mohandas 4117ae0a3d Add ability to unshare a collection 2020-10-31 18:47:17 +05:30
Vishnu Mohandas 7d52d3c411 Delete collections deleted on remote 2020-10-31 18:18:41 +05:30
Vishnu Mohandas 4dd4eed10c Update delete API 2020-10-31 04:55:28 +05:30
Vishnu Mohandas ce1d492262 Prevent unnecessary reloads 2020-10-31 02:37:20 +05:30
Vishnu Mohandas 03e7b385e2 Fix collection updates on the UI 2020-10-31 02:07:21 +05:30
Vishnu Mohandas 2bbb27a55c Simplify favorites 2020-10-31 01:47:06 +05:30
Vishnu Mohandas c880ead160 Add option to remove files from a collection 2020-10-31 01:27:14 +05:30
Vishnu Mohandas 0f88454ce5 Use the upgraded time condition 2020-10-30 23:40:45 +05:30
Vishnu Mohandas 405578b086 Show an indicator of the collection owner's email on the shared collection icon 2020-10-30 21:33:13 +05:30
Vishnu Mohandas 25a78ee52b Backup shared folder if not being backed up already 2020-10-29 18:36:57 +05:30
Vishnu Mohandas 0afbd87898 Update logic to deduplicate existing database entries 2020-10-29 05:44:48 +05:30
Vishnu Mohandas 7e5426088f Remove face search widgets 2020-10-29 05:11:43 +05:30
Vishnu Mohandas 28098cae79 Update diff fetching API 2020-10-28 21:15:05 +05:30
Vishnu Mohandas 3630a25fb5 Remove SharedCollection 2020-10-28 20:55:32 +05:30
Vishnu Mohandas 673e5e9442 Add create album flow 2020-10-28 17:33:28 +05:30
Vishnu Mohandas 0c48d83384 Ensure that favorites are parsed from fetched collections 2020-10-26 15:28:08 +05:30
Vishnu Mohandas 95ccf02b2e Ensure that local collections are loaded into memory on app init 2020-10-26 15:27:31 +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 3d56f71be3 Segregate collections and device folders 2020-10-25 04:40:37 +05:30
Vishnu Mohandas 00527d3490 Remove fixed TODO 2020-10-25 01:42:14 +05:30
Vishnu Mohandas 805e5a8550 Prevent duplicate uploads across collections 2020-10-25 01:35:50 +05:30
Vishnu Mohandas be2522d85f Update like-unlike interactions 2020-10-24 15:55:02 +05:30
Vishnu Mohandas 28061ed69a Add or remove from remote favorites 2020-10-23 21:48:38 +05:30
Vishnu Mohandas 31fef9cd3a Add API to remove files from a collection 2020-10-23 21:41:27 +05:30
Vishnu Mohandas e47c7841a3 Remove redundant API call to add uploaded file to it's existing collection 2020-10-22 04:06:55 +05:30
Vishnu Mohandas 26f3e62c0e Fix API to add a file to favorites 2020-10-22 03:52:09 +05:30
Vishnu Mohandas 9f88eb413d Persist the generated keys only after successful authentication 2020-10-22 02:59:16 +05:30
Vishnu Mohandas 65a431f366 Expose API to add a photo to the favorites-collection 2020-10-21 23:44:34 +05:30
Vishnu Mohandas f6e6e8bf49 Update contract of the FileUploader 2020-10-21 21:50:41 +05:30
Vishnu Mohandas 948814ea9c Use a model to encapsulate public keys 2020-10-19 03:09:55 +05:30
Vishnu Mohandas 0b407ef98d Persist user keys after fetch 2020-10-17 23:46:30 +05:30
Vishnu Mohandas 3f5ef06a09 Remove unnecessary param for fetching public key 2020-10-17 23:34:41 +05:30
Vishnu Mohandas 92d154b96e Create a collection and back up the folder if a user attempts to share a folder that is not backed up 2020-10-17 22:51:32 +05:30
Vishnu Mohandas 6a73308bd1 Fix remaining issues with displaying shared collection items 2020-10-14 03:10:22 +05:30
Vishnu Mohandas 54558c4d92 Remove folder service 2020-10-14 03:10:09 +05:30
Vishnu Mohandas 0af41fd97b Fetch and store shared collections 2020-10-14 01:42:37 +05:30
Vishnu Mohandas 3cd6a0fd6e Remove unused variable 2020-10-13 11:54:48 +05:30
Vishnu Mohandas 0849ef21c1 Update share folder UI 2020-10-13 11:53:45 +05:30
Vishnu Mohandas d30851c257 Remove TODO 2020-10-13 10:52:25 +05:30
Vishnu Mohandas 40ebae5fa3 Add API to fetch sharees 2020-10-13 10:51:44 +05:30
Vishnu Mohandas 181d7af1a8 Fetch owned collections 2020-10-13 02:06:02 +05:30
Vishnu Mohandas aae4813959 Fetch owned collections first 2020-10-13 02:05:39 +05:30
Vishnu Mohandas 13715c924c Remove redundant code to sync diff 2020-10-12 23:55:33 +05:30
Vishnu Mohandas fa8a284af3 Encrypt file key with the collection key 2020-10-11 05:56:52 +05:30
Vishnu Mohandas 6f2f95b038 Remove unnecessary call to fetch a collection when it's known that there is none 2020-10-11 05:53:28 +05:30
Vishnu Mohandas 8f8594f07f Decrypt keys of files within collections using the collectionKey 2020-10-11 05:47:31 +05:30
Vishnu Mohandas b12f746567 Add API to create a collection 2020-10-11 05:17:51 +05:30
Vishnu Mohandas bd879263f0 Add functionality to extract a decrypted collection key 2020-10-11 04:08:33 +05:30
Vishnu Mohandas 7e4519f9ef Update user service to accept both email and user IDs as input 2020-10-11 03:50:08 +05:30
Vishnu Mohandas c252e03185 Fetch and persist collections on startup 2020-10-11 03:33:38 +05:30
Vishnu Mohandas eb12d617de Trigger CollectionService sync from sync-service 2020-10-11 02:50:20 +05:30
Vishnu Mohandas ef65350826 Remove redundant todo 2020-10-11 02:38:35 +05:30
Vishnu Mohandas c9342e9cc8 Define a collection service 2020-10-10 05:21:12 +05:30
Vishnu Mohandas 00d9a8d201 Integrate API to fetch public key of a user 2020-10-10 03:15:19 +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 7f16f88a8f Move services to a separate package 2020-10-03 23:26:18 +05:30