Commit graph

1421 commits

Author SHA1 Message Date
Vishnu Mohandas fe2db8a622 Minor change to string 2021-03-28 18:13:35 +05:30
Vishnu Mohandas b8fbd597dd Add a lil toast 2021-03-28 17:28:35 +05:30
Vishnu Mohandas 7d0200ea2e Fix pixel overflow 2021-03-28 17:24:04 +05:30
Vishnu Mohandas e42d478aa3 Add a link to "how it works" 2021-03-28 17:09:26 +05:30
Vishnu Mohandas 0f4d082048 Convert to StatelessWidget 2021-03-28 16:48:13 +05:30
Vishnu Mohandas a42427a809 Lock the password change screen behind a lockscreen 2021-03-26 21:45:51 +05:30
Vishnu Mohandas d12ab1b4e0 Add option to change password 2021-03-26 21:43:32 +05:30
Vishnu Mohandas 100ce80650 Ensure that unique entries are created for local files 2021-03-26 11:44:18 +05:30
Vishnu Mohandas a8a09e7305 Set unique keys for thumbnails 2021-03-26 01:35:39 +05:30
Vishnu Mohandas 3666c4fc75 Set default state for the important items filter 2021-03-26 01:34:33 +05:30
Vishnu Mohandas a9e18a4be7 Update logic for rendering important items 2021-03-26 01:24:05 +05:30
Vishnu Mohandas c39085c83e Fix padding on the settings screen 2021-03-26 01:04:23 +05:30
Vishnu Mohandas 1b8de3e619 Show backup indicator over the device folder thumbnail 2021-03-26 00:56:06 +05:30
Vishnu Mohandas 99e4ce4563 Remove comments 2021-03-26 00:36:06 +05:30
Vishnu Mohandas dfeaa4408e Simplify sync events 2021-03-26 00:36:01 +05:30
Vishnu Mohandas 2337317c6d Group files to be uploaded by localID 2021-03-26 00:35:23 +05:30
Vishnu Mohandas bdd6c9c4dc Update background dialog style 2021-03-26 00:14:27 +05:30
Vishnu Mohandas 0807e248af Show folder selection dialog only after key configuration is complete 2021-03-25 22:28:47 +05:30
Vishnu Mohandas f38db04f8f Reduce scope of state refresh 2021-03-25 22:28:30 +05:30
Vishnu Mohandas d775051d35 Simplify logic to count uploads 2021-03-25 20:14:58 +05:30
Vishnu Mohandas b7f7b95236 Resort to creationTime if modificationTime is found to be null 2021-03-23 13:33:51 +05:30
Vishnu Mohandas 5b6bb926f8 Handle network errors 2021-03-22 13:04:59 +05:30
Vishnu Mohandas d1d72ed325 Display the correct queue size 2021-03-22 12:44:16 +05:30
Vishnu Mohandas da47cb7775 Show backup folder selection dialog when required 2021-03-22 12:00:06 +05:30
Vishnu Mohandas 887bcbf06a Add functionality to add and remove folders from queue 2021-03-22 11:59:53 +05:30
Vishnu Mohandas ec4852057d Handle empty list 2021-03-22 11:59:21 +05:30
Vishnu Mohandas 1b12271aa1 Add platform specific folders 2021-03-22 11:25:12 +05:30
Vishnu Mohandas 23dd03a21c Sort device gallery according to creation time 2021-03-22 10:50:07 +05:30
Vishnu Mohandas 470573cbc1 Remove debug statement 2021-03-22 01:36:31 +05:30
Vishnu Mohandas e2f8a8523e Consoldiate settings 2021-03-22 01:33:51 +05:30
Vishnu Mohandas 3a8431f354 Remove unused import 2021-03-22 01:28:25 +05:30
Vishnu Mohandas 42f188c5ef Show header only once user's have signed in 2021-03-22 01:24:55 +05:30
Vishnu Mohandas 66c98ae3af Add header to enable and disable backups from device folders 2021-03-22 01:23:02 +05:30
Vishnu Mohandas ccd160bcbc Remove unused setter 2021-03-22 01:13:26 +05:30
Vishnu Mohandas 9eb55326b3 Remove unused attributes from configuration 2021-03-22 01:10:10 +05:30
Vishnu Mohandas f83bc6b091 Add widget to show folders to be backed up 2021-03-22 01:07:13 +05:30
Vishnu Mohandas ea28fd046a Add an option to hide from recents 2021-03-21 18:04:24 +05:30
Vishnu Mohandas a0b3ff20f2 Change styling of dialog buttons 2021-03-21 17:41:09 +05:30
Vishnu Mohandas 5918d996a4 Perform credential fetch within await block 2021-03-21 17:34:57 +05:30
Vishnu Mohandas 4401bd19ed Dismiss dialog correctly 2021-03-21 17:34:41 +05:30
Vishnu Mohandas a4fd2f7cf4 Fix dialog dismissals 2021-03-21 16:51:45 +05:30
Vishnu Mohandas 4b1439eab1 Show settings screen for non-signed in users too 2021-03-21 15:28:55 +05:30
Vishnu Mohandas cabd5f5069 Remove animations from app lock 2021-03-21 15:23:21 +05:30
Vishnu Mohandas bf09a87997 Show lockscreen onStart and onResume 2021-03-21 14:02:10 +05:30
Vishnu Mohandas 80d62620a1 Fix typo 2021-03-21 12:01:01 +05:30
Vishnu Mohandas 3d7e00e61f Define a lockscreen widget 2021-03-21 11:57:42 +05:30
Vishnu Mohandas 119a1ef4c3 Remove unused variable 2021-03-21 11:57:35 +05:30
Vishnu Mohandas 93f5557c8d Remove unused sync state 2021-03-21 11:57:23 +05:30
Vishnu Mohandas 41af9c6537 Merge branch 'master' into lockscreen 2021-03-21 11:15:20 +05:30
Vishnu Mohandas 98dbe7bcfe Remove unused sync state 2021-03-20 17:02:33 +05:30
Vishnu Mohandas 1ff51570c0 Ignore local diff events 2021-03-20 16:57:39 +05:30
Vishnu Mohandas 0bb7e1c806 Ignore local diff events 2021-03-20 16:57:01 +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 e3b76edddf Update roadmap URL 2021-03-18 03:40:36 +05:30
Vishnu Mohandas 017d26acbd Logout on 401 2021-03-18 03:38:13 +05:30
Vishnu Mohandas 27d9a570df Parse default errors separately 2021-03-18 03:21:39 +05:30
Vishnu Mohandas 126121486d Clear service level cache on logout 2021-03-18 02:41:31 +05:30
Vishnu Mohandas a7b2e63b1a Add an option to logout 2021-03-18 02:37:17 +05:30
Vishnu Mohandas 9efeeff4dd Remove debug code 2021-03-18 00:54:16 +05:30
Vishnu Mohandas bfdbe1b098 Upgrade flutter 2021-03-18 00:49:11 +05:30
Vishnu Mohandas 77cd8f6b52 Add hex util 2021-03-18 00:49:07 +05:30
Vishnu Mohandas 5e927ea239 Change string 2021-03-18 00:19:45 +05:30
Vishnu Mohandas 964d499f16 Remove keys if a token does not exist 2021-03-17 01:52:06 +05:30
Vishnu Mohandas 3b8eec3252 Small case 2021-03-15 20:44:43 +05:30
Vishnu Mohandas 7886d5daa9 Remove unused import 2021-03-15 20:14:52 +05:30
Vishnu Mohandas 6ace5f1b38 Break on cancellation 2021-03-15 19:45:30 +05:30
Vishnu Mohandas 9d2df8bcf1 Small case 2021-03-15 19:45:19 +05:30
Vishnu Mohandas 72c7498da4 Update text 2021-03-12 14:18:10 +05:30
Vishnu Mohandas dc80d99df3 Fix padding 2021-03-12 14:17:57 +05:30
Vishnu Mohandas 99ede8f687 Add happy path 2021-03-12 14:10:36 +05:30
Vishnu Mohandas cc013a8f9e Convert to stateless widget 2021-03-12 13:42:17 +05:30
Vishnu Mohandas 055d26d4c8 Log error only when file upload finally fails 2021-03-10 10:41:05 +05:30
Vishnu Mohandas 1e4ed02359 Remove listener from memories widget when unmounted 2021-03-10 10:40:56 +05:30
Vishnu Mohandas 6da4743f17 Update subscription page 2021-03-10 08:59:39 +05:30
Vishnu Mohandas 2221e16dd3 Refresh UI when permission is not granted 2021-03-10 08:58:33 +05:30
Vishnu Mohandas 0e130a11cc Inform users about the free plan 2021-03-10 08:38:45 +05:30
Vishnu Mohandas ff48d2d2fc Update debug endpoint 2021-03-10 08:38:28 +05:30
Vishnu Mohandas ed2ff60cc8 Increase padding 2021-03-08 16:18:06 +05:30
Vishnu Mohandas 69657180ec Fix deletion string 2021-03-08 14:59:59 +05:30
Vishnu Mohandas 87f68e2b5a Handle deletion failures gracefully 2021-03-08 14:43:46 +05:30
Vishnu Mohandas 1c084a6034 Show option to delete a file from device only if it has a local ID 2021-03-08 13:21:46 +05:30
Vishnu Mohandas 1c01ee8a57 Point to prod 2021-03-08 13:08:59 +05:30
Vishnu Mohandas eea7143180 Hide debug label 2021-03-08 13:08:54 +05:30
Vishnu Mohandas 5a9fe801bd Reduce padding for dates 2021-03-08 13:08:45 +05:30
Vishnu Mohandas 60a9fd5b73 Deal with network errors separately 2021-03-07 10:55:07 +05:30
Vishnu Mohandas f83e52f7c7 Log size of the file whose upload failed 2021-03-07 10:54:36 +05:30
Vishnu Mohandas 98ea1b062a Revert "Change placeholder text"
This reverts commit 9f90dc561a.
2021-03-05 17:31:34 +05:30
Vishnu Mohandas 9f90dc561a Change placeholder text 2021-03-05 00:16:06 +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 fe2faba89a Handle DNS resolution errors gracefully 2021-03-03 22:29:11 +05:30
Vishnu Mohandas 2c542806da Re-enable background-fetch 2021-03-03 21:37:15 +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 bf9fcdfc0e Create an UploadLocks DB 2021-03-03 21:36:34 +05:30
Vishnu Mohandas d7b3410753 Better logging in uploader 2021-03-03 21:34:45 +05:30
Vishnu Mohandas 2d4fc30de3 Use a global state for the app being in background 2021-03-03 21:33:03 +05:30
Vishnu Mohandas b2ea5fbfa0 Expose total uploaded files in FilesDB 2021-03-03 21:31:40 +05:30
Vishnu Mohandas 33288c111f Delete temp folder remnants only once a day 2021-03-03 20:19:49 +05:30
Vishnu Mohandas cd986512b2 Fire a sync status event as soon as a subscription is picked 2021-03-03 10:29:02 +05:30
Vishnu Mohandas 3a2128618b Save guard against null responses 2021-03-03 10:28:36 +05:30
Vishnu Mohandas a1488b0b68 Log updates to sync status 2021-03-03 09:58:49 +05:30
Vishnu Mohandas 6086af784c Fix toast during onboarding 2021-03-03 01:06:43 +05:30
Vishnu Mohandas 79a21981f5 Add empty state for non-signed in users within the collection gallery 2021-03-03 00:32:03 +05:30
Vishnu Mohandas 5672cc7eb8 Log reasons for backup failure correctly 2021-03-02 12:54:03 +05:30
Vishnu Mohandas 627fe3f508 Hide the sync indicator on the memories widget 2021-03-02 12:53:15 +05:30
Vishnu Mohandas 114511489d Add a silent exception for upload errors 2021-03-02 12:53:02 +05:30
Vishnu Mohandas f06b4f1e9f Handle network errors gracefully 2021-03-02 12:50:21 +05:30
Vishnu Mohandas 451e359491 Emit SubscriptionPurchasedEvent for free plans only during onboarding 2021-03-02 12:39:42 +05:30
Vishnu Mohandas f986c9ae29 Make free plan configurable 2021-03-02 12:05:10 +05:30
Vishnu Mohandas cecfd7fefc Remove stack traces 2021-03-02 11:38:29 +05:30
Vishnu Mohandas 99726eac4a Update remote asset URLs 2021-03-02 05:13:36 +05:30
Vishnu Mohandas 4f6386398d Change color of the thumbnail load state 2021-03-02 05:13:24 +05:30
Vishnu Mohandas 8ea3d0b708 Simplify SyncService state handling 2021-03-02 05:07:24 +05:30
Vishnu Mohandas aa52fea50a Remove headless task 2021-03-02 05:06:58 +05:30
Vishnu Mohandas 2d8041e77d Upgrade background_fetch 2021-03-02 03:39:15 +05:30
Vishnu Mohandas edec859103 Reset variable when the widget has changed 2021-03-02 03:39:03 +05:30
Vishnu Mohandas 9aed192e16 Upgrade Zone API 2021-03-02 00:56:35 +05:30
Vishnu Mohandas 8bafb4e4fb Revert "Remove stack traces"
This reverts commit 19bb5fdd26.
2021-03-02 00:54:02 +05:30
Vishnu Mohandas 910a1526e6 Don't treat transitions from free plans as a cross grade 2021-03-02 00:30:51 +05:30
Vishnu Mohandas 19bb5fdd26 Remove stack traces 2021-03-02 00:25:45 +05:30
Vishnu Mohandas b5affaa3c9 Lower log level 2021-03-02 00:25:10 +05:30
Vishnu Mohandas dcb4b4528f Log errors in the subscription flow 2021-03-02 00:12:37 +05:30
Vishnu Mohandas 9194c5d690 Reduce quality of the local thumbnail 2021-03-02 00:12:06 +05:30
Vishnu Mohandas 130d58f24b Uncomment relevant code 2021-03-01 17:43:32 +05:30
Vishnu Mohandas 0d8f10163b Display options to remove or delete files from shared collections too 2021-03-01 17:38:54 +05:30
Vishnu Mohandas c0f1e5f671 Simplify options within app bar 2021-03-01 17:36:17 +05:30
Vishnu Mohandas 7f470fe817 Extract common code to a function 2021-03-01 17:26:48 +05:30
Vishnu Mohandas 46045ea74d Display app version in the settings screen 2021-03-01 17:22:18 +05:30
Vishnu Mohandas b6c67c787a Use localID as the key for FileUploader 2021-02-26 19:42:23 +05:30
Vishnu Mohandas f8da6378f7 Safeguard against multiple syncs 2021-02-26 19:39:45 +05:30
Vishnu Mohandas b9ea4be9a7 Log once sync is completed 2021-02-26 19:39:35 +05:30
Vishnu Mohandas 191e1e7b90 Run background tasks with logs 2021-02-26 17:19:35 +05:30
Vishnu Mohandas 9e052c7609 Remove verbose logline 2021-02-26 17:13:58 +05:30
Vishnu Mohandas 71503f254f Update log statements 2021-02-26 16:35:54 +05:30
Vishnu Mohandas fef621155b Remove unnecessary log 2021-02-26 15:34:18 +05:30
Vishnu Mohandas 0d97967670 Minor refactor 2021-02-26 15:26:17 +05:30
Vishnu Mohandas 980d288d5b Clean up error handling 2021-02-26 15:25:35 +05:30
Vishnu Mohandas 93b38bbe43 Skip sync if already in progress 2021-02-26 15:20:52 +05:30
Vishnu Mohandas 813ded3360 Modify log 2021-02-26 15:20:44 +05:30
Vishnu Mohandas d466e120b4 Don't throw an error if account is not configured 2021-02-26 14:54:20 +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 64354e7714 Prevent duplicate initialization from the background task 2021-02-26 14:30:40 +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 52aa287b27 Replace files in case there are conflicts 2021-02-26 13:33:27 +05:30
Vishnu Mohandas 009d9957bf Fix the point where an error is thrown 2021-02-26 13:30:21 +05:30
Vishnu Mohandas 7a778abaea Throw unknown exceptions found during sync 2021-02-26 13:29:11 +05:30
Vishnu Mohandas ffefa99504 Retry batch insert requests 2021-02-26 13:22:21 +05:30
Vishnu Mohandas 6fb07bab27 Show appropriate error dialog for free users when sharing is disabled 2021-02-25 23:08:31 +05:30
Vishnu Mohandas 18d293e5b6 Update string 2021-02-25 22:13:29 +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 fa2f40bc7a Add an option to skip subscription during onboarding 2021-02-25 20:44:31 +05:30
Vishnu Mohandas 2c69be6071 Add product ID for free susbcriptions 2021-02-25 20:29:54 +05:30
Vishnu Mohandas 881b6f38ba Update debug mode endpoint port 2021-02-25 20:29:44 +05:30
Vishnu Mohandas e1d28f4ab3 Remove unused import 2021-02-25 13:18:29 +05:30
Vishnu Mohandas 67e60606ea Log trace when sync is called 2021-02-19 14:53:39 +05:30
Vishnu Mohandas 404cf4f94f Remove redundant sync call 2021-02-18 16:53:08 +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 89f201161c Log exact times frames within which the photos are fetched 2021-02-18 13:26:05 +05:30
Vishnu Mohandas fb2600d1b1 Log each upload attempt 2021-02-18 12:49:13 +05:30
Vishnu Mohandas 50b12aefbd Block on writing logline to file 2021-02-18 12:47:22 +05:30
Vishnu Mohandas 0d8cd028d9 Minor refactor 2021-02-18 12:35:45 +05:30
Vishnu Mohandas 4b22e0fd22 Prevent users from using weak passwords 2021-02-18 00:10:38 +05:30
Vishnu Mohandas 432219234d Comment out library that could cause issues on Android 2021-02-16 21:45:23 +05:30
Vishnu Mohandas 4295702fdf Return album with decrypted name post creation 2021-02-16 19:37:19 +05:30
Vishnu Mohandas 380ce36e7d Show next renewal date on the susbcription screen 2021-02-16 19:31:29 +05:30
Vishnu Mohandas 5367a387e8 Show option to create a collection only when the user has an active subscription plan 2021-02-16 19:15:29 +05:30
Vishnu Mohandas a6839c8a8f Add icon to the thumbnail to indicate sync status 2021-02-16 00:13:41 +05:30
Vishnu Mohandas 9139d01a7f Safeguard against decoding issues 2021-02-16 00:04:15 +05:30
Vishnu Mohandas 9a5185d883 Use copyWith instead of the constructor 2021-02-15 23:54:36 +05:30
Vishnu Mohandas d34d020095 Persist collection version 2021-02-15 00:03:57 +05:30
Vishnu Mohandas db47586424 Don't rely on cache that does not exist yet 2021-02-14 23:45:38 +05:30
Vishnu Mohandas 736383b4c6 Trigger sync when backup folder configuration is changed 2021-02-14 18:25:23 +05:30
Vishnu Mohandas 6d16adf7c4 Use CheckboxListTile instead of Checkbox 2021-02-14 18:22:24 +05:30
Vishnu Mohandas 41895b6fb8 Change ordering of items within the settings screen 2021-02-14 18:11:01 +05:30