build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // 万利达、高登
  2. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  3. buildscript {
  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:4.2.1'
  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 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.13'
  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 : 10,
  42. versionName : "v1.0"
  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. switchViewVersion : "1.0.2",
  52. smartRefreshLayoutVersion : '1.0.5',
  53. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  54. permissonVersion : '2.0.0-rc12',
  55. basePopupVersion : '2.1.5',
  56. smartTableVersion : '2.2.0'
  57. ]
  58. deps = [
  59. junit : 'junit:junit:' + depsVersion.junitVersion,
  60. appcompatV7 : 'com.android.support:appcompat-v7:' + depsVersion.appcompatV7Version,
  61. stetho : 'com.facebook.stetho:stetho:' + depsVersion.stethoVersion,
  62. fastjson : 'com.alibaba:fastjson:' + depsVersion.fastjsonVersion,
  63. xUtils : 'com.jiechic.library:xUtils:' + depsVersion.xUtilsVersion,
  64. okhttp : 'com.squareup.okhttp3:okhttp:' + depsVersion.okhttpVersion,
  65. switchView : 'com.github.luongvo:iOS-SwitchView:' + depsVersion.switchViewVersion,
  66. smartRefreshLayout : 'com.scwang.smartrefresh:SmartRefreshLayout:' + depsVersion.smartRefreshLayoutVersion,
  67. smartRefreshHeader : 'com.scwang.smartrefresh:SmartRefreshHeader:' + depsVersion.smartRefreshLayoutVersion,
  68. BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:' + depsVersion.BaseRecyclerViewAdapterHelperVersion,
  69. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  70. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  71. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  72. smartTable : 'com.github.huangyanbin:SmartTable:' + depsVersion.smartTableVersion
  73. ]
  74. }