Commit Graph

9118 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
4e2fc7567a Merge branch 'repo-weights' into 'master'
Overhaul Repository Handling

Closes #702, #1566, #1887, and #2681

See merge request fdroid/fdroidclient!1324
2024-02-20 13:37:15 +00:00
Torsten Grote
0bb92cb965 [app] improve RepoChooser drop-down style
Uses F-Droid blue if selected repo is preferred and allows multi-line for long repo names
2024-02-20 09:48:30 -03:00
Torsten Grote
49ac998640 [app] show repo dropdown only if app is in more than one repo or if not in default repo 2024-02-20 09:42:43 -03:00
Torsten Grote
10601ec0ed [app] fix NPE race-condition in app details 2024-02-20 09:42:43 -03:00
Torsten Grote
81653be6d3 [app] remove star icon for preferred repos 2024-02-20 09:42:43 -03:00
Torsten Grote
b0b97a0898 [app] hide install/update/open buttons in app details when not seeing preferred repo 2024-02-20 09:42:43 -03:00
Torsten Grote
8efa13d562 [app] Improve archive toggle in repo details 2024-02-20 09:42:43 -03:00
Torsten Grote
de33b4de28 [app] Show special error when user tries to add archive repo directly 2024-02-20 09:42:42 -03:00
Torsten Grote
dec7c4d260 [db] return error when trying to add archive repo 2024-02-20 09:42:42 -03:00
Torsten Grote
218a9ebb59 [app] Hide install button in repo app lists
These lists show repo versions of the apps with different preferred signers, release channels, etc. The user may not be aware of this, so we force install through repo details screen which has special logic and UI for handling repo preferences.
2024-02-20 09:42:42 -03:00
Torsten Grote
b6a8b9e8e6 [app] use material progress bar for versions list loading indicator 2024-02-20 09:42:42 -03:00
Torsten Grote
b45efadc45 [app] show repo list info dialog in ManageReposActivity 2024-02-20 09:42:42 -03:00
Torsten Grote
349f386d92 [app] move archive repos to toggle of main repo
archive repos can now be enabled/disabled in the details screen of each repo
2024-02-20 09:42:42 -03:00
Torsten Grote
e47ef72f75 [db] add archive repo adding to RepoAdder 2024-02-20 09:42:41 -03:00
Torsten Grote
4831cd8a8d [app] Wrap repo items in a card 2024-02-20 09:42:41 -03:00
Torsten Grote
8b20267f34 [app] Warn user about resetting preferred repo when disabling repo 2024-02-20 09:42:41 -03:00
Torsten Grote
c6d1a74dce [app] Show a frame around repo on app details screen
This was voted for in the fdroid-dev channel.
2024-02-20 09:42:41 -03:00
Torsten Grote
3842479259 [app] Show/consider only versions from selected repo in app details 2024-02-20 09:42:41 -03:00
Torsten Grote
bb8cb29bfe [app] refactor RepoIcon into its own Composable 2024-02-20 09:42:41 -03:00
Torsten Grote
f6970e4245 [app] allow changing preferred repo in app details 2024-02-20 09:42:40 -03:00
Torsten Grote
25326e24f6 [app] Allow repo position/priority to be reordered by long tap + drag 2024-02-20 09:42:40 -03:00
Torsten Grote
0b292f3383 [db] Add convenience method for setting preferred repo via RepoManager 2024-02-20 09:42:40 -03:00
Torsten Grote
108105596d [db] allow re-ordering repo list and thus priorities 2024-02-20 09:42:40 -03:00
Torsten Grote
0bfc0b1059 [app] stop assigning a weight to repos as the DB handles this now
therefore the order of the default repos is reversed, so the archive repos has a lower weight than the official repo
2024-02-20 09:42:40 -03:00
Torsten Grote
51a4bcec58 [db] don't allow initial repos from fixtures to provide weight
The client was already auto-incrementing their weight anyway. But it leaked our internal weight handling into the library consumer which can cause issues like when me are making changes to how we handles repo weights as we are doing now.
2024-02-20 09:42:40 -03:00
Torsten Grote
b993da8db8 [db] New repos now get lower weight than older ones
so they do not override the information from older repos anymore. This is especially an issue for the official repo which historically had the lowest priority while it should have the highest.
2024-02-20 09:42:39 -03:00
Torsten Grote
d9ea1e154b [db] Migrate repo weights and test migration 2024-02-20 09:42:39 -03:00
Torsten Grote
4a01b02fa6 [db] Add DB query for getting repos an app is in 2024-02-20 09:42:39 -03:00
Torsten Grote
b28d2ecd5b [app] Only request updates and suggested versions from preferred repositories
Before, we would install compatible updates from any repository
2024-02-20 09:42:39 -03:00
Torsten Grote
ead8bd1262 [db] Only consider preferred versions for updates and suggested version 2024-02-20 09:42:39 -03:00
Torsten Grote
393c74ab35 [app] adapt to new AppPrefs constructor 2024-02-20 09:42:39 -03:00
Torsten Grote
12af2fa32b [db] reset the preferred repo when it gets disabled or deleted 2024-02-20 09:42:38 -03:00
Torsten Grote
5c27f7033e [db] Move InstantTaskExecutorRule into base DbTest class
so all tests can use LiveData helper methods such as getOrFail() without worrying about that rule
2024-02-20 09:42:38 -03:00
Torsten Grote
704234c9df [db] allow setting a preferred repo per app 2024-02-20 09:42:38 -03:00
Torsten Grote
f4a1d92933 Merge branch 'allow-manual-ci-pipelines' into 'master'
gitlab-ci: allow manually triggering of pipelines

See merge request fdroid/fdroidclient!1346
2024-02-15 14:54:40 +00:00
Hans-Christoph Steiner
30f7ef450b gitlab-ci: allow manually triggering of pipelines 2024-02-15 11:08:37 +01:00
Michael Pöhn
77de2d9acf Merge branch '2723-concurrent-downloads' into 'master'
Cancel download when DownloadService is told to stop

Closes #2723

See merge request fdroid/fdroidclient!1340
2024-02-14 11:27:10 +00:00
Torsten Grote
67995f3be7 [app] cancel download when DownloadService is told to stop
Otherwise, we may download the same file concurrently to the same location which will be messy and not work.
2024-02-14 11:26:06 +00:00
Torsten Grote
28a5c0bb12 Merge branch 'remove-random-PluralsCandidate' into 'master'
remove random 'PluralsCandidate' text that slipped in

See merge request fdroid/fdroidclient!1345
2024-02-13 16:07:51 +00:00
Hans-Christoph Steiner
bca34e6f76 remove random 'PluralsCandidate' text that slipped in
cd0a8687be

sed -i 's,PluralsCandidate,,' app/src/main/res/values*/strings.xml
2024-02-13 16:07:33 +00:00
Torsten Grote
44a61d4c54 Merge branch 'artifacts' into 'master'
Always upload artifacts so we have APKs for testing

See merge request fdroid/fdroidclient!1343
2024-02-13 15:57:51 +00:00
Torsten Grote
87b66c08d5 Always upload artifacts so we have APKs for testing 2024-02-13 11:31:01 -03:00
Hans-Christoph Steiner
2eb8abd593 Merge branch '2713-fix-compose-force-theme' into 'master'
Let compose activities respect app compat day/night theme

Closes #2713

See merge request fdroid/fdroidclient!1336
2024-02-13 13:49:27 +00:00
Torsten Grote
5f81b28775 [app] let compose activities respect app compat day/night theme 2024-02-13 13:48:52 +00:00
Hans-Christoph Steiner
5ae6c0cbe5 Merge branch 'fdroid-link' into 'master'
Last minute change to fdroid.link format

See merge request fdroid/fdroidclient!1341
2024-02-13 13:32:00 +00:00
Torsten Grote
c894e48675 [db] last minute change to fdroid.link format
The new one is simpler and basically wrap the real URL by just prepending https://fdroid.link/#
2024-02-13 09:47:51 -03:00
Michael Pöhn
81e233e89a Merge branch 'debug-logging' into 'master'
Fix debug logging for libraries

See merge request fdroid/fdroidclient!1338
2024-02-13 12:27:16 +00:00
Torsten Grote
359145eaef [app] fix debug logging for libraries 2024-02-13 12:26:03 +00:00
Michael Pöhn
56da183a72 Merge branch 'fix-tls-tests' into 'master'
Fix broken TLS instrumentation tests

See merge request fdroid/fdroidclient!1339
2024-02-13 12:23:04 +00:00
Torsten Grote
f69eeabcff stop allowing KVM failure, tests should be less flaky now 2024-02-09 11:32:12 -03:00