build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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://maven.google.com" }
  23. maven { url "https://jitpack.io" }
  24. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  25. maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
  26. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  27. maven { url 'http://developer.huawei.com/repo/'}
  28. maven { url "https://dl.bintray.com/rongcloud/maven"}
  29. maven { url "http://maven.rongcloud.cn/repository/maven-releases/"}
  30. maven {
  31. url "http://maven.aliyun.com/nexus/content/groups/public/"
  32. }
  33. maven {
  34. url 'https://maven.aliyun.com/repository/public'
  35. }
  36. maven {
  37. credentials {
  38. username 'pi2gXR'
  39. password 'P0OAhyl2kn'
  40. }
  41. url 'https://repo.rdc.aliyun.com/repository/103033-release-ihyXwu/'
  42. }
  43. maven { url 'https://dl.bintray.com/umsdk/release' }
  44. flatDir {
  45. dirs 'libs'
  46. dirs project(':app').file('libs')
  47. }
  48. }
  49. subprojects {
  50. afterEvaluate {
  51. project ->
  52. if (project.hasProperty("android")) {
  53. android {
  54. compileSdkVersion = rootProject.compileSdkVersion
  55. buildToolsVersion = rootProject.buildToolsVersion
  56. }
  57. }
  58. }
  59. }
  60. }
  61. task clean(type: Delete) {
  62. delete rootProject.buildDir
  63. }
  64. ext {
  65. // Sdk and tools
  66. targetSdkVersion = 28
  67. compileSdkVersion = 28
  68. buildToolsVersion = '28.0.3'
  69. minSdkVersion = 21
  70. androidxVersion = '1.2.0'
  71. androidxConstraintVersion = '2.0.0'
  72. // Google Support
  73. supportLibraryVersion = '28.0.0'
  74. //OK http
  75. okhttpVersion = '3.11.0'
  76. okioVersion = '1.14.0'
  77. loggingInterceptor = "3.4.1"
  78. //glide
  79. glideVersion = '4.9.0'
  80. //butterknife
  81. butterknifeVersion = "10.0.0"
  82. //gson
  83. converterGson = "2.5.0"
  84. //greendao
  85. greendaoVersion = "3.2.2"
  86. greendaoHelperVersion = "1.3.0"
  87. //constraintLayout
  88. constraintLayoutVersion = "1.1.3"
  89. //SmartRefreshLayout
  90. SmartRefreshLayoutVersion = "1.1.0"
  91. //Dialog
  92. sweetalertVersion = "1.3"
  93. //eventbus
  94. eventbusVersion = "3.1.1"
  95. //zxing
  96. zxingVersion = "3.3.3"
  97. //retrofit
  98. retrofit2Version = "2.5.0"
  99. converterScalars = "2.1.0"
  100. adapter2Rxjava = "2.5.0"
  101. //rxjava
  102. rxAndroid2Version = "2.1.1"
  103. rxjava2Version = "2.2.10"
  104. rxpermissions = "0.9.5"
  105. rxlifecycle = "2.2.1"
  106. //ultimatebar
  107. ultimatebarVersion = "1.0.3"
  108. }