ext.versions = [
// 本地仓库版本
coreui : '1.0.1',
core : "1.0.1",
hardware : "1.0.0",
// base version : compile = target
complieSdk : 25,
buildTools : '25.0.2',
targetSdk : 25,
minSdk : 18,
code : 3,
name : '1.0',
//test
junit : '4.12',
//dependencies
gson : '2.8.0',
okhttp : '3.5.0',
retrifit2 : '2.1.0',
retrifitRxAdapter: '1.0.0',
rxAndroid : '2.0.1',
rxJava : '2.0.2',
glide : '3.7.0',
// view version
appcompat : '25.1.0',
constraint : '1.0.2',
]
// 非界面所需依赖
ext.libs = [
gson : "com.google.code.gson:gson:$versions.gson",
//ok http
okhttpLib : "com.squareup.okhttp3:okhttp:$versions.okhttp",
okhttpInterceptor : "com.squareup.okhttp3:logging-interceptor:$versions.okhttp",
//retrofit2
retrifit2Lib : "com.squareup.retrofit2:retrofit:$versions.retrifit2",
retrifit2Gson : "com.squareup.retrofit2:converter-gson:$versions.retrifit2",
retrifit2Rxjava2Adapter: "com.jakewharton.retrofit:retrofit2-rxjava2-adapter:$versions.retrifitRxAdapter",
//rx
rxAndroid : "io.reactivex.rxjava2:rxandroid:$versions.rxAndroid",
rxJava2 : "io.reactivex.rxjava2:rxjava:$versions.rxJava",
//glide
glide : "com.github.bumptech.glide:glide:$versions.glide",
]
// 测试所需要的依赖
ext.tests = [
testJuint: "junit:junit:$versions.junit",
]
// 界面所需要的依赖
ext.views = [
appcompat : "com.android.support:appcompat-v7:$versions.appcompat",
layoutConstraint: "com.android.support.constraint:constraint-layout:$versions.constraint",
v7_cardview : "com.android.support:cardview-v7:$versions.appcompat",
design : "com.android.support:design:$versions.appcompat",
]
// 项目所有的 app id
ext.appIds = [
simple:"com.smartahc.android.template.demo"
]
// 本地仓库配置
def LOCAL_SERVER_IP = "127.0.0.1"
ext.artifactIds = [
coreui : "coreui",
core : "core",
hardware: "hardware"
]
ext.groupIds = [
core: "com.smartahc.android.core",
]
ext.urls = [
localUseMaven : "http://" + LOCAL_SERVER_IP + ":8081/artifactory/smartahc-release/",
localUploadPath: "http://" + LOCAL_SERVER_IP + ":8081/artifactory"
]
ext.localRespos = [
repoName: "cores-release",
userName: "core",
password: "core"
]