Exclude transitive dependency on core for androidTest

androidTest of core already has the dependency on its main. Without this
exclude, gradle complains about type duplication when merging dex saying
"Type X is defined multiple times".

PiperOrigin-RevId: 302641585
This commit is contained in:
olly 2020-03-24 11:50:31 +00:00 committed by Oliver Woodman
parent eebe990d20
commit 4e5b2c692f

View file

@ -61,7 +61,9 @@ dependencies {
androidTestImplementation 'com.google.guava:guava:' + guavaVersion
androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion
androidTestImplementation project(modulePrefix + 'testutils')
androidTestImplementation(project(modulePrefix + 'testutils')) {
exclude module: gradle.ext.exoplayerModulePrefix + 'library-core'
}
testImplementation 'com.google.guava:guava:' + guavaVersion
testImplementation 'org.robolectric:robolectric:' + robolectricVersion
testImplementation project(modulePrefix + 'testutils')