Torsten Grote
195911c765
Fixing Kotlin style issues ahead of ktlint upgrade
2024-10-17 17:41:12 +00:00
Torsten Grote
93e973e2b9
There's an official DigestInputStream, no need to make our own
2024-10-11 17:29:22 -03:00
Torsten Grote
9f637a602c
[app] Don't crash on malformed fdroid.link Uri
...
Fixes acra-crash-reports#740
2024-09-13 08:35:33 +00:00
Thore Goebel
a26d5fe727
Remove unused Repository.canAdd and Repository.isMirror functions
2024-05-27 15:24:45 +02:00
Thore Goebel
199f9b6c52
Rename Fetching.repo to Fetching.receivedRepo
...
To make it clear that this is the repo as we received it,
not the repo as we may have already stored it in the database.
2024-05-27 15:24:45 +02:00
Thore Goebel
d3ac70276d
fix: Use existingRepoId instead of receivedRepoId to launch existing details
2024-05-27 15:24:45 +02:00
Thore Goebel
e963aeaece
Make ktlint happy
...
For the record: I strongly find the trailing && and ||
less readable than the leading version.
But if that's what the Kotlin folks want 🤷 .
2024-05-27 15:24:45 +02:00
Thore Goebel
f173b1b6dc
Distinguish IsNewRepoAndNewMirror in UI
2024-05-27 15:24:45 +02:00
Thore Goebel
ee8dadf577
Explain what is being tested
2024-05-27 15:24:45 +02:00
Thore Goebel
ca2c97a8cf
Distinguish IsExistingRepository from IsExistingMirror
2024-05-27 15:24:45 +02:00
Thore Goebel
bae2a06693
Refactor: Move fetchUrl up from FetchResult into Fetching
...
The fetchUrl is independent of the result, it better belongs into Fetching.
2024-05-27 15:24:45 +02:00
Torsten Grote
fa65084e60
[db] make repo certs non-null and remove repos without cert
...
historically, repos were added to the DB without much information and could stay in a broken state until manually removed. If a repo is updating, it should have a cert. So only repos that never did a single index update don't have a cert. Nowadays, this can not happen anymore as we get the repo and its cert before adding it to the DB. So whenever we update a repo, we know its certificate and fingerprint. Thus, this includes a DB migration removing all broken repos and making the certificate for repos in the DB non-null.
2024-05-22 09:58:05 +00:00
Torsten Grote
3c2ebe6f49
Don't crash on non-hierarchical URIs in RepoUriGetter
2024-02-27 10:39:24 -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
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
Torsten Grote
10d6e5b244
[db] remove trailing whitespace from fingerprint
...
Thanks @iNPUTmice for reporting!
2023-12-12 10:06:45 -03:00
Torsten Grote
b1a0403960
[db] Add URL as mirror if repo was added with unofficial mirror
2023-11-22 12:04:17 +00:00
Torsten Grote
6ac7f652ad
[db] verify fingerprint of known repositories
...
if the user tries to add a repository at a known address with a different fingerprint than what we have on file, we'll refuse to add the repo
2023-10-20 09:26:17 -03:00
Torsten Grote
62aa00b5b4
[db] add support for adding repos on content:// and file:// URIs
...
This complicates the code for this niche use-case, but is wanted by F-Droid to support communities with bad or no internet connectivity.
2023-10-20 09:26:15 -03:00
Torsten Grote
7d64492d92
[db] support adding repos protected with basic auth
2023-10-18 11:39:38 +00:00
Torsten Grote
a5ec22fa6c
[db] add queries for getting app list items by repo
2023-10-18 11:39:38 +00:00
Torsten Grote
66b6c955a8
[db] add https:// scheme if it is missing from given repo URI
2023-10-18 11:39:38 +00:00
Torsten Grote
7c0c9c2cae
[db] add support for detecting swap repos
...
Note that those are not really meant to be added to the DB as they are ephemeral by nature.
2023-10-18 11:39:38 +00:00
Torsten Grote
03a5b697bb
[db] Handle fdroidrepos:// Uris as well
2023-10-18 11:39:38 +00:00
Torsten Grote
7b52db331c
[db] Catch NotFoundException in RepoAdder
2023-10-18 11:39:38 +00:00
Torsten Grote
40c71e4b06
[db] Reject invalid URIs when adding repos
2023-10-18 11:39:38 +00:00
Torsten Grote
6abf3e3a8f
[db] Add execution delay in attempt to fix flaky RepoAdder test
2023-10-18 11:39:38 +00:00
Torsten Grote
35481a8011
Initial support for fdroid.link URIs
2023-10-18 11:39:38 +00:00
Torsten Grote
1e54751142
[db] handle SerializationException when parsing index for RepoAdder
2023-08-23 10:53:44 +02:00
Torsten Grote
f3e8a0a45b
[db] Add plumping for fetching and adding a new repo
2023-08-21 10:52:34 +02:00
Torsten Grote
7d84689068
[db] Verify that v2 files start with /
...
and add a DbV2StreamReceiverTest for it
2022-09-12 09:46:15 +00:00
Torsten Grote
f6075848e7
Move libraries into their own folder
...
and remove sharedTest symlink hack. The shared tests are now a proper gradle module to avoid issues with using the same source files in different modules.
2022-09-12 09:46:15 +00:00