Commit Graph

9460 Commits

Author SHA1 Message Date
Licaon_Kter
f581228bcc Update hidden AFs text 2024-09-04 13:16:22 +00:00
Torsten Grote
51a64d3aeb Merge branch 'fts4-search' into 'master'
Fix case insensitive search containing diacritics by changing FTS4 tokenizer

Closes #2636

See merge request fdroid/fdroidclient!1404
2024-09-03 17:23:44 +00:00
Tobias_Groza
f927e7c86d Add test for AppMetadataFTS table migration 2024-09-03 19:06:10 +02:00
Tobias_Groza
14ffc7023b Update tests to use new db schema and migrations 2024-09-03 19:06:10 +02:00
Tobias_Groza
1e7324ca3b Fix case insensitive search containing diacritics by changing FTS4 tokenizer
The default `simple` tokenzier config used in Room/SQLite3 FTS4 makes only ASCII characters case insensitive. The SQLite FTS3/4 doc [1] says:

> All uppercase characters within the ASCII range (Unicode codepoints less than 128), are transformed to their lowercase equivalents as part of the tokenization process. Thus, full-text queries are case-insensitive when using the simple tokenizer.

> The remove_diacritics option may be set to "0", "1" or "2". The default value is "1". If it is set to "1" or "2", then diacritics are removed from Latin script characters as described above. However, if it is set to "1", then diacritics are not removed in the fairly uncommon case where a single unicode codepoint is used to represent a character with more that one diacritic. [...] This is technically a bug, but cannot be fixed without creating backwards compatibility problems. If this option is set to "2", then diacritics are correctly removed from all Latin characters.

This change makes use of the intended behaviour by using the `unicode61` tokenizer with the `diacritics="0"` option to keep the behaviour similar to the current one. This replaces the previously used `simple` tokenizer. A migration is necessary to recreate the AppMetadataFts table to make use of the different tokenizer.

[1] https://www.sqlite.org/fts3.html#tokenizer
2024-09-03 19:06:10 +02:00
Torsten Grote
79424fa757 Merge branch 'licaon-kter-master-patch-51220' into 'master'
Update NFN text

See merge request fdroid/fdroidclient!1418
2024-09-03 16:55:03 +00:00
Licaon_Kter
e3af1897db Update NFN text 2024-09-03 16:54:44 +00:00
Torsten Grote
0ed7a09dde Merge branch 'fix-incompatible-install' into 'master'
Fix visibility of install/update button when no compatible versions are available

Closes #2847

See merge request fdroid/fdroidclient!1414
2024-09-03 16:54:22 +00:00
Tobias_Groza
83139ed5e6 Fix visibility of install/update button when no compatible versions are available
This fixes a regression introduced by 73ce4443b0.
2024-09-03 18:40:41 +02:00
Tobias_Groza
af4de1217e Remove unnecessary null check
canAndWantToUpdate returns false if suggestedApk is null
2024-09-03 18:40:41 +02:00
Torsten Grote
2fdc87c4f6 Merge branch 'fix-repo-adder' into 'master'
Fix mirror detection when adding repo with whitespace in URL input

See merge request fdroid/fdroidclient!1416
2024-09-03 14:53:32 +00:00
Tobias_Groza
0a1297ff3d Fix detecting repo as user mirror when adding a repo URL with preceeding or trailing whitespace characters 2024-09-03 13:53:46 +00:00
Torsten Grote
b670858a38 Merge branch 'fix-repo-remove-crash' into 'master'
Fix crash when deleting repository

Closes #2849

See merge request fdroid/fdroidclient!1415
2024-09-03 13:53:31 +00:00
Tobias_Groza
c015f72370 Fix crash when deleting repository
This fixes an NPE that was triggered when deleting a repo via the RepoDetailsActivity. The repo is null after it has been deleted. The corresponding RepoDetails are now closed after the deletion.
2024-09-03 13:00:07 +00:00
Hans-Christoph Steiner
2cc5f137cf Merge branch 'update-scheduler-tweaks' into 'master'
Don't require device to be idle for RepoUpdateWorker to run

Closes #1794

