207 Commits

Author SHA1 Message Date
Prateek Sunal
8fe87cc1e0 fix: on every upload also update last attempted at 2024-04-21 18:20:33 +05:30
Prateek Sunal
3ea655f0d0 fix: missing ')' error sqflite 2024-04-21 18:16:30 +05:30
Neeraj Gupta
cc682a0a09 Merge branch 'mobile_face' of https://github.com/ente-io/auth into mobile_face 2024-04-20 16:01:08 +05:30
Neeraj Gupta
864f8444d5 Merge branch 'main' into mobile_face 2024-04-20 15:59:36 +05:30
Neeraj Gupta
3e5648dae4
[mob][photos][internal] Enable fav + add to album action for shared files (#1484)
## Description


https://github.com/ente-io/ente/assets/254676/7ec2f82a-d0d1-4dbe-8836-87d1ffd793f6


## Tests

- [x] Hide Shared Item on Home Page If user has copied it.
- [x] Keep the fav state on the UI
- [x] Client side hash based dedupe works for copied items. Items are
linked to existing item instead of uploading duplicate entries
2024-04-20 15:33:54 +05:30
Ashil
8113b70441
[mob][photos] Remove code related to sqlite3 (#1490) 2024-04-19 18:11:52 +05:30
Ashil
c4c513a1d7
[mob][photos] Use sqlite_async instead of sqlite3 (#1489)
## Description

Using both `sqlite_async` and `sqlite3` for querying at the same time
was throwing this error:
`error: SqliteException(5): while executing, database is locked,
database is locked (code 5)`

So, have used `sqlite_async` everywhere.

## Tests

- [x] Tested all changes
2024-04-19 16:56:40 +05:30
Neeraj Gupta
01822b760d [mob][photos] Dedupe using hash before copying 2024-04-19 16:45:29 +05:30
Neeraj Gupta
02890a100b [mob][photos] Lint fix 2024-04-19 15:56:49 +05:30
Neeraj Gupta
564ca77a8b Merge remote-tracking branch 'origin/main' into mobile_save_a_copy 2024-04-19 14:57:19 +05:30
Neeraj Gupta
136f53b581 [mob][photos] Fix: Remove fav action on shared photos 2024-04-19 14:53:41 +05:30
Neeraj Gupta
3788fdda6f [mob][photos]Fix: Show fav icon on shared photos 2024-04-19 14:15:33 +05:30
Prateek Sunal
336a6c53fc fix: use existing encryption path on multipart entry found 2024-04-18 22:42:32 +05:30
Prateek Sunal
f65e8359a7 fix: use random path, add date based fields, use collection id to encrypt file key 2024-04-18 22:38:10 +05:30
Prateek Sunal
901e50b69b chore: move multipart size out of constants 2024-04-18 21:15:21 +05:30
ashilkn
23801f8fa6 Merge branch 'main' into migrate_from_sqflite 2024-04-18 17:15:08 +05:30
ashilkn
b238ba2c62 [mob] Migrate from sqflite (2) 2024-04-18 17:14:22 +05:30
ashilkn
eb68a6c293 [mob] Migrate from sqflite 2024-04-18 16:23:43 +05:30
laurenspriem
e7992674d5 [mob] Use async sqlite for getting file creation times 2024-04-18 16:17:04 +05:30
Prateek Sunal
46b7dba9e3 fix: don't re-encrypt file, add nonce field, upload parts logic 2024-04-18 14:37:07 +05:30
ashilkn
e87ae499eb [mob] pref: use sqlite_async for getFilesCreatedWithinDurations 2024-04-18 10:59:22 +05:30
Prateek Sunal
4942724423 fix: better classes and enums 2024-04-16 23:55:36 +05:30
Neeraj Gupta
5e32752ba4 [mob][photos] Move multlipart uploader in separate service 2024-04-15 14:40:06 +05:30
Neeraj Gupta
30d562ed1a [mob][photos] Fix upload clearTable 2024-04-15 12:49:58 +05:30
Neeraj Gupta
6cfa176566 Merge branch 'main' into mobile-resumable 2024-04-15 12:12:37 +05:30
Neeraj Gupta
601a776b7a Merge branch 'main' into multipart 2024-04-15 10:37:42 +05:30
Ashil
bb90b2d3bc
[mob][photos] Upgrade flutter (#1434)
## Description

- Update flutter
- Update packages
- Fix UI issues because of update (material 3)
- bump up version to v0.8.80

## Tests

- [x] Building on android and iOS.

---------

Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2024-04-15 10:21:18 +05:30
Prateek Sunal
1ce6edf626 fix: add internal user config 2024-04-13 14:17:54 +05:30
Prateek Sunal
51d02177ad chore: bump dependencies 2024-04-13 14:07:20 +05:30
Prateek Sunal
ea38997ff9 feat: add status, fix xml parsing 2024-04-13 14:02:49 +05:30
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