1 Star 0 Fork 1

maxinDev/AndroidDemos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.gradle 4.81 KB
一键复制 编辑 原始数据 按行查看 历史
ext{
//android开发版本配置
android=[
compileSdkVersion: 29,
buildToolsVersion: "29.0.3",
applicationId : "com.mxin.demo",
minSdkVersion : 19,
targetSdkVersion : 29,
versionCode : 1,
versionName : "1.0",
]
//version配置
versions = [
"support-version": "29.0.3",
"junit-version" : "4.13.2",
]
//support配置
support = [
"constraint-layout" : "1.0.0-beta2",
'support-v4' : "com.android.support:support-v4:${versions["support-version"]}",
'appcompat-v7' : "com.android.support:appcompat-v7:${versions["support-version"]}",
'recyclerview-v7' : "com.android.support:recyclerview-v7:${versions["support-version"]}",
'support-v13' : "com.android.support:support-v13:${versions["support-version"]}",
'support-fragment' : "com.android.support:support-fragment:${versions["support-version"]}",
'design' : "com.android.support:design:${versions["support-version"]}",
'animated-vector-drawable': "com.android.support:animated-vector-drawable:${versions["support-version"]}",
'junit' : "junit:junit:${versions["junit-version"]}",
]
//androidx
androidx = [
"core-ktx" :"androidx.core:core-ktx:1.3.2",
"appcompat" :"androidx.appcompat:appcompat:1.2.0",
"junit" :"junit:junit:4.13.2",
"startup-runtime" :"androidx.startup:startup-runtime:1.0.0",
"constraintlayout" :"androidx.constraintlayout:constraintlayout:1.1.3"
]
//test
androidTest = [
"junit" :"androidx.test.ext:junit:1.1.2",
"espresso-core" :"androidx.test.espresso:espresso-core:3.3.0",
]
kotlin = [
"kotlin-stdlib" :"org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
"kotlin-reflect" :"org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
]
//依赖第三方配置
dependencies = [
//material
"material" :"com.google.android.material:material:1.2.1",
//rxjava
"rxjava" : "io.reactivex.rxjava2:rxjava:2.2.3",
"rxandroid" : "io.reactivex.rxjava2:rxandroid:2.1.0",
//rx系列与View生命周期同步
"rxlifecycle" : "com.trello.rxlifecycle2:rxlifecycle:2.2.2",
"rxlifecycle-components" : "com.trello.rxlifecycle2:rxlifecycle-components:2.2.2",
//rxbinding
"rxbinding" : "com.jakewharton.rxbinding2:rxbinding:2.1.1",
//rx 6.0权限请求
"rxpermissions" : "com.github.tbruyelle:rxpermissions:0.10.2",
//network
"okhttp" : "com.squareup.okhttp3:okhttp:4.4.0",
"retrofit" : "com.squareup.retrofit2:retrofit:2.8.1",
"converter-gson" : "com.squareup.retrofit2:converter-gson:2.8.1",
"adapter-rxjava" : "com.squareup.retrofit2:adapter-rxjava2:2.4.0",
"logging-interceptor" : "com.squareup.okhttp3:logging-interceptor:4.4.0",
"LoggingInterceptor" : "com.github.ihsanbal:LoggingInterceptor:3.1.0-rc5",
//glide图片加载
"glide" : "com.github.bumptech.glide:glide:4.11.0",
"glide-compiler" : "com.github.bumptech.glide:compiler:4.11.0",
//json解析
"gson" : "com.google.code.gson:gson:2.8.5",
//Google AAC
"lifecycle-extensions" : "android.arch.lifecycle:extensions:1.1.1",
"lifecycle-compiler" : "android.arch.lifecycle:compiler:1.1.1",
//阿里路由框架
"arouter-api" : "com.alibaba:arouter-api:1.4.1",
"arouter-compiler" : "com.alibaba:arouter-compiler:1.2.2",
"eventbus" : "org.greenrobot:eventbus:3.1.1",
"dagger" : "com.google.dagger:dagger:2.13",
"dagger-compiler" :"com.google.dagger:dagger-compiler:2.13",
"stetho" :"com.facebook.stetho:stetho:1.3.1",
"MultiImageSelector" :"com.github.lovetuzitong:MultiImageSelector:1.2"
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/maxinDev/android-demos.git
git@gitee.com:maxinDev/android-demos.git
maxinDev
android-demos
AndroidDemos
master

搜索帮助