From d24f37cdd7f13fa84ad8d22559dd036d2fffb8c0 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Fri, 27 Mar 2020 00:53:01 -0700 Subject: [PATCH] Check if exoplayerModulePrefix is set --- library/core/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/core/build.gradle b/library/core/build.gradle index abfcc10adf..1b090a7537 100644 --- a/library/core/build.gradle +++ b/library/core/build.gradle @@ -61,8 +61,12 @@ dependencies { androidTestImplementation 'com.google.guava:guava:' + guavaVersion androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion - androidTestImplementation(project(modulePrefix + 'testutils')) { - exclude module: gradle.ext.exoplayerModulePrefix + 'library-core' + if (gradle.ext.has('exoplayerModulePrefix')) { + androidTestImplementation(project(modulePrefix + 'testutils')) { + exclude module: gradle.ext.exoplayerModulePrefix + 'library-core' + } + } else { + androidTestImplementation project(modulePrefix + 'testutils') } testImplementation 'com.google.guava:guava:' + guavaVersion testImplementation 'org.robolectric:robolectric:' + robolectricVersion