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
Hans-Christoph Steiner
8773d6205c
rename BannerUpdatingRepos --> StatusBanner
2021-04-13 16:26:23 +02:00
Hans-Christoph Steiner
d1e80bb067
add FDroidMetricsWorker to gather data into JSON reports
2021-03-08 15:30:30 +00:00
Hans-Christoph Steiner
d3be7d692d
add CleanCacheWorker Robolectric tests
2021-03-03 18:49:47 +01:00
Hans-Christoph Steiner
3afd269a9c
enable all Espresso tests when run from Android Studio
...
This should not make them run in the .gitlab-ci.yml setup, since that is
set to ignore @LargeTest
2021-02-23 17:53:33 +01:00
Hans-Christoph Steiner
06dbd048af
add WorkManagerTestRule to CleanCacheWorkerTest
2021-01-27 15:38:42 +01:00
Isira Seneviratne
ab8e7935b0
Add WorkManagerTestRule.
2021-01-21 06:18:23 +05:30
Isira Seneviratne
7c81b1ad15
Use WorkManager to clean the cache.
2021-01-21 06:17:28 +05:30
Isira Seneviratne
fb8922b252
Use ContextCompat.getSystemService().
2020-11-06 16:27:11 +05:30
Hans-Christoph Steiner
c157c3f047
fix Espresso test broken by androidx id change
...
fdroid/fdroidclient!899
2020-10-21 11:52:26 +02:00
Hans-Christoph Steiner
3b2b9ae1df
fix ApkVerifierTest when running on android-29+
...
fdroid/fdroidclient!856
2020-10-21 11:52:24 +02:00
Hans-Christoph Steiner
15a024b06e
update javadocs
2020-10-21 11:52:22 +02:00
Dominik Schürmann
2701961175
Fix LocalizationTest by recognizing ds format
2020-07-14 17:57:07 +02:00
Dominik Schürmann
319b615da0
Remove unused imports, fix line lengths
2020-07-14 14:10:22 +02:00
Dominik Schürmann
0034e1faff
Replace old InstrumentationRegistry.getTargetContext()
...
with ApplicationProvider.getApplicationContext()
2020-07-14 14:10:22 +02:00
Marcus Hoffmann
18592150c1
perform androidX migration through android studio
...
Project compiles and works fine after this.
2020-07-14 14:10:21 +02:00
Hans-Christoph Steiner
1c0957ce77
disable annoying or erronous PMD errors
2020-01-10 16:28:03 +01:00
Hans-Christoph Steiner
dca8023d7d
ignore flaky swap webserver tests by default
2019-11-30 22:00:53 +01:00
Hans-Christoph Steiner
bfcc5c974e
fix crash in Panic Settings
...
This got missed in ef90fd2dfd
fdroid/fdroidclient!829
for f in `find app/src/ -type f -name \*.xml|xargs grep --no-filename -F '<org.fdroid.fdroid' | awk '{ print $1}' |sort -u`; do test -e app/src/*/java/`echo $f | sed -e 's,<,,' -e 's,\.,/,g'`.java || echo FAIL $f; done
2019-07-06 00:12:28 +02:00
Hans-Christoph Steiner
69642d88f7
add placeholder SwapWorkflowActivity for basic flavor
2019-06-17 11:28:52 +02:00
Hans-Christoph Steiner
15d349f863
move LocalHTTPD and WifiStateChangeService into ".nearby" package
2019-06-17 11:18:07 +02:00
Hans-Christoph Steiner
43c7574228
fold ".views.swap" package into ".nearby" class
2019-06-17 10:50:56 +02:00
Hans-Christoph Steiner
790b5ab27d
rename 'localrepo' package to 'nearby' to cover the whole thing
2019-06-17 10:50:56 +02:00
Yoginth
0851fea8eb
Fix Typos
2019-06-05 03:52:40 +00:00
Hans-Christoph Steiner
14e006b924
mark two flaky swap test classes to omit them from gitlab-ci runs
...
They work fine on my machine, but fail often/always on gitlab-ci
2019-05-24 15:01:33 +02:00
Hans-Christoph Steiner
46472ba7a4
create BonjourManager to manage jmdns in HandlerThread, with tests
2019-05-24 13:35:55 +02:00
Hans-Christoph Steiner
79e7e78e7f
create testable LocalHTTPDManager for controlling the webserver
...
The RxJava tricks were a nightmare...
2019-05-24 10:02:22 +02:00
Hans-Christoph Steiner
85410504da
LocalRepoService for setting up the local swap repo
...
This moves all logic for setting up the local fdroid repo to its own
IntentService. That makes it much easier to interact with since things can
just use the static helper method to request it to update, and it'll do the
right thing.
2019-05-24 10:00:01 +02:00
Hans-Christoph Steiner
b8dba454e3
gitlab-ci: only run Espresso tests on emulators newer than 25
2019-04-23 16:34:57 +02:00
Hans-Christoph Steiner
d794c5a77c
purge urlString from ProgressListener, it is unused and confusing
2019-03-28 11:41:03 +01:00
Hans-Christoph Steiner
90d4821e99
fix checkstyle LineLength
2019-03-22 22:16:08 +01:00
mueller-ma
05bbe94b47
Improve nearby swap splash layout
...
* Rename ids to something meaningful
* Remove inner layouts from constraint layout
* Use same text and button styles
* Make sure the background image doesn't overlap with the text
2019-03-17 00:04:40 +01:00
Hans-Christoph Steiner
8e8d4a4af6
espresso tests: print RAM info to logcat
2019-02-18 23:52:40 +01:00
Hans-Christoph Steiner
421270ad5f
handle implied READ_EXTERNAL_STORAGE permissions
...
Having _WRITE_EXTERNAL_STORAGE_ will implied _READ_EXTERNAL_STORAGE_:
https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE
closes #1702
2019-02-14 15:33:57 +01:00
Hans-Christoph Steiner
3c185d6d64
enable Espresso tests to auto run, now there are x86 emulators
2019-01-08 20:37:55 +01:00