nextcloud-android/app/src
Álvaro Brey 7ea6283af4
Add testing utilities to override injections in classes injected with AndroidInjection
This includes Activities, Fragments, Services, etc. Other classes should use constructor injection,
and as such shouldn't need this.

This works by overriding the androidInjector method in the Application class (new TestMainApp added)
and allowing to use custom injectors there.

A InjectionOverrideRule is included for ease of use, but for more complicated cases, injection can be
controlled by accessing TestMainApp directly.

A sample is included in InjectionTestActivityTest.

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-12 12:58:31 +01:00
..
androidTest Add testing utilities to override injections in classes injected with AndroidInjection 2023-01-12 12:58:31 +01:00
debug Add testing utilities to override injections in classes injected with AndroidInjection 2023-01-12 12:58:31 +01:00
generic [tx-robot] updated from transifex 2022-10-23 03:21:12 +00:00
gplay Manifest: remove REQUEST_INSTALL_PACKAGES permission for gplay variant 2022-12-21 13:06:52 +01:00
huawei Move package declarations to build.gradle 2022-09-16 11:52:22 +02:00
main Move test helper classes to a consistent package (com.nextcloud.test) 2023-01-12 09:36:27 +01:00
qa Don't include document scanner in FDroid version 2022-04-06 14:43:05 +02:00
release/java/com/nextcloud/client/di Move app source to subproject 2022-03-11 11:10:51 +01:00
test PassCodeManager: add some logic to avoid counting the same activity twice 2023-01-10 14:38:16 +01:00
versionDev For our daily build on F-Droid we cannot add our document scanning 2022-12-07 14:56:14 +01:00