If the Application has a Custom Application object. It is needed to annotate this with @HiltAndroidApp ex: @HiltAndroidApp class AppCore: Application
Appcore has some initialization logic which is needed for the app to run
Now in the Instrumentation tests We also need to Extend the custom Application object. @CustomTestApplication(AppCore::class) interface HiltTestApplication
This gives an error @CustomTestApplication value cannot be annotated with @HiltAndroidApp
Is there any other way of using HILT in instrumentation tests with custom Application objects
public abstract interface HiltTestApplication {
^
@CustomTestApplication value cannot be annotated with @HiltAndroidApp. Found: AppCore