Skip to content

Commit 431ab06

Browse files
authored
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)
1 parent 85ba128 commit 431ab06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flexbox/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ android {
4141
}
4242

4343
dependencies {
44-
api "com.android.support:support-compat:${rootProject.ext.supportLibVersion}"
45-
api "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
44+
compileOnly "com.android.support:support-compat:${rootProject.ext.supportLibVersion}"
45+
compileOnly "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
4646

4747
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
4848

49+
androidTestImplementation "com.android.support:support-compat:${rootProject.ext.supportLibVersion}"
50+
androidTestImplementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
4951
androidTestImplementation "com.android.support:support-annotations:${rootProject.ext.supportLibVersion}"
5052
androidTestImplementation "com.android.support.test:runner:${rootProject.ext.testRunnerVersion}"
5153
androidTestImplementation "com.android.support.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"

0 commit comments

Comments
 (0)