build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.2.0'
  9. classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0'
  10. classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
  11. classpath 'com.github.jokar:multi-languages.plugin:0.0.8'
  12. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  13. // NOTE: Do not place your application dependencies here; they belong
  14. // in the individual module build.gradle files
  15. }
  16. }
  17. allprojects {
  18. repositories {
  19. google()
  20. jcenter()
  21. mavenCentral()
  22. maven { url "https://jitpack.io" }
  23. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  24. maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
  25. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  26. maven { url 'http://developer.huawei.com/repo/'}
  27. maven { url "https://dl.bintray.com/rongcloud/maven"}
  28. maven { url "http://maven.rongcloud.cn/repository/maven-releases/"}
  29. maven {
  30. url "http://maven.aliyun.com/nexus/content/groups/public/"
  31. }
  32. maven {
  33. url 'https://maven.aliyun.com/repository/public'
  34. }
  35. maven {
  36. credentials {
  37. username 'pi2gXR'
  38. password 'P0OAhyl2kn'
  39. }
  40. url 'https://repo.rdc.aliyun.com/repository/103033-release-ihyXwu/'
  41. }
  42. maven { url 'https://dl.bintray.com/umsdk/release' }
  43. flatDir {
  44. dirs 'libs'
  45. dirs project(':app').file('libs')
  46. }
  47. }
  48. subprojects {
  49. afterEvaluate {
  50. project ->
  51. if (project.hasProperty("android")) {
  52. android {
  53. compileSdkVersion = rootProject.compileSdkVersion
  54. buildToolsVersion = rootProject.buildToolsVersion
  55. }
  56. }
  57. }
  58. }
  59. }
  60. task clean(type: Delete) {
  61. delete rootProject.buildDir
  62. }
  63. ext {
  64. // Sdk and tools
  65. targetSdkVersion = 28
  66. compileSdkVersion = 28
  67. buildToolsVersion = '28.0.3'
  68. minSdkVersion = 21
  69. androidxVersion = '1.2.0'
  70. androidxConstraintVersion = '2.0.0'
  71. // Google Support
  72. supportLibraryVersion = '28.0.0'
  73. //OK http
  74. okhttpVersion = '3.11.0'
  75. okioVersion = '1.14.0'
  76. loggingInterceptor = "3.4.1"
  77. //glide
  78. glideVersion = '4.9.0'
  79. //butterknife
  80. butterknifeVersion = "10.0.0"
  81. //gson
  82. converterGson = "2.5.0"
  83. //greendao
  84. greendaoVersion = "3.2.2"
  85. greendaoHelperVersion = "1.3.0"
  86. //constraintLayout
  87. constraintLayoutVersion = "1.1.3"
  88. //SmartRefreshLayout
  89. SmartRefreshLayoutVersion = "1.1.0"
  90. //Dialog
  91. sweetalertVersion = "1.3"
  92. //eventbus
  93. eventbusVersion = "3.1.1"
  94. //zxing
  95. zxingVersion = "3.3.3"
  96. //retrofit
  97. retrofit2Version = "2.5.0"
  98. converterScalars = "2.1.0"
  99. adapter2Rxjava = "2.5.0"
  100. //rxjava
  101. rxAndroid2Version = "2.1.1"
  102. rxjava2Version = "2.2.10"
  103. rxpermissions = "0.9.5"
  104. rxlifecycle = "2.2.1"
  105. //ultimatebar
  106. ultimatebarVersion = "1.0.3"
  107. }