See merge request fdroid/fdroidclient!1411
2024-09-03 12:51:07 +00:00
Torsten Grote
263c61d8ad [app] don't report negative update scheduling times in settings
When the scheduling time is in the past, our job should have run already, but did not, because conditions we require weren't fulfilled. Times in the past are confusing for users, so we just report that the next run is waiting for conditions to be fulfilled.
2024-08-01 16:25:34 -03:00
Torsten Grote
cc0a036a74 [app] don't require device to be idle for RepoUpdateWorker to run
Sometimes devices are not idle for a long time potentially causing many hours of delay. Some device have been reported to never be idle: https://gitlab.com/fdroid/fdroidclient/-/issues/1794

Closes #1794
2024-08-01 16:22:21 -03:00
Torsten Grote
168f235fd0 Merge branch 'update-worker' into 'master'
Replace UpdateService with WorkManager alternative

Closes #1092 and #2710

See merge request fdroid/fdroidclient!1386
2024-07-12 13:42:43 +00:00
Torsten Grote
c2b021a39a [app] add ktlint checking and fix complaints it has 2024-07-12 10:05:30 -03:00
Torsten Grote
eb367041a3 [app] Remove unused UpdateService and related classes
All functionality was migrated to its new WorkManager based replacement: RepoUpdateWorker and RepoUpdateManager
2024-07-12 09:36:38 -03:00
Torsten Grote
59bbeb7c7c [app] Add new RepoUpdateReceiver for system apps to trigger repository updates
One known use-case for this is to do an initial repository update during SetupWizard, so app data is available when needed, e.g. for restoring app backups.
2024-07-12 09:36:38 -03:00
Torsten Grote
e2eed58b36 [app] show earliest next update check in the UI
This is useful for debugging scheduling issues. The user can immediately see if and when an update is scheduled to happen.
2024-07-12 09:36:38 -03:00
Torsten Grote
7912f870f6 [app] replace all usages of UpdateService with new alternatives
This uses LiveData to replace local broadcasts. One advantage of this is that the last live data value doesn't get lost when the view was stopped.
2024-07-12 09:36:38 -03:00
Torsten Grote
6934c62674 [app] add RepoUpdateManager and RepoUpdateWorker
to replace UpdateService which is still based on deprecated JobService API and known to be unreliable.

This also introduces a new lean NotificationManager which can eventually supersede the old one.
2024-07-12 09:31:38 -03:00
Torsten Grote
92554b6459 [app] Give AppUpdateStatusManager the responsibility to queue app updates
This is mostly for efficiency, since it queries the DB for new updates anyway, so it can already enqueue those for auto-update if the respective settings allow.
2024-07-12 09:31:38 -03:00
Torsten Grote
510a6c07f3 [db] return the repoId of the archive when adding/enabling it 2024-07-12 09:31:37 -03:00
Hans-Christoph Steiner
9aae1d58a1 Merge branch '2825-update-bug' into 'master'
Fix bug where disabled repos were considered for preferred repo calculation

Closes #2825

See merge request fdroid/fdroidclient!1409
1.21.0-alpha0
2024-07-09 16:03:00 +00:00
Torsten Grote
fb041c4450 [db] Fix bug where disabled repos were considered for preferred repo calculation
If an update was available from a disabled repo with a higher priority, the update from an enabled repo with a lower priority would not be offered as an update (i.e. returned by DbUpdateChecker#getUpdatableApps()).
2024-07-09 16:02:37 +00:00
Torsten Grote
15182dc9dc Merge branch '1.21-alpha0' into 'master'
Release 1.21-alpha0

See merge request fdroid/fdroidclient!1408
2024-07-09 15:09:01 +00:00
Torsten Grote
cf450579ad [app] Release 1.21-alpha0 2024-07-09 11:14:27 -03:00
Torsten Grote
57cf56567d Merge branch 'merge_weblate' into 'master'
Merge Weblate

See merge request fdroid/fdroidclient!1407
2024-07-09 14:13:47 +00:00
大王叫我来巡山
a80cc42c55 Translated using Weblate: Chinese (Simplified) (zh-rCN) by 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Chinese (Simplified) (zh-rCN) by 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>

Currently translated at 100.0% (541 of 541 strings)

Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/zh_Hans/
Translation: F-Droid/F-Droid
2024-07-09 10:28:06 -03:00
Ihor Hordiichuk
d75c3c5234 Translated using Weblate: Ukrainian (uk) by Ihor Hordiichuk <igor_ck@outlook.com>
Currently translated at 100.0% (542 of 542 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/uk/
Translation: F-Droid/F-Droid
2024-07-09 10:28:06 -03:00
Tymofii Lytvynenko
71a5f03604 Translated using Weblate: Ukrainian (uk) by Tymofii Lytvynenko <till.svit@gmail.com>
Currently translated at 100.0% (541 of 541 strings)

Co-authored-by: Tymofii Lytvynenko <till.svit@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/uk/
Translation: F-Droid/F-Droid
2024-07-09 10:28:06 -03:00
Đorđe Vasiljević
095f41db33 Translated using Weblate: Serbian (sr) by Đorđe Vasiljević <djordje.vasiljevich@gmail.com>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Serbian (sr) by Đorđe Vasiljević <djordje.vasiljevich@gmail.com>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Serbian (sr) by Đorđe Vasiljević <djordje.vasiljevich@gmail.com>

Currently translated at 99.0% (536 of 541 strings)

Co-authored-by: Đorđe Vasiljević <djordje.vasiljevich@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/sr/
Translation: F-Droid/F-Droid
2024-07-09 10:28:06 -03:00
Licaon Kter
fcc8226a68 Translated using Weblate: Romanian (ro) by Licaon Kter <licaon.kter@protonmail.com>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Romanian (ro) by Licaon Kter <licaon.kter@protonmail.com>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Romanian (ro) by Licaon Kter <licaon.kter@protonmail.com>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: Licaon Kter <licaon.kter@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/ro/
Translation: F-Droid/F-Droid
2024-07-09 10:28:05 -03:00
lucasmz-dev
e27e3794bc Translated using Weblate: Portuguese (Brazil) (pt-BR) by lucasmz-dev <git@lucasmz.dev>
Currently translated at 93.0% (40 of 43 strings)

Translated using Weblate: Portuguese (Brazil) (pt-rBR) by lucasmz-dev <git@lucasmz.dev>

Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Portuguese (Brazil) (pt-rBR) by lucasmz-dev <git@lucasmz.dev>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Portuguese (Brazil) (pt-rBR) by lucasmz-dev <git@lucasmz.dev>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Portuguese (Brazil) (pt-rBR) by lucasmz-dev <git@lucasmz.dev>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Portuguese (Brazil) (pt-rBR) by lucasmz-dev <git@lucasmz.dev>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: lucasmz-dev <git@lucasmz.dev>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid-metadata/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/pt_BR/
Translation: F-Droid/F-Droid
Translation: F-Droid/F-Droid metadata
2024-07-09 10:28:05 -03:00
ssantos
ba260c945e Translated using Weblate: Portuguese (pt) by ssantos <ssantos@web.de>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Portuguese (pt) by ssantos <ssantos@web.de>

Currently translated at 100.0% (536 of 536 strings)

Translated using Weblate: Portuguese (Portugal) (pt-rPT) by ssantos <ssantos@web.de>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/pt/
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/pt_PT/
Translation: F-Droid/F-Droid
2024-07-09 10:28:05 -03:00
Agnieszka C
b865df41f4 Translated using Weblate: Polish (pl) by Agnieszka C <aga_04@o2.pl>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Polish (pl) by Agnieszka C <aga_04@o2.pl>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Polish (pl) by Agnieszka C <aga_04@o2.pl>

Currently translated at 99.0% (536 of 541 strings)

Co-authored-by: Agnieszka C <aga_04@o2.pl>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/pl/
Translation: F-Droid/F-Droid
2024-07-09 10:28:05 -03:00
Random
8afb7b6465 Translated using Weblate: Italian (it) by Random <random-r@users.noreply.hosted.weblate.org>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Italian (it) by Random <random-r@users.noreply.hosted.weblate.org>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Italian (it) by Random <random-r@users.noreply.hosted.weblate.org>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: Random <random-r@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/it/
Translation: F-Droid/F-Droid
2024-07-09 10:28:04 -03:00
Priit Jõerüüt
4eb10a5afb Translated using Weblate: Estonian (et) by Priit Jõerüüt <hwlate@joeruut.com>
Currently translated at 100.0% (542 of 542 strings)

Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/et/
Translation: F-Droid/F-Droid
2024-07-09 10:28:04 -03:00
kovabait12
f5b090ac12 Translated using Weblate: Estonian (et) by kovabait12 <gamingugandaknuckles@gmail.com>
Currently translated at 99.8% (540 of 541 strings)

Co-authored-by: kovabait12 <gamingugandaknuckles@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/et/
Translation: F-Droid/F-Droid
2024-07-09 10:28:04 -03:00
Priit Jõerüüt
4b812048d2 Translated using Weblate: Estonian (et) by Priit Jõerüüt <hwlate@joeruut.com>
Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Estonian (et) by Priit Jõerüüt <hwlate@joeruut.com>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/et/
Translation: F-Droid/F-Droid
2024-07-09 10:28:03 -03:00
gallegonovato
9067295a01 Translated using Weblate: Spanish (es) by gallegonovato <fran-carro@hotmail.es>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Spanish (es) by gallegonovato <fran-carro@hotmail.es>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Spanish (es) by gallegonovato <fran-carro@hotmail.es>

Currently translated at 100.0% (536 of 536 strings)

Translated using Weblate: Spanish (es) by gallegonovato <fran-carro@hotmail.es>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/es/
Translation: F-Droid/F-Droid
2024-07-09 10:28:03 -03:00
☆Verdulo
2c85575819 Translated using Weblate: Esperanto (eo) by ☆Verdulo <tomek@disroot.org>
Currently translated at 100.0% (542 of 542 strings)

Translated using Weblate: Esperanto (eo) by ☆Verdulo <tomek@disroot.org>

Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Esperanto (eo) by ☆Verdulo <tomek@disroot.org>

Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: ☆Verdulo <tomek@disroot.org>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/eo/
Translation: F-Droid/F-Droid
2024-07-09 10:28:03 -03:00
Andi Chandler
263b0c7b3c Translated using Weblate: English (United Kingdom) (en-rGB) by Andi Chandler <andi@gowling.com>
Currently translated at 100.0% (542 of 542 strings)

Co-authored-by: Andi Chandler <andi@gowling.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/en_GB/
Translation: F-Droid/F-Droid
2024-07-09 10:28:03 -03:00
Rob Pearson
fc958cf558 Translated using Weblate: English (United Kingdom) (en-rGB) by Rob Pearson <rob.dunedin@gmail.com>
Currently translated at 100.0% (541 of 541 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/en_GB/
Translation: F-Droid/F-Droid
2024-07-09 10:28:02 -03:00
Andi Chandler
9916d474d6 Translated using Weblate: English (United Kingdom) (en-rGB) by Andi Chandler <andi@gowling.com>
Currently translated at 100.0% (536 of 536 strings)

Co-authored-by: Andi Chandler <andi@gowling.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/en_GB/
Translation: F-Droid/F-Droid
2024-07-09 10:28:02 -03:00
Λευθέρης Τρόμπακας
8ed7027bcd Translated using Weblate: Greek (el) by Λευθέρης Τρόμπακας <lefteristrompakas@gmail.com>
Currently translated at 100.0% (542 of 542 strings)

Co-authored-by: Λευθέρης Τρόμπακας <lefteristrompakas@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/el/
Translation: F-Droid/F-Droid
2024-07-09 10:28:02 -03:00
ΣΤΑΥΡΟΣ ΔΑΛΙΑΚΟΠΟΥΛΟΣ
32cb3cc923 Translated using Weblate: Greek (el) by ΣΤΑΥΡΟΣ ΔΑΛΙΑΚΟΠΟΥΛΟΣ <stavros.daliakopoulos@gmail.com>
Currently translated at 100.0% (541 of 541 strings)

Translated using Weblate: Greek (el) by ΣΤΑΥΡΟΣ ΔΑΛΙΑΚΟΠΟΥΛΟΣ <stavros.daliakopoulos@gmail.com>

Currently translated at 99.0% (536 of 541 strings)

Co-authored-by: ΣΤΑΥΡΟΣ ΔΑΛΙΑΚΟΠΟΥΛΟΣ <stavros.daliakopoulos@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/el/
Translation: F-Droid/F-Droid
2024-07-09 10:28:02 -03:00