From 3791192dbbb5c0f6eff15ac863da80649237c4ee Mon Sep 17 00:00:00 2001 From: Takeshi Hagikura Date: Fri, 5 Jan 2018 16:45:21 +0900 Subject: [PATCH] Change the support library dependencies to compileOnly. (#396) To not to force the dependent projects to use the specific version of the support libraries (or explicitly exclude them) --- flexbox/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flexbox/build.gradle b/flexbox/build.gradle index e2fce07a..a15df1c9 100644 --- a/flexbox/build.gradle +++ b/flexbox/build.gradle @@ -41,11 +41,13 @@ android { } dependencies { - api "com.android.support:support-compat:${rootProject.ext.supportLibVersion}" - api "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}" + compileOnly "com.android.support:support-compat:${rootProject.ext.supportLibVersion}" + compileOnly "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}" testImplementation "junit:junit:${rootProject.ext.junitVersion}" + androidTestImplementation "com.android.support:support-compat:${rootProject.ext.supportLibVersion}" + androidTestImplementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}" androidTestImplementation "com.android.support:support-annotations:${rootProject.ext.supportLibVersion}" androidTestImplementation "com.android.support.test:runner:${rootProject.ext.testRunnerVersion}" androidTestImplementation "com.android.support.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"