Nikola Milovic
08/11/2020, 4:55 PMdependencies {
implementation(project(":core"))
implementation(project(":app"))
}
While my app has
dependencies {
///...
implementation(project(":core"))
testImplementation(TestLibraryDependency.JUNIT) //neither does this
addTestDependencies() // this doesn't work
}
But rather I have to explicitly add testImplementation(TestLibraryDependency.JUNIT)
to my Dynamic Modules build.gradle
What is up with that?Nikola Milovic
08/11/2020, 4:58 PMun DependencyHandler.addTestDependencies() {
// testImplementation(project(ModuleDependency.LIBRARY_TEST_UTILS))
testImplementation(TestLibraryDependency.JUNIT)
androidTestImplementation(TestLibraryDependency.TEST_RUNNER)
androidTestImplementation(TestLibraryDependency.ESPRESSO_CORE)
testImplementation(TestLibraryDependency.MOCKITO_INLINE)
androidTestImplementation(TestLibraryDependency.MOCKITO_ANDROID)
testImplementation(TestLibraryDependency.MOCKITO_KOTLIN)
testImplementation(TestLibraryDependency.COROUTINES_TEST)
testImplementation(TestLibraryDependency.ANDROID_X_CORE_TESTING)
kaptTest(LibraryDependency.DAGGER_COMPILE)
kaptAndroidTest(LibraryDependency.DAGGER_COMPILE)
kaptAndroidTest(LibraryDependency.DAGGER_ANDROID_PROCESSOR)
}
This is the add test dependencies, but doesn't matter really as adding Junit
manually still doesnt work. To my knowledge the Dynamic Module should inherit its dependencies from the app module