Hans-Christoph Steiner
d1e80bb067
add FDroidMetricsWorker to gather data into JSON reports
2021-03-08 15:30:30 +00:00
Hans-Christoph Steiner
1b594fa830
reign in proguard on androidTest
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
f089b9df08
Use correct uses-library tag in androidTest
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
Dominik Schürmann
d67db78997
Fix AndroidManifest for androidTest
2020-07-14 14:10:21 +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 ef90fd2dfdb0b07aca21f4be34e2c418f092bf06
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
Hans-Christoph Steiner
22773f3de3
gitlab-ci: force skip Espresso tests on < android-25
...
It seems that ARM emulators timeout even when just trying to run the
assumeTrue() tests via Espresso. There needs to be one test still enabled
in the file, otherwise, the run fails with:
org.fdroid.fdroid.MainActivityEspressoTest > initializationError[Nexus_One_API_19(AVD) - 4.4.2] FAILED
java.lang.Exception: No runnable methods
at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:191)
2019-01-08 20:36:32 +01:00
Hans-Christoph Steiner
97ad4ddc1f
get HttpDownloaderTest working on at least android-17 and above
...
The two excluded URLs seem to always resolve to IPv6 addresses first, then
fail since there isn't IPv6 connectivity. Donno why, but only on old android
versions, so just skip them there.
2019-01-08 20:35:49 +01:00
Hans-Christoph Steiner
26c1ef3033
move RepoXMLHandler to org.fdroid.fdroid.data
...
This should be lumped with the classes it uses.
2019-01-03 14:52:32 +01:00
Hans-Christoph Steiner
823ddcaca8
use separate titles for Updates pref and Updates tab
...
https://gitlab.com/fdroid/fdroidclient/merge_requests/773#note_127475129
2019-01-02 23:23:28 +01:00
Hans-Christoph Steiner
1571e28f68
support swapping with removable storage on android-21+
...
This uses the new Storage Access Framework, which was required for
accessing files on the SD Card starting in android-19. But the API
was really limited until android-21, and not really complete until
android-23 or even android-26. So the levels of usability will vary a
lot based on how new the version of Android is.
2018-12-21 00:03:39 +01:00
Hans-Christoph Steiner
8ce08c5920
fully ignore Espresso tests until something works out with gitlab-ci
2018-08-17 14:15:23 +02:00
Hans-Christoph Steiner
e450569a69
espresso: do extra memory clean up to keep StrictMode happy
...
There were some occasional StrictMode errors about multiple instances of
MainActivity. This cleanup idea comes from Google:
6f3a38f3af
2018-08-17 12:03:31 +02:00
Hans-Christoph Steiner
9d8232472f
tests: dismiss dialogs in the emulator with back button before run
...
The ARM emulator can show ANRs for 'system' on boot, so that dialog needs
to be dismissed before the Espresso tests can happen.
https://android.googlesource.com/platform/frameworks/testing/+/master/uiautomator_test_libraries/src/com/android/uiautomator/common/UiWatchers.java
2018-08-17 12:03:30 +02:00
Hans-Christoph Steiner
990d05dc0f
skip Espresso tests on ARM emulators
...
ARM emulators are too slow to run these tests in a useful way. The
sad thing is that it would probably work if Android didn't put up the
ANR "Process system isn't responding" on boot each time. There seems
to be no way to increase the ANR timeout.
2018-08-17 12:03:08 +02:00
Hans-Christoph Steiner
fd7acd6304
disable all animations in emulator for Espresso tests
...
* https://gist.github.com/xrigau/11284124
* https://gist.github.com/xrigau/ea8d306e0a751fafb1e6
* https://artemzin.com/blog/easiest-way-to-give-set_animation_scale-permission-for-your-ui-tests-on-android/
* https://github.com/finn-no/android_emulator_hacks
* https://gist.github.com/caipivara/9371a79a7222a156ddad
2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
e75a1a7005
remove test runner that was needed by Jenkins and Eclipse
...
Even the project's README says it is no longer needed:
https://github.com/jsankey/android-junit-report
2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
ae56d5c97c
set some vars to final
...
fdroid/fdroidclient!543
2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
3d05363c31
enable Espresso tests with some basic UI tasks
2018-08-17 10:09:59 +02:00
Hans-Christoph Steiner
552da24d30
fix HttpDownloaderTest after refactoring
...
HttpDownloaderTest doesn't get run in gitlab-ci since it was too flaky with
internet connections in the emulator. So these were missed until I manually
ran the tests.
688057b3e7e214db49566b84d5b3dcd0db30dc2b
195aaae7e52dc1c47741965904ed17bdc816a71c
df08e84e7829652d7999eee5451080a012b00a1e
2018-04-18 20:29:27 +02:00