build.gradle 3.4 KB

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