build.gradle 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*
  2. * ********************************************************************************************************************
  3. *
  4. * iFHS7.
  5. * ;BBMBMBMc rZMBMBR BMB
  6. * MBEr:;PBM, 7MBMMEOBB: BBB RBW
  7. * XK: BO SB. :SZ MBM. c;; ir BBM :FFr :SSF: ;xBMB:r iuGXv. i:. iF2;
  8. * DBBM0r. :D S7 ;XMBMB GMBMu. MBM: BMB MBMBBBMBMS WMBMBMBBK MBMBMBM BMBRBMBW .MBMBMBMBB
  9. * :JMRMMD .. , 1MMRM1; ;MBMBBR: MBM ;MB: BMB: MBM. RMBr sBMH BM0 UMB, BMB. KMBv
  10. * ;. XOW B1; :uM: 1RE, i .2BMBs rMB. MBO MBO JMB; MBB MBM BBS 7MBMBOBM: MBW :BMc
  11. * OBRJ.SEE MRDOWOR, 3DE:7OBM . ;BMB RMR7BM BMB MBB. BMB ,BMR .BBZ MMB rMB, BMM rMB7
  12. * :FBRO0D0 RKXSXPR. JOKOOMPi BMBSSWBMB; BMBB: MBMB0ZMBMS .BMBOXRBMB MBMDE RBM2;SMBM; MBB xBM2
  13. * iZGE O0SHSPO. uGZ7. sBMBMBDL :BMO OZu:BMBK, rRBMB0; ,EBMB xBMBr:ER. RDU :OO;
  14. * ,BZ, 1D0 RPSFHXR. xWZ .SMr . .BBB
  15. * :0BMRDG RESSSKR. 2WOMBW; BMBMR
  16. * i0BM: SWKHKGO MBDv
  17. * .UB OOGDM. MK, Copyright (c) 2015-2019. 斯伯坦机器人
  18. * , XMW ..
  19. * r All rights reserved.
  20. *
  21. * ********************************************************************************************************************
  22. */
  23. apply plugin: 'com.android.application'
  24. apply plugin: 'kotlin-android'
  25. apply plugin: 'kotlin-android-extensions'
  26. android {
  27. compileSdkVersion ANDROID_SDK_VERSION.toInteger()
  28. buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
  29. defaultConfig {
  30. minSdkVersion ANDROID_MIN_SDK_VERSION.toInteger()
  31. targetSdkVersion ANDROID_SDK_VERSION.toInteger()
  32. versionCode SAGA_CODE.toInteger()
  33. versionName SAGA_ANDROID_VERSION
  34. testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
  35. vectorDrawables.useSupportLibrary = true
  36. }
  37. buildTypes {
  38. release {
  39. // minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  41. }
  42. }
  43. // 解决lint语法检查错误(kotlin语法无法通过lint)
  44. lintOptions {
  45. abortOnError false
  46. }
  47. kotlinOptions {
  48. jvmTarget = JVM_TARGET
  49. }
  50. }
  51. dependencies {
  52. implementation fileTree(dir: 'libs', include: ['*.jar'])
  53. implementation 'com.android.support.constraint:constraint-layout:1.1.2'
  54. testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: JUNIT_VERSION
  55. androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
  56. exclude group: 'com.android.support', module: 'support-annotations'
  57. })
  58. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  59. // kotlin 依赖
  60. implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: KOTLIN_VERSION
  61. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  62. // android支持
  63. implementation group: 'com.android.support', name: 'appcompat-v7', version: ANDROID_SUPPORT_VERSION
  64. implementation group: 'com.android.support', name: 'design', version: ANDROID_SUPPORT_VERSION
  65. implementation group: 'com.android.support', name: 'support-v4', version: ANDROID_SUPPORT_VERSION
  66. implementation group: 'com.android.support.constraint', name: 'constraint-layout', version: CONSTRAINT_VERSION
  67. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  68. // anko依赖
  69. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-commons
  70. implementation group: 'org.jetbrains.anko', name: 'anko-commons', version: ANKO_VERSION
  71. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  72. // 图片加载框架
  73. // https://mvnrepository.com/artifact/com.squareup.picasso/picasso
  74. implementation group: 'com.squareup.picasso', name: 'picasso', version: PICASSO_VERSION
  75. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  76. // anko依赖
  77. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-common
  78. implementation group: 'org.jetbrains.anko', name: 'anko-common', version: ANKO_VERSION
  79. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-sdk25
  80. implementation group: 'org.jetbrains.anko', name: 'anko-sdk25', version: ANKO_VERSION
  81. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-appcompat-v7
  82. implementation group: 'org.jetbrains.anko', name: 'anko-appcompat-v7', version: ANKO_VERSION
  83. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-design
  84. implementation group: 'org.jetbrains.anko', name: 'anko-design', version: ANKO_VERSION
  85. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  86. // 运行时权限申请
  87. // https://mvnrepository.com/artifact/pub.devrel/easypermissions
  88. implementation group: 'pub.devrel', name: 'easypermissions', version: EASYPERMISSIONS_VERSION
  89. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  90. // // 谷歌JSON解析
  91. // // https://mvnrepository.com/artifact/com.google.code.gson/gson
  92. // implementation group: 'com.google.code.gson', name: 'gson', version: GSON_VERSION
  93. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  94. // JSON解析
  95. // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
  96. implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: JACKSON_VERSION
  97. // https://mvnrepository.com/artifact/org.greenrobot/eventbus
  98. implementation group: 'org.greenrobot', name: 'eventbus', version: EVENTBUS_VERSION
  99. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  100. // https://mvnrepository.com/artifact/javax.persistence/persistence-api
  101. implementation group: "javax.persistence", name: "persistence-api", version: PERSISTENCE_VERSION
  102. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  103. // 二维码与条形码
  104. // https://mvnrepository.com/artifact/com.google.zxing/core
  105. implementation group: 'com.google.zxing', name: 'core', version: ZXING_VERSION
  106. // https://mvnrepository.com/artifact/com.google.zxing/android-core
  107. implementation group: 'com.google.zxing', name: 'android-core', version: ZXING_VERSION
  108. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  109. // Sybotan依赖
  110. implementation group: 'cn.sagacloud', name: 'saga-kotlin-base', version: SAGA_KOTLIN_VERSION
  111. implementation project(':sybotan-android-base')
  112. implementation project(':sybotan-android-database')
  113. implementation project(':sybotan-android-devices')
  114. implementation project(':sybotan-android-views')
  115. implementation project(':sybotan-android-graphy')
  116. implementation project(':sybotan-android-works')
  117. }