未验证 提交 431ab060 编写于 作者: T Takeshi Hagikura 提交者: GitHub

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)
上级 85ba1285
......@@ -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}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册