From 710b19d955a2cc12bc6db6b7f8017bf271ee91c1 Mon Sep 17 00:00:00 2001 From: Ewan Croft Date: Wed, 14 Oct 2026 14:10:43 +0100 Subject: [PATCH] fix(android): host HiltTestActivity in the debug app, not the test APK HiltTestActivity was declared only in the androidTest manifest, so it ran in the test APK's process (uk.ewancroft.inkwell.debug.test). The test rule launches it into the app's process (uk.ewancroft.inkwell.debug), so every launch failed with 'Intent ... resolved to different process'. That is the remaining failure named in d893bf6 (InkwellNavHostTest and AccessibilitySemanticsTest). Move the activity and its manifest entry into app/src/debug so it is part of the debug app. Release builds are unaffected. Co-Authored-By: Claude Haiku 5.5 --- .../app/src/androidTest/AndroidManifest.xml | 23 ------------------- Android/app/src/debug/AndroidManifest.xml | 21 +++++++++++++++++ .../uk/ewancroft/inkwell/HiltTestActivity.kt | 3 ++- 3 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 Android/app/src/androidTest/AndroidManifest.xml create mode 100644 Android/app/src/debug/AndroidManifest.xml rename Android/app/src/{androidTest => debug}/java/uk/ewancroft/inkwell/HiltTestActivity.kt (83%) diff --git a/Android/app/src/androidTest/AndroidManifest.xml b/Android/app/src/androidTest/AndroidManifest.xml deleted file mode 100644 index 64331104..00000000 --- a/Android/app/src/androidTest/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - diff --git a/Android/app/src/debug/AndroidManifest.xml b/Android/app/src/debug/AndroidManifest.xml new file mode 100644 index 00000000..c3d74e27 --- /dev/null +++ b/Android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/Android/app/src/androidTest/java/uk/ewancroft/inkwell/HiltTestActivity.kt b/Android/app/src/debug/java/uk/ewancroft/inkwell/HiltTestActivity.kt similarity index 83% rename from Android/app/src/androidTest/java/uk/ewancroft/inkwell/HiltTestActivity.kt rename to Android/app/src/debug/java/uk/ewancroft/inkwell/HiltTestActivity.kt index f44e62e5..da85ab3e 100644 --- a/Android/app/src/androidTest/java/uk/ewancroft/inkwell/HiltTestActivity.kt +++ b/Android/app/src/debug/java/uk/ewancroft/inkwell/HiltTestActivity.kt @@ -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()