Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions Android/app/src/androidTest/AndroidManifest.xml

This file was deleted.

21 changes: 21 additions & 0 deletions Android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Debug-only manifest additions.

HiltTestActivity is an empty @AndroidEntryPoint host for composable-level
tests (see HiltTestActivity.kt). It must live in the app APK, not the
androidTest APK: the test rule launches it into the app's process, so
declaring it only in the test APK makes the launch resolve to a different
process ("resolved to different process ...debug.test").

It is part of the debug variant only and never reaches the release manifest.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application>
<activity
android:name="uk.ewancroft.inkwell.HiltTestActivity"
android:exported="false"
android:theme="@android:style/Theme.Material.Light.NoActionBar" />
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import dagger.hilt.android.AndroidEntryPoint
* ViewModel factory and nothing else, so a test can mount exactly the
* composable it means to exercise.
*
* Declared in `app/src/androidTest/AndroidManifest.xml`.
* Declared in `app/src/debug/AndroidManifest.xml`, so it runs in the app process
* that the test rule launches it into.
*/
@AndroidEntryPoint
class HiltTestActivity : ComponentActivity()
Loading