Torsten Grote
e25c678a8e
Fix AppUpdateWorkerTest
2025-05-30 16:48:42 -03:00
Torsten Grote
be42dc7559
MockKAgentException: Mocking static is supported starting from Android P
2025-05-22 13:41:52 -03:00
Torsten Grote
a69915ee89
Add AppUpdateManagerTest
2025-05-22 13:41:52 -03:00
Torsten Grote
8ec1d39f1f
Add AppUpdateWorkerTest
2025-05-22 13:41:52 -03:00
Torsten Grote
cb4ebdeb65
Using -dontshrink in test(!) proguard file somehow causes primary constructor to vanish
2025-03-24 15:18:23 -03:00
Torsten Grote
bc81c7971e
Add test that identifies issue with missing primaryConstructor
2025-03-24 14:05:56 -03:00
Torsten Grote
536168ec3d
Move full-only instrumentation tests to proper folder
...
so basic tests can run as well
2025-03-19 09:08:34 -03:00
Matthew Bogner
b22200fde2
deleting a repo now removes corresponding items from the dns cache
2025-02-11 18:05:59 +00:00
Torsten Grote
64f50d5d1a
[app] use different mirror for HttpDownloaderTest because it fails on CI
2025-01-23 20:49:50 +01:00
Matthew Bogner
a8e620a996
MirrorChooser orders mirrors using location and error counts
2024-12-06 13:42:30 +00:00
Torsten Grote
195911c765
Fixing Kotlin style issues ahead of ktlint upgrade
2024-10-17 17:41:12 +00:00
Torsten Grote
b1d7f2553e
[app] show toast when APK has more permissions than expected
2024-10-17 16:31:45 +00:00
mnbogner
a16691da93
fixed dns cache test with url that will correctly trigger an exception
2024-09-27 10:07:15 -07:00
Thore Goebel
a26d5fe727
Remove unused Repository.canAdd and Repository.isMirror functions
2024-05-27 15:24:45 +02:00
Torsten Grote
fe86bf302f
[app] wikipedia uses letsencrypt, so that needs SDK >= 26
2024-03-12 17:35:11 -03:00
Hans-Christoph Steiner
5d8e5e5849
switch downloadThenCancel test to host w/o Let's Encrypt cert
...
refs #2102
2024-03-12 19:40:45 +01:00
Hans-Christoph Steiner
2836bd4d90
remove obsolete SDK 22 code block
2024-03-12 19:40:45 +01:00
Torsten Grote
befa014b5e
[app] R classes are now package specific
2024-03-05 14:43:28 +00:00
Torsten Grote
f8d70b2c54
no more namespaces in manifests
2024-03-05 14:43:28 +00:00
Matthew Bogner
cf595783b0
Added a dns class that caches dns lookups
2024-02-01 11:57:31 +00:00
Torsten Grote
7d64492d92
[db] support adding repos protected with basic auth
2023-10-18 11:39:38 +00:00
Torsten Grote
f068d920bd
Add RepoManagerAddAllIntegrationTest which adds all known (stable) repos
...
See: https://forum.f-droid.org/t/known-repositories/721
2023-10-18 11:39:38 +00:00
Hans-Christoph Steiner
48a10cac17
whitespace fixes from spotless applying AOSP code format
2023-07-05 21:40:12 +02:00
Hans-Christoph Steiner
703a1c10a7
use READ_EXTERNAL_STORAGE perm since only reading is needed
...
READ_EXTERNAL_STORAGE was added in SDK 16, this code predates that, so it
still used WRITE_EXTERNAL_STORAGE. The minSdkVersion is 23 now, so the
correct permission is preferred. This code does not do any writing, only
reading.
#1440
2023-06-14 18:31:27 +00:00
Torsten Grote
2048d6f478
Add code style to repo and fix it
2023-06-09 17:24:58 +00:00
Torsten Grote
b755a295e5
[app] Run HttpDownloaderTest with higher timeouts
2023-06-06 11:47:33 -03:00
Elias Howell
37323e1dbb
fix typos and spelling errors
2023-05-10 16:56:47 -04:00
Isira Seneviratne
ebcc122ea5
Pass empty arrays to toArray().
2023-01-13 09:01:11 +00:00
Hans-Christoph Steiner
4a95a423f0
SwapRepoEmulatorTest: stop ignoring and use swap IP setup
2022-12-01 17:43:14 +01:00
Hans-Christoph Steiner
3fa5e98fc4
convert SwapRepoTest into initial UpdateServiceTest
...
Finally, there can be a test for running UpdateService, which is essential
and has some really hairy code in it. At least swap has been removed from
there. This is barebones still, but it now can be developed to test quite
a bit of what is still needed in UpdateService.
2022-12-01 17:43:14 +01:00
Hans-Christoph Steiner
d19c5028ac
SwapService: split updateRepo out into testable static method
2022-12-01 17:43:14 +01:00
Torsten Grote
da165361c3
[app] Adapt SwapRepoEmulatorTest to new DB
2022-12-01 17:43:14 +01:00
Torsten Grote
cae10f11d9
Make index file name constants public and replace their string usages
2022-12-01 17:43:14 +01:00
Torsten Grote
6c007e92b3
[app] Remove unused code
2022-12-01 17:43:13 +01:00
Torsten Grote
65d0bdf738
[app] Fix ApkVerifierTest by removing index v0 XML parsing and adding permissions directly in the test
2022-12-01 17:43:13 +01:00
Torsten Grote
7a1d288792
[app] remove old ContentProviders from old database implementation
2022-12-01 17:43:13 +01:00
Torsten Grote
a783d3cb94
[app] kill old IndexUpdaters and related code as this is now in libraries via RepoUpdater
2022-12-01 09:27:58 +01:00
Torsten Grote
cf913ffefa
[app] Fix or remove UI tests
...
Tests for v0 index have been removed with their assets.
AntiFeaturesTest is not needed anymore, because filtering doesn't happen in new DB
PanicResponderActivityTest can not be tested as easily anymore
MultiIndexUpdaterTests are now spread over various database tests
LocaleSelectionTest is now in org.fdroid.database.BestLocaleTest
Most tests org.fdroid.fdroid.data now have equivalents in the new database library
2022-12-01 09:27:57 +01:00
Torsten Grote
d61ecbfa08
[app] Adapt nearby/swap to new DB
2022-12-01 09:27:57 +01:00
Hans-Christoph Steiner
41724028ac
LocalHTTPDManagerTest: fix broken logic now that test runner works
2022-05-18 13:06:23 +02:00
Torsten Grote
82b131ff71
Address first round of review comments
2022-02-16 09:43:19 -03:00
Torsten Grote
155257d901
Enable explicit API Mode for download library
...
and clean up the API a bit in the process
2022-02-16 09:43:19 -03:00
Torsten Grote
a43d5d8ef1
Add glide support to download library
2022-02-16 09:43:19 -03:00
Torsten Grote
d5ceb0b202
Add proxy support to download library
2022-02-16 09:43:18 -03:00
Torsten Grote
eb9837811c
Let HttpPoster also use HttpManager (renamed from DownloadManager)
2022-02-16 09:43:18 -03:00
Torsten Grote
062c870f23
Move (Http)Downloader into download library
2022-02-16 09:43:18 -03:00
Torsten Grote
9ca7bebc88
Add mirror support in downloads library
2022-02-16 09:43:17 -03:00
Torsten Grote
3d479b29e5
Initial work on separate download library
2022-02-16 09:43:17 -03:00
Hans-Christoph Steiner
402cbcc3c2
implement combined EXTRA_STREAM/EXTRA_TEXT Intents for createChooser()
...
An app can create an `ACTION_SEND Intent` to share a file and/or text
to another app. This `Intent` can provide an `InputStream` to get the
actual file via `EXTRA_STREAM`. This `Intent` can also include
`EXTRA_TEXT` to describe what the shared file is. Apps like K-9Mail,
Gmail, Signal, etc. correctly handle this case and include both the
file itself and the related text in the draft message.
This is used in F-Droid to share apps. The text is the
name/description of the app and the URL that points to the app's page
on f-droid.org. The `EXTRA_STREAM` is the actual APK if available.
Having all together means that the user can choose to share a message
or the actual APK, depending on the receiving app.
Unfortunately, not all apps handle this well. WhatsApp and Element
only attach the file and ignore the text.
https://github.com/vector-im/element-android/issues/3637
2021-07-06 23:24:51 +02:00
Hans-Christoph Steiner
29a1869818
create PublicSourceDirProvider to share installed APK files as streams
2021-07-06 23:24:51 +02:00