build.gradle 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. compileOptions {
  51. targetCompatibility JavaVersion.VERSION_1_8
  52. sourceCompatibility JavaVersion.VERSION_1_8
  53. }
  54. }
  55. dependencies {
  56. implementation fileTree(dir: 'libs', include: ['*.jar'])
  57. implementation 'com.android.support.constraint:constraint-layout:1.1.2'
  58. testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: JUNIT_VERSION
  59. androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
  60. exclude group: 'com.android.support', module: 'support-annotations'
  61. })
  62. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  63. // kotlin 依赖
  64. implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: KOTLIN_VERSION
  65. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  66. // android支持
  67. implementation group: 'com.android.support', name: 'appcompat-v7', version: ANDROID_SUPPORT_VERSION
  68. implementation group: 'com.android.support', name: 'design', version: ANDROID_SUPPORT_VERSION
  69. implementation group: 'com.android.support', name: 'support-v4', version: ANDROID_SUPPORT_VERSION
  70. implementation group: 'com.android.support.constraint', name: 'constraint-layout', version: CONSTRAINT_VERSION
  71. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  72. // anko依赖
  73. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-commons
  74. implementation group: 'org.jetbrains.anko', name: 'anko-commons', version: ANKO_VERSION
  75. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  76. // 图片加载框架
  77. // https://mvnrepository.com/artifact/com.squareup.picasso/picasso
  78. implementation group: 'com.squareup.picasso', name: 'picasso', version: PICASSO_VERSION
  79. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  80. // anko依赖
  81. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-common
  82. implementation group: 'org.jetbrains.anko', name: 'anko-common', version: ANKO_VERSION
  83. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-sdk25
  84. implementation group: 'org.jetbrains.anko', name: 'anko-sdk25', version: ANKO_VERSION
  85. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-appcompat-v7
  86. implementation group: 'org.jetbrains.anko', name: 'anko-appcompat-v7', version: ANKO_VERSION
  87. // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-design
  88. implementation group: 'org.jetbrains.anko', name: 'anko-design', version: ANKO_VERSION
  89. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  90. // 运行时权限申请
  91. // https://mvnrepository.com/artifact/pub.devrel/easypermissions
  92. implementation group: 'pub.devrel', name: 'easypermissions', version: EASYPERMISSIONS_VERSION
  93. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  94. // // 谷歌JSON解析
  95. // // https://mvnrepository.com/artifact/com.google.code.gson/gson
  96. // implementation group: 'com.google.code.gson', name: 'gson', version: GSON_VERSION
  97. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  98. // JSON解析
  99. // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
  100. implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: JACKSON_VERSION
  101. // https://mvnrepository.com/artifact/org.greenrobot/eventbus
  102. implementation group: 'org.greenrobot', name: 'eventbus', version: EVENTBUS_VERSION
  103. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  104. // https://mvnrepository.com/artifact/javax.persistence/persistence-api
  105. implementation group: "javax.persistence", name: "persistence-api", version: PERSISTENCE_VERSION
  106. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  107. // 二维码与条形码
  108. // https://mvnrepository.com/artifact/com.google.zxing/core
  109. implementation group: 'com.google.zxing', name: 'core', version: ZXING_VERSION
  110. // https://mvnrepository.com/artifact/com.google.zxing/android-core
  111. implementation group: 'com.google.zxing', name: 'android-core', version: ZXING_VERSION
  112. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  113. // Sybotan依赖
  114. implementation group: 'cn.sagacloud', name: 'saga-kotlin-base', version: SAGA_KOTLIN_VERSION
  115. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  116. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  117. implementation project(':sybotan-android-base')
  118. implementation project(':sybotan-android-database')
  119. implementation project(':sybotan-android-devices')
  120. implementation project(':sybotan-android-views')
  121. implementation project(':sybotan-android-graphy')
  122. implementation project(':sybotan-android-works')
  123. implementation project(':cadengine')
  124. }