config.gradle 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ext {
  2. //android开发版本配置
  3. android = [
  4. compileSdkVersion: 28,
  5. buildToolsVersion: "28.0.3",
  6. applicationId : "com.utry.temi",
  7. minSdkVersion : 22,
  8. targetSdkVersion : 28,
  9. versionCode : 1,
  10. versionName : "1.0",
  11. ]
  12. //version配置
  13. versions = [
  14. "support-version": "1.0.0",
  15. "junit-version" : "4.12",
  16. ]
  17. //support配置
  18. support = [
  19. 'support-v4' : "androidx.legacy:legacy-support-v4:${versions["support-version"]}",
  20. 'appcompat-v7' : "androidx.appcompat:appcompat:${versions["support-version"]}",
  21. 'recyclerview-v7' : "androidx.recyclerview:recyclerview:${versions["support-version"]}",
  22. 'support-v13' : "androidx.legacy:legacy-support-v13:${versions["support-version"]}",
  23. 'support-fragment' : "androidx.fragment:fragment:${versions["support-version"]}",
  24. 'design' : "com.google.android.material:material:${versions["support-version"]}",
  25. 'animated-vector-drawable': "androidx.vectordrawable:vectordrawable-animated:${versions["support-version"]}",
  26. 'junit' : "junit:junit:${versions["junit-version"]}",
  27. 'constraintlayout' : "androidx.constraintlayout:constraintlayout:1.1.3",
  28. 'material' : "com.google.android.material:material:1.1.0",
  29. ]
  30. //依赖第三方配置
  31. dependencies = [
  32. //rxjava
  33. "rxjava" : "io.reactivex.rxjava3:rxjava:3.1.6",
  34. "rxandroid" : "io.reactivex.rxjava2:rxandroid:2.1.0",
  35. //rx系列与View生命周期同步
  36. "rxlifecycle" : "com.trello.rxlifecycle2:rxlifecycle:2.2.2",
  37. "rxlifecycle-components" : "com.trello.rxlifecycle2:rxlifecycle-components:2.2.2",
  38. //rxbinding
  39. "rxbinding" : "com.jakewharton.rxbinding2:rxbinding:2.1.1",
  40. //rx 6.0权限请求
  41. "rxpermissions" : "com.github.tbruyelle:rxpermissions:0.12",
  42. //network
  43. "okhttp" : "com.squareup.okhttp3:okhttp:3.10.0",
  44. "retrofit" : "com.squareup.retrofit2:retrofit:2.4.0",
  45. "converter-gson" : "com.squareup.retrofit2:converter-gson:2.4.0",
  46. "adapter-rxjava" : "com.squareup.retrofit2:adapter-rxjava2:2.4.0",
  47. //glide图片加载
  48. "glide" : "com.github.bumptech.glide:glide:4.8.0",
  49. "glide-compiler" : "com.github.bumptech.glide:compiler:4.8.0",
  50. //json解析
  51. "gson" : "com.google.code.gson:gson:2.8.5",
  52. //material-dialogs
  53. "material-dialogs-core" : "com.afollestad.material-dialogs:core:0.9.4.5",
  54. "material-dialogs-commons" : "com.afollestad.material-dialogs:commons:0.9.4.5",
  55. //recyclerview的databinding套装
  56. "bindingcollectionadapter" : "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:3.1.1",
  57. "bindingcollectionadapter-recyclerview": "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:3.1.1",
  58. //Google AAC
  59. "lifecycle-extensions" : "androidx.lifecycle:lifecycle-extensions:2.0.0",
  60. "lifecycle-compiler" : "androidx.lifecycle:lifecycle-compiler:2.0.0",
  61. //MVVMHabit
  62. "fastjson" : "com.alibaba:fastjson:1.2.73",
  63. //paging
  64. "paging" : "androidx.paging:paging-runtime:3.0.0",
  65. ]
  66. }