Commit graph

77 commits

Author SHA1 Message Date
Prateek Sunal 7495a0e388 fix: uploader logic 2024-04-13 14:02:49 +05:30
Prateek Sunal 262c68a59d fix: add end to file stream 2024-04-13 14:02:49 +05:30
Prateek Sunal 5fa2b34f35 fix: update database logic 2024-04-13 14:02:49 +05:30
Prateek Sunal 3a8b737968 fix: add file key in table 2024-04-13 14:02:49 +05:30
Prateek Sunal 5e3805b7bb fix: upload status to table 2024-04-13 14:02:49 +05:30
Prateek Sunal a4f89c0337 fix: add support for inital resumable 2024-04-13 14:02:48 +05:30
laurenspriem 90db558498 Merge branch 'update_deps_and_flutter' into mobile_face 2024-04-11 12:39:54 +05:30
Neeraj Gupta b18734f63e Merge branch 'main' into mobile_face 2024-04-11 11:10:54 +05:30
ashilkn e3bb6a29d0 Resolve merge conflicts and merge main 2024-04-10 16:43:10 +05:30
ashilkn d07c4f4d1d Remove code used for debugging/testing 2024-04-10 12:29:01 +05:30
ashilkn b9b623e3f7 fix: query in getAllLocalAndUploadedFiles doesn't work if limit is null 2024-04-10 11:11:39 +05:30
Neeraj Gupta c224e38ddf Merge branch 'main' into mobile_face 2024-04-10 10:15:40 +05:30
ashilkn 83d122341f Migrate getAllLocalAndUploadedFiles from sqflite to sqlite_async 2024-04-09 17:48:53 +05:30
ashilkn 785beeb9b3 Migrate getFilesInCollection from sqflite to sqlite_async 2024-04-09 17:40:22 +05:30
ashilkn 1ec941b022 Migrate getAllPendingOrUploadedFiles from sqflite to sqlite_async 2024-04-09 16:12:37 +05:30
Ashil 628d13ea53
[mobile][photos] Use sqlite async for fetching all files for search (#1391)
## Description

Using [sqlite_async](https://pub.dev/packages/sqlite_async) has
increased query speed by about 5x and has removed GC logs like:
`Background concurrent copying GC freed 424845(20MB) AllocSpace objects,
183(4932KB) LOS objects, 37% free, 39MB/63MB, paused 144us,44us total
128.048ms`, which has improved performance of the app.

Tried using [sqlite3](https://pub.dev/packages/sqlite3), which reduced
query speed by 10x and removed the GC log, but introduced some jank
since it blocks the UI.

Converting the fetched rows to `EnteFile` now runs on an isolate to
avoid blocking the UI.

## Tests

Did manual testing to see difference in jank.
2024-04-09 15:17:48 +05:30
Neeraj Gupta b6aec20b22 [mob] Update log 2024-04-08 09:45:34 +05:30
Neeraj Gupta be06d45e3a [mob] Fix person custom avatar rendering 2024-04-05 07:21:48 +05:30
Neeraj Gupta fb3a77bf94 Merge branch 'main' of https://github.com/ente-io/auth into mobile_face 2024-04-03 13:57:39 +05:30
Ashil f8febe12df
[mobile][photos] Reupload files with missing GPS data (#1263)
## Description

- Fixes corrupt files (missing GPS data) that were uploaded due to [this
issue](https://github.com/ente-io/ente/pull/1261)
- Refactor

## Tests

Tested and working
- Uploaded two file from a build that has missing permission for
`ACCESS_MEDIA_LOCATION` and GPS data is missing.
- Created a new build with changes in this PR.
- Deleted the file from device. 
- Remote file has GPS data when checked from file info.

---------

Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2024-04-01 16:41:33 +05:30
laurenspriem 1af3d2d2db [mob] Big cleanup of old code 2024-04-01 15:34:45 +05:30
ashilkn dabda8e744 upgrade photo_manager and flutter 2024-03-28 16:32:59 +05:30
laurenspriem a2bca84b91 [mob] Sort clustering on fileCreationTime asc 2024-03-21 15:41:34 +05:30
laurenspriem a4582c0e55 Move FaceML inside Machine Learning directory 2024-03-20 15:51:57 +05:30
Neeraj Gupta d2bf4846a5 [mobile] Patch faces mvp from photos-app repo 2024-03-08 09:36:03 +05:30
Neeraj Gupta a9cb6f3077
[mobile] Remove unused db for public keys (#734)
## Description
To keep the changes simple, we are not deleting any existing database
instances. In case we need to store this information in the future, we
will reuse the existing database instead of creating a new one.
2024-03-07 16:37:20 +05:30
Manav Rathi 41b2581b8f Move into mobile/ 2024-03-01 12:25:37 +05:30