build.gradle 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // ext.kotlin_version = '1.2.30'
  4. repositories {
  5. maven { url "https://jitpack.io" }
  6. mavenCentral()
  7. google()
  8. jcenter()
  9. maven {
  10. url 'https://maven.google.com/'
  11. name 'Google'
  12. }
  13. }
  14. dependencies {
  15. classpath 'com.android.tools.build:gradle:3.6.4'
  16. classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
  17. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  18. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  19. // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  20. // NOTE: Do not place your application dependencies here; they belong
  21. // in the individual module build.gradle files
  22. }
  23. }
  24. allprojects {
  25. repositories {
  26. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  27. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  28. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  29. maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  30. maven { url "https://jitpack.io" }
  31. mavenCentral()
  32. google()
  33. jcenter()
  34. maven {
  35. url 'https://maven.google.com/'
  36. name 'Google'
  37. }
  38. }
  39. }
  40. task clean(type: Delete) {
  41. delete rootProject.buildDir
  42. }
  43. ext {
  44. android = [
  45. minSdkVersion : 16,
  46. targetSdkVersion : 28,
  47. compileSdkVersion: 28,
  48. buildToolsVersion: "28.0.3",
  49. versionCode : 24,
  50. versionName : "v1.1.4"
  51. ]
  52. depsVersion = [
  53. junitVersion : "4.12",
  54. appcompatV7Version : "28.0.0",
  55. stethoVersion : "1.5.0",
  56. fastjsonVersion : "1.2.39",
  57. xUtilsVersion : "2.6.14",
  58. okhttpVersion : "3.9.0",
  59. smartRefreshLayoutVersion : '1.0.5',
  60. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  61. smartTableVersion : '2.2.0',
  62. basePopupVersion : '2.1.5',
  63. permissonVersion : '2.0.0-rc12',
  64. switchViewVersion : "1.0.2",
  65. multiTypeFilePickerVersion : '1.0.8'
  66. ]
  67. deps = [
  68. junit : 'junit:junit:' + depsVersion.junitVersion,
  69. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  70. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  71. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  72. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  73. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  74. switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion,
  75. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  76. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  77. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  78. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion,
  79. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  80. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  81. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  82. MultiTypeFilePicker : 'com.vincent.filepicker:MultiTypeFilePicker:' + depsVersion.multiTypeFilePickerVersion,
  83. ]
  84. }