576 Commits

Author SHA1 Message Date
Neeraj Gupta
ff81711043 Merge branch 'lowerMemRequirement' of https://github.com/ente-io/auth into lowerMemRequirement 2025-01-20 14:13:43 +05:30
Neeraj Gupta
02fb6888ab [mob] Remove client side strength check 2025-01-20 14:12:59 +05:30
Neeraj Gupta
ffde143247 [mob] Fixed typo and lint 2025-01-20 14:01:56 +05:30
Neeraj Gupta
8e26433dd2 [mob] LowerMem & increase ops limit for key derivation 2025-01-20 14:01:56 +05:30
Neeraj Gupta
43adef8899 [mob] Fixed typo and lint 2025-01-18 16:14:00 +05:30
Neeraj Gupta
73af752f52 [mob] LowerMem & increase ops limit for key derivation 2025-01-18 16:10:30 +05:30
Prateek Sunal
882850e3d5 fix: null check issue 2025-01-14 17:59:19 +05:30
Prateek Sunal
167ed91a01 Merge remote-tracking branch 'origin/main' into mobile-preview-video 2025-01-13 13:36:59 +05:30
Prateek Sunal
ca118c397b fix: match collection id to "Camera" 2025-01-13 05:40:29 +05:30
Neeraj Gupta
c18dec516a [mob] Lint fix 2025-01-11 09:32:47 +05:30
Neeraj Gupta
1c4581d56d [mob] Eager release log in case of silent errors 2025-01-11 09:29:22 +05:30
Neeraj Gupta
63ad770f39 [mob] Change buffer from 24h to 4h 2025-01-11 09:13:54 +05:30
Neeraj Gupta
8db5efd5aa [mob] Fix bug that was causing lock to be not released in certain cases 2025-01-10 17:53:07 +05:30
Neeraj Gupta
86c6836dc6 [mob] Log last HB time for the BG task 2025-01-10 14:37:11 +05:30
Neeraj Gupta
c0ce7a97b1 [mob] Reduce lock expiry buffer 2025-01-10 14:29:54 +05:30
Neeraj Gupta
c49aeb0be8 Lint fix 2025-01-09 17:19:52 +05:30
Neeraj Gupta
0a6121e1fa [mob] Fix fetch for shared file index when local indexing is disabled 2025-01-09 15:25:40 +05:30
Neeraj Gupta
0db5370dea Lint fix 2025-01-08 16:36:41 +05:30
Neeraj Gupta
188bb4a9f4 [mob] Included shared file in index count 2025-01-08 16:18:26 +05:30
Neeraj Gupta
ae0654fce4 Merge remote-tracking branch 'origin/main' into pull_shared_indexes 2025-01-08 16:08:35 +05:30
Neeraj Gupta
8ab6109a77 [mob] Index shared files 2025-01-08 16:08:21 +05:30
Neeraj Gupta
645023a76d [mob] Pull shared indexes 2025-01-08 12:23:24 +05:30
Prateek Sunal
021cde5b7e Merge remote-tracking branch 'origin/main' into mobile-preview-video 2025-01-08 12:02:55 +05:30
Ashil
50aff81d18
[mob][photos] Use better batching when freeing up space in batches on iOS (#4630)
## Description

On iOS, deletion fails without any error if a batch has at least one
shared file. The only indicator that deletion failed is `List<String>`
returned by `PhotoManager.editor.deleteWithIds` will be empty.

So if shared files are distributed pretty evenly across list of
`localIDs` to be deleted, almost all batches would fail even with a
batch size of 10 (which was the minimum batch size before this change).

Recursively trying with a smaller batch size if the bigger batch size
fails makes it possible to delete all non-shared local files with more
system delete conformation dialogs though, but gets the work done for
users blocked on this.


```plaintext
[A, B, C, D, E]
 └─ Attempt to delete; if failure:
    ├─ [A, B]
    │  └─ Attempt to delete; if failure:
    │     ├─ [A]
    │     └─ [B]
    └─ [C, D, E]
       └─ Attempt to delete; if failure:
          ├─ [C]
          └─ [D, E]
             └─ Attempt to delete; if failure:
                ├─ [D]
                └─ [E]
2025-01-08 12:02:19 +05:30
ashilkn
5cd0a654bb [mob][photos] Show loading state when on deleting each batch 2025-01-08 11:31:07 +05:30
Prateek Sunal
6c7a409c35 Merge remote-tracking branch 'origin/main' into mobile-preview-video 2025-01-08 01:40:29 +05:30
ashilkn
aac9c73d05 [mob][photos] Try deleting in batches in a better way if deletion fails in one shot by splitting a batch into two if deletion fails and repeat the process recursively on each half until deletion succeeds 2025-01-07 21:26:32 +05:30
ashilkn
c608550534 [mob][photos] Update log message for more clarity 2025-01-07 17:09:29 +05:30
ashilkn
d24555314d [mob][photos] Minor fix 2025-01-07 13:46:10 +05:30
Neeraj Gupta
79e059ccc2 [mob] Remove hardcoded urls for public collection 2025-01-06 13:15:09 +05:30
ashilkn
232f793fb0 [mob][photos] Add logic to reload home gallery on toggling hide shared items from home gallery settings and also store the preference in local settings 2025-01-02 23:41:40 +05:30
Ashil
b580756e6b
[mob][photos] On freeing up space, retry deleting local files in batches with smaller max batch sizes if no files are deleted with bigger max batch sizes (#4505) 2024-12-26 15:53:24 +05:30
ashilkn
93e26c6caf [mob][photos] Retry deleting local files in batches with smaller max batch sizes if no files are deleted with a bigger max batch size 2024-12-26 12:01:18 +05:30
ashilkn
21f0602161 [mob][photos] Fix sort order setting not reflecting on public link opened in-app 2024-12-24 18:13:28 +05:30
ashilkn
bd0e8e6fe6 [mob][photos] Fix in-app public links only showing upto 2000 files 2024-12-24 17:25:33 +05:30
ashilkn
df68d3f005 [mob][photos] Fix local files coming up when public links are opened in-app 2024-12-24 16:25:55 +05:30
Neeraj Gupta
1115bf7b56 Merge remote-tracking branch 'origin/main' into mobile-preview-video 2024-12-18 15:42:07 +05:30
ashilkn
c4880fd07e [mob][photos] Log device brand and model 2024-12-16 16:11:57 +05:30
Simon Dubrulle
32ed84f48d Moved getFile() outside lock + Implemented simple Download queue 2024-12-13 08:34:52 +01:00
Simon Dubrulle
e9a8449a64 Implemented first PR feedbacks: removed PhotoManagerSafe not needded with LocalSyncService lock 2024-12-11 10:14:52 +01:00
Simon Dubrulle
0cb79102fd Creation of PhotoManagerSafe + lock in LocalSyncService + improved download UI + missing notify call 2024-12-10 13:25:00 +01:00
Prateek Sunal
7193a61a11 Merge remote-tracking branch 'origin/main' into mobile-preview-video 2024-11-28 22:25:20 +05:30
ashilkn
aed5d962e5 [mob][photos] Fix bug when clicking on 'collect' in shared tab to collect photos 2024-11-28 14:16:59 +05:30
ashilkn
e1e2d9fe12 [mob][photos] Chore" 2024-11-27 11:48:15 +05:30
Manav Rathi
3049c25db8
[API] Add Cache-control: no-store to API responses
...instead of adding it to ad-hoc API requests.
2024-11-27 08:29:10 +05:30
Ashil
2ae084780e
[mob][photos] Fix incorrect condition + show permission dialog to allow link-in-app in debug mode too (#4189) 2024-11-26 21:33:45 +05:30
laurenspriem
0f115f0d95 [mob][photos] merge conflicts again 2024-11-26 21:07:40 +05:30
ashilkn
c1ba766a5f [mob][photos] Fix incorrect condition + show permission dialog to allow link-in-app in debug mode too 2024-11-26 19:22:29 +05:30
ashilkn
15f39901c9 [mob][photos] Extract strings 2024-11-26 17:56:55 +05:30
ashilkn
5fd1f1041a Merge branch 'main' into deeplinks 2024-11-25 22:32:14 +05:30