Im trying to inject my App Component like this because Im using this boilerplate.
private void setupDaggerTestComponentInApplication() {
WSApplication application = WSApplication.get(mContext);
mTestComponent = DaggerTestComponent.builder()
.applicationTestModule(new ApplicationTestModule(application))
.build();
application.setComponent(mTestComponent);
}
This is located in a new testing folder:
sourceSets {
def commonTestDir = 'src/commonTest/java'
test {
java.srcDir commonTestDir
}
androidTest {
java.srcDir commonTestDir
}
}
DAGGER_VERSION = '2.11-rc2'
Output:
error: cannot find symbol variable DaggerTestComponent
Any idea? Thanks