ext { //android开发版本配置 android = [ compileSdkVersion: 28, buildToolsVersion: "28.0.3", applicationId : "com.utry.temi", minSdkVersion : 22, targetSdkVersion : 28, versionCode : 1, versionName : "1.0", ] //version配置 versions = [ "support-version": "1.0.0", "junit-version" : "4.12", ] //support配置 support = [ 'support-v4' : "androidx.legacy:legacy-support-v4:${versions["support-version"]}", 'appcompat-v7' : "androidx.appcompat:appcompat:${versions["support-version"]}", 'recyclerview-v7' : "androidx.recyclerview:recyclerview:${versions["support-version"]}", 'support-v13' : "androidx.legacy:legacy-support-v13:${versions["support-version"]}", 'support-fragment' : "androidx.fragment:fragment:${versions["support-version"]}", 'design' : "com.google.android.material:material:${versions["support-version"]}", 'animated-vector-drawable': "androidx.vectordrawable:vectordrawable-animated:${versions["support-version"]}", 'junit' : "junit:junit:${versions["junit-version"]}", 'constraintlayout' : "androidx.constraintlayout:constraintlayout:1.1.3", 'material' : "com.google.android.material:material:1.1.0", ] //依赖第三方配置 dependencies = [ //rxjava "rxjava" : "io.reactivex.rxjava3:rxjava:3.1.6", "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.12", //network "okhttp" : "com.squareup.okhttp3:okhttp:3.10.0", "retrofit" : "com.squareup.retrofit2:retrofit:2.4.0", "converter-gson" : "com.squareup.retrofit2:converter-gson:2.4.0", "adapter-rxjava" : "com.squareup.retrofit2:adapter-rxjava2:2.4.0", //glide图片加载 "glide" : "com.github.bumptech.glide:glide:4.8.0", "glide-compiler" : "com.github.bumptech.glide:compiler:4.8.0", //json解析 "gson" : "com.google.code.gson:gson:2.8.5", //material-dialogs "material-dialogs-core" : "com.afollestad.material-dialogs:core:0.9.4.5", "material-dialogs-commons" : "com.afollestad.material-dialogs:commons:0.9.4.5", //recyclerview的databinding套装 "bindingcollectionadapter" : "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:3.1.1", "bindingcollectionadapter-recyclerview": "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:3.1.1", //Google AAC "lifecycle-extensions" : "androidx.lifecycle:lifecycle-extensions:2.0.0", "lifecycle-compiler" : "androidx.lifecycle:lifecycle-compiler:2.0.0", //MVVMHabit "fastjson" : "com.alibaba:fastjson:1.2.73", //paging "paging" : "androidx.paging:paging-runtime:3.0.0", ] }