Skip to content

Commit

Permalink
Change the support library dependencies to compileOnly. (google#396)
Browse files Browse the repository at this point in the history
To not to force the dependent projects to use the specific version of
the support libraries (or explicitly exclude them)
  • Loading branch information
thagikura authored and Artem Kalachyan committed Feb 16, 2018
1 parent 305ddc4 commit 3791192
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flexbox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 3791192

Please sign in to comment.