screenshot-tests-for-android
screenshot-tests-for-android copied to clipboard
Add dependency in com.android.test module differently
Detect this case and use compile
(or more correctly, implementation
) instead of androidTestCompile
.
Workaround for now:
// TODO workaround for https://github.com/facebook/screenshot-tests-for-android/issues/74
configurations {
androidTestCompile
implementation.extendsFrom(androidTestCompile)
}
// TODO move this back up to the top of the file once the above issue is fixed.
apply plugin: 'com.facebook.testing.screenshot'
What is the issue, exactly?
In a test module, the runtime dependency is added to androidTestCompile instead of compile.