config.gradle 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ext {
  2. android = [
  3. compileSdkVersion: 28,
  4. buildToolsVersion: "28.0.3",
  5. minSdkVersion : 21,
  6. targetSdkVersion : 28,
  7. versionCode : 186,
  8. versionName : "2.5.2"
  9. ]
  10. version = [
  11. androidSupportSdkVersion: "28.0.0",
  12. retrofitSdkVersion : "2.6.0",
  13. dagger2SdkVersion : "2.23.2",
  14. glideSdkVersion : "4.9.0",
  15. butterknifeSdkVersion : "10.0.0",
  16. rxlifecycleSdkVersion : "1.0",
  17. rxlifecycle2SdkVersion : "2.2.2",
  18. espressoSdkVersion : "3.0.1",
  19. canarySdkVersion : "1.6.3"
  20. ]
  21. dependencies = [
  22. //support
  23. "appcompat-v7" : 'androidx.appcompat:appcompat:1.3.0',
  24. "design" : 'com.google.android.material:material:1.0.0',
  25. "support-v4" : 'androidx.legacy:legacy-support-v4:1.0.0',
  26. "cardview-v7" : 'androidx.cardview:cardview:1.0.0',
  27. "annotations" : 'androidx.annotation:annotation:1.0.0',
  28. "recyclerview-v7" : 'androidx.recyclerview:recyclerview:1.0.0',
  29. "progressmanager" : "me.jessyan:progressmanager:1.5.0",
  30. //network
  31. "retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofitSdkVersion"]}",
  32. "retrofit-converter-gson" : "com.squareup.retrofit2:converter-gson:${version["retrofitSdkVersion"]}",
  33. "retrofit-adapter-rxjava" : "com.squareup.retrofit2:adapter-rxjava:${version["retrofitSdkVersion"]}",
  34. "retrofit-adapter-rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version["retrofitSdkVersion"]}",
  35. "okhttp3" : "com.squareup.okhttp3:okhttp:3.12.3",
  36. "okhttp4" : "com.squareup.okhttp3:okhttp:4.0.0",
  37. "okhttp-urlconnection" : "com.squareup.okhttp:okhttp-urlconnection:2.0.0",
  38. "glide" : "com.github.bumptech.glide:glide:${version["glideSdkVersion"]}",
  39. "glide-compiler" : "com.github.bumptech.glide:compiler:${version["glideSdkVersion"]}",
  40. "glide-loader-okhttp3" : "com.github.bumptech.glide:okhttp3-integration:${version["glideSdkVersion"]}",
  41. "picasso" : "com.squareup.picasso:picasso:2.5.2",
  42. //view
  43. "autolayout" : "com.zhy:autolayout:1.4.5",
  44. "butterknife" : "com.jakewharton:butterknife:${version["butterknifeSdkVersion"]}",
  45. "butterknife-compiler" : "com.jakewharton:butterknife-compiler:${version["butterknifeSdkVersion"]}",
  46. "pickerview" : "com.contrarywind:Android-PickerView:3.2.5",
  47. "photoview" : "com.github.chrisbanes.photoview:library:1.2.3",
  48. "numberprogressbar" : "com.daimajia.numberprogressbar:library:1.2@aar",
  49. "nineoldandroids" : "com.nineoldandroids:library:2.4.0",
  50. "paginate" : "com.github.markomilos:paginate:0.5.1",
  51. "vlayout" : "com.alibaba.android:vlayout:1.1.0@aar",
  52. "autosize" : "me.jessyan:autosize:1.1.2",
  53. //rx1
  54. "rxandroid" : "io.reactivex:rxandroid:1.2.1",
  55. "rxjava" : "io.reactivex:rxjava:1.3.0",
  56. "rxlifecycle" : "com.trello:rxlifecycle:${version["rxlifecycleSdkVersion"]}",
  57. "rxlifecycle-components" : "com.trello:rxlifecycle-components:${version["rxlifecycleSdkVersion"]}",
  58. "rxcache" : "com.github.VictorAlbertos.RxCache:runtime:1.7.0-1.x",
  59. "rxcache-jolyglot-gson" : "com.github.VictorAlbertos.Jolyglot:gson:0.0.4",
  60. "rxbinding-recyclerview-v7": "com.jakewharton.rxbinding:rxbinding-recyclerview-v7:1.0.1",
  61. "rxpermissions" : "com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar",
  62. "rxerrorhandler" : "me.jessyan:rxerrorhandler:1.0.1",
  63. //rx2
  64. "rxandroid2" : "io.reactivex.rxjava2:rxandroid:2.1.1",
  65. "rxjava2" : "io.reactivex.rxjava2:rxjava:2.2.10",
  66. "rxlifecycle2" : "com.trello.rxlifecycle2:rxlifecycle:${version["rxlifecycle2SdkVersion"]}",
  67. "rxlifecycle2-android" : "com.trello.rxlifecycle2:rxlifecycle-android:${version["rxlifecycle2SdkVersion"]}",
  68. "rxlifecycle2-components" : "com.trello.rxlifecycle2:rxlifecycle-components:${version["rxlifecycle2SdkVersion"]}",
  69. "rxcache2" : "com.github.VictorAlbertos.RxCache:runtime:1.8.3-2.x",
  70. "rxpermissions2" : "com.github.tbruyelle:rxpermissions:0.10.2",
  71. "rxerrorhandler2" : "me.jessyan:rxerrorhandler:2.1.1",
  72. //tools
  73. "dagger2" : "com.google.dagger:dagger:${version["dagger2SdkVersion"]}",
  74. "dagger2-android" : "com.google.dagger:dagger-android:${version["dagger2SdkVersion"]}",
  75. "dagger2-android-support" : "com.google.dagger:dagger-android-support:${version["dagger2SdkVersion"]}",
  76. "dagger2-compiler" : "com.google.dagger:dagger-compiler:${version["dagger2SdkVersion"]}",
  77. "dagger2-android-processor": "com.google.dagger:dagger-android-processor:${version["dagger2SdkVersion"]}",
  78. "androideventbus" : "org.simple:androideventbus:1.0.5.1",
  79. "eventbus" : "org.greenrobot:eventbus:3.1.1",
  80. "otto" : "com.squareup:otto:1.3.8",
  81. "gson" : "com.google.code.gson:gson:2.8.5",
  82. "multidex" : "com.android.support:multidex:1.0.3",
  83. "javax.annotation" : "javax.annotation:jsr250-api:1.0",
  84. "arouter" : "com.alibaba:arouter-api:1.3.1",
  85. "arouter-compiler" : "com.alibaba:arouter-compiler:1.1.4",
  86. "progressmanager" : "me.jessyan:progressmanager:1.5.0",
  87. "retrofit-url-manager" : "me.jessyan:retrofit-url-manager:1.4.0",
  88. "lifecyclemodel" : "me.jessyan:lifecyclemodel:1.0.1",
  89. //test
  90. "junit" : "junit:junit:4.12",
  91. "androidJUnitRunner" : "androidx.test.runner.AndroidJUnitRunner",
  92. "runner" : "com.android.support.test:runner:1.0.1",
  93. "espresso-core" : "com.android.support.test.espresso:espresso-core:${version["espressoSdkVersion"]}",
  94. "espresso-contrib" : "com.android.support.test.espresso:espresso-contrib:${version["espressoSdkVersion"]}",
  95. "espresso-intents" : "com.android.support.test.espresso:espresso-intents:${version["espressoSdkVersion"]}",
  96. "mockito-core" : "org.mockito:mockito-core:1.+",
  97. "timber" : "com.jakewharton.timber:timber:4.7.1",
  98. "logger" : "com.orhanobut:logger:2.2.0",
  99. "canary-debug" : "com.squareup.leakcanary:leakcanary-android:${version["canarySdkVersion"]}",
  100. "canary-release" : "com.squareup.leakcanary:leakcanary-android-no-op:${version["canarySdkVersion"]}",
  101. "umeng-analytics" : "com.umeng.analytics:analytics:6.0.1",
  102. "toast" : "com.hjq:toast:8.0",
  103. "xutils" : "org.xutils:xutils:3.5.0",
  104. "fastjson" : "com.alibaba:fastjson:1.2.24",
  105. //"SmartRefreshLayout" : "com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-6",
  106. "SmartRefreshLayout" : "com.scwang.smart:refresh-layout-kernel:2.0.3",
  107. "SmartRefreshHeader" : "com.scwang.smart:refresh-header-classics:2.0.3",
  108. "SmartRefreshFooter" : "com.scwang.smart:refresh-footer-classics:2.0.3",
  109. "imagepicker" : "com.lzy.widget:imagepicker:0.6.1",
  110. "constraint" : 'androidx.constraintlayout:constraintlayout:1.1.3',
  111. "material" :'com.google.android.material:material:1.0.0'
  112. ]
  113. }