build.gradle 3.1 KB

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