summaryrefslogtreecommitdiff
path: root/java/tests/AndroidManifest.xml
diff options
context:
space:
mode:
author Mark Renouf <mrenouf@google.com> 2023-07-20 14:06:27 -0400
committer Mark Renouf <mrenouf@google.com> 2023-08-08 16:39:46 +0000
commit35a34bcaf236597703208cf0472cb268b42abb1c (patch)
treea9e27ad3b38d606301ded87bdaeb7fd234706ba3 /java/tests/AndroidManifest.xml
parent5b05c285bc00a34f847037dfe176b6f478eb768d (diff)
Adds Dagger support for ViewModel scope
Dependencies may now be bound to ViewModelScope which survives across Activity configuration restarts. ChooserViewModel is available in ChooserActivity. ViewModel components should be provided by ViewModelComponent to wire up the core parts of the app. A @ViewModel CoroutineScope is also available to inject from within ViewModelScope. * Injects [Resolver|Chooser](Wrapper)Activity in tests * Injects Intent args (Bundle) into ViewModel * Injects Referrer (Uri) into ViewModel Adjusts module structure slightly to accomodate the current state. Further restructuring will be done to simplify the test modules & components required. Test: atest IntentResolverUnitTests Change-Id: Ia249cf07796a9993f2cd021930c52faadb046ca8
Diffstat (limited to 'java/tests/AndroidManifest.xml')
-rw-r--r--java/tests/AndroidManifest.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/tests/AndroidManifest.xml b/java/tests/AndroidManifest.xml
index b397db5f..9f8dd41c 100644
--- a/java/tests/AndroidManifest.xml
+++ b/java/tests/AndroidManifest.xml
@@ -27,8 +27,9 @@
<uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
<application
- tools:replace="android:name"
- android:name="com.android.intentresolver.TestApplication" >
+ android:name="com.android.intentresolver.TestApplication"
+ tools:replace="android:appComponentFactory"
+ android:appComponentFactory="com.android.intentresolver.dagger.InjectedAppComponentFactory">
<uses-library android:name="android.test.runner" />
<activity android:name="com.android.intentresolver.ChooserWrapperActivity" />
<activity android:name="com.android.intentresolver.ResolverWrapperActivity" />