mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
7ea6283af4
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> |
||
---|---|---|
.. | ||
java/com/nextcloud | ||
res/layout | ||
AndroidManifest.xml |