build.gradle 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import sun.security.krb5.internal.crypto.Des
  2. // 万利达、高登
  3. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  4. buildscript {
  5. repositories {
  6. google()
  7. jcenter()
  8. maven {
  9. url 'https://maven.google.com/'
  10. name 'Google'
  11. }
  12. }
  13. dependencies {
  14. classpath 'com.android.tools.build:gradle:3.1.3'
  15. classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  16. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
  17. // classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.13'
  18. // NOTE: Do not place your application dependencies here; they belong
  19. // in the individual module build.gradle files
  20. }
  21. }
  22. allprojects {
  23. repositories {
  24. google()
  25. jcenter()
  26. maven {
  27. url 'https://maven.google.com/'
  28. name 'Google'
  29. }
  30. maven { url "https://jitpack.io" }
  31. }
  32. }
  33. task clean(type: Delete) {
  34. delete rootProject.buildDir
  35. }
  36. ext {
  37. android = [
  38. minSdkVersion : 16,
  39. targetSdkVersion : 28,
  40. compileSdkVersion: 28,
  41. buildToolsVersion: "28.0.3",
  42. versionCode : 2,
  43. versionName : "v1.2"
  44. ]
  45. depsVersion = [
  46. junitVersion : "4.12",
  47. appcompatV7Version : "28.0.0",
  48. stethoVersion : "1.5.0",
  49. fastjsonVersion : "1.2.39",
  50. xUtilsVersion : "2.6.14",
  51. okhttpVersion : "3.9.0",
  52. switchViewVersion : "1.0.2",
  53. smartRefreshLayoutVersion : '1.0.5',
  54. BaseRecyclerViewAdapterHelperVersion: '2.9.30',
  55. permissonVersion : '2.0.0-rc12',
  56. basePopupVersion : '2.1.5',
  57. basePopupVersion : '2.1.5'
  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. recyclerview : 'com.android.support:recyclerview-v7:' + depsVersion.appcompatV7Version,
  71. permisson : 'com.yanzhenjie:permission:' + depsVersion.permissonVersion,
  72. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion,
  73. basePopup : 'com.github.razerdp:BasePopup:' + depsVersion.basePopupVersion
  74. ]
  75. }