Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

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 Jan 5, 2018
1 parent 85ba128 commit 431ab06
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 431ab06

Please sign in to comment.