[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/#
This commit is contained in:
Torsten Grote
2024-02-13 09:46:28 -03:00
parent 81e233e89a
commit c894e48675
2 changed files with 4 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ internal class RepoUriGetterTest {
@Test
fun testFDroidLink() {
val uri1 = RepoUriGetter.getUri(
"https://fdroid.link/index.html#repo=https://f-droid.org/repo?" +
"https://fdroid.link/index.html#https://f-droid.org/repo?" +
"fingerprint=43238d512c1e5eb2d6569f4a3afbf5523418b82e0a3ed1552770abb9a9c9ccab"
)
assertEquals("https://f-droid.org/repo", uri1.uri.toString())
@@ -83,11 +83,11 @@ internal class RepoUriGetterTest {
uri1.fingerprint
)
val uri2 = RepoUriGetter.getUri("https://fdroid.link#repo=https://f-droid.org/repo")
val uri2 = RepoUriGetter.getUri("https://fdroid.link#https://f-droid.org/repo")
assertEquals("https://f-droid.org/repo", uri2.uri.toString())
assertNull(uri2.fingerprint)
val uri3 = RepoUriGetter.getUri("https://fdroid.link/#repo=http://f-droid.org/repo")
val uri3 = RepoUriGetter.getUri("https://fdroid.link/#http://f-droid.org/repo")
assertEquals("http://f-droid.org/repo", uri3.uri.toString())
assertNull(uri3.fingerprint)
}