加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.gradle 6.33 KB
一键复制 编辑 原始数据 按行查看 历史
ygx 提交于 2020-05-16 10:39 . 整合
ext{
// 组件化: true, 对应的APP作为Module运行; false, 对应的APP作为Library运行
isTestApplication = false
isIPCApplication = false
// build Tools Version
android = [
compileSdkVersion : 28,
buildToolsVersion : "28.0.3",
minSdkVersion : 14,
targetSdkVersion : 21,
versionCode : 9,
versionName : "1.2.5"
]
/*
* FastJson:
* fastjson; 使用1.2.51版本, 会报出 Failed resolution of: Ljavax/xml/bind/annotation/XmlAccessorType;
* 原因是因为引用了Android不存在的注解XmlAccessorType, 修改为1.1.70.android即可
*/
version = [
androidSupportSdkVersion: "27.1.1",
glideSdkVersion : "4.8.0",
canarySdkVersion : "1.5.4",
constraintVersion : "1.1.3",
okhttp : "3.8.1",
"okhttp-3_10_0" : "3.10.0",
junitVersion : "4.12",
testRunner : "1.0.2",
espressoCore : "3.0.2",
rxjava : "2.2.0",
rxandroid : "2.1.0",
retrofit : "2.4.0",
adapterRxjava2 : "2.4.0",
loggingInterceptor : "3.9.0",
fastJson : "1.2.47",
butterknife : "8.8.1",
butterknifeCompiler : "8.8.1",
qiniuVersion : "7.3.9",
rxTools : "v1.7.6.2",
recyclerView : "28.0.0",
eventBus : "3.1.1",
supportV4 : "28.0.0",
ARouterVersion : "1.4.1",
leakCanary : "1.6.3",
icmp4j : "1.2",
"commons-codec" : "1.12",
robolectric : "4.2.1",
"retrofit-mock" : "2.5.0",
"mockito-core" : "2.23.0",
"powermock-module-junit4" : "2.0.2",
"powermock-module-junit4-rule" : "2.0.2",
"powermock-api-mockito2" : "2.0.2",
"powermock-classloading-xstream" : "2.0.2",
mockwebserver : "3.12.0",
guava : "25.1-jre",
"javacv" : "1.5.1"
]
dependencies = [
"appcompat-v7a" : "com.android.support:appcompat-v7:${version["androidSupportSdkVersion"]}",
"support-v4" : "com.android.support:support-v4:${version["androidSupportSdkVersion"]}",
"constraint-layout" : "com.android.support.constraint:constraint-layout:${version["constraintVersion"]}",
"junit" : "junit:junit:${version["junitVersion"]}",
"support-test-runner" : "com.android.support.test:runner:${version["testRunner"]}",
"test.espresso-core" : "com.android.support.test.espresso:espresso-core:${version["espressoCore"]}",
"rxjava" : "io.reactivex.rxjava2:rxjava:${version["rxjava"]}",
"rxandroid" : "io.reactivex.rxjava2:rxandroid:${version["rxandroid"]}",
"retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofit"]}",
"retrofit.adapter-rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version["adapterRxjava2"]}",
"okhttp3.logging-interceptor" : "com.squareup.okhttp3:logging-interceptor:${version["loggingInterceptor"]}",
"fastJson" : "com.alibaba:fastjson:${version["fastJson"]}",
"butterknife" : "com.jakewharton:butterknife:${version["butterknife"]}",
"butterknifeCompiler" : "com.jakewharton:butterknife-compiler:${version["butterknifeCompiler"]}",
"qiniu" : "com.qiniu:qiniu-android-sdk:${version["qiniuVersion"]}",
"rxTools" : "com.github.vondear:RxTools:${version["rxTools"]}",
"recyclerView" : "com.android.support:recyclerview-v7:${version["recyclerView"]}",
"eventBus" : "org.greenrobot:eventbus:${version["eventBus"]}",
"supportV4" : "com.android.support:support-v4:${version["supportV4"]}",
"ARouter" : "com.alibaba:arouter-api:${version["ARouterVersion"]}",
"leakCanary-Debug" : "com.squareup.leakcanary:leakcanary-android:${version["leakCanary"]}",
"leakCanary-Release" : "com.squareup.leakcanary:leakcanary-android-no-op:${version["leakCanary"]}",
"leakCanary-Support" : "com.squareup.leakcanary:leakcanary-support-fragment:${version["leakCanary"]}",
"icmp4j" : "sheltekio.javalibs:icmp4j:${version["icmp4j"]}",
"commons-codec" : "commons-codec:commons-codec:${version["commons-codec"]}",
"robolectric" : "org.robolectric:robolectric:${version["robolectric"]}",
"retrofit-mock" : "com.squareup.retrofit2:retrofit-mock:${version["retrofit-mock"]}",
"mockito-core" : "org.mockito:mockito-core:${version["mockito-core"]}",
"powermock-module-junit4" : "org.powermock:powermock-module-junit4:${version["powermock-module-junit4"]}",
"powermock-module-junit4-rule" : "org.powermock:powermock-module-junit4-rule:${version["powermock-module-junit4-rule"]}",
"powermock-api-mockito2" : "org.powermock:powermock-api-mockito2:${version["powermock-api-mockito2"]}",
"powermock-classloading-xstream": "org.powermock:powermock-classloading-xstream:${version["powermock-classloading-xstream"]}",
"mockwebserver" : "com.squareup.okhttp3:mockwebserver:${version["mockwebserver"]}",
"guava" : "com.google.guava:guava:${version["guava"]}",
"okhttp-3_10_0" : "com.squareup.okhttp3:okhttp:${version["okhttp-3_10_0"]}",
"javacv" : "org.bytedeco:javacv:${version["javacv"]}"
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化