build.gradle 3.7 KB

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