build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. buildscript {
  2. /**
  3. * Kotlin统一版本
  4. */
  5. ext.kotlin_version = '1.3.21'
  6. /**
  7. * Aop编制版本
  8. */
  9. ext.aspectj_version = '1.8.9'
  10. /**
  11. * 是否开启单独Module编译
  12. */
  13. ext.componentTag = false
  14. /**
  15. * 路由注解处理器版本
  16. */
  17. ext.router_version = '1.0.2'
  18. /**
  19. * kawo组件化框架版本
  20. */
  21. ext.kawo_version = '1.0.9'
  22. /**
  23. * SDK最小支持版本
  24. */
  25. ext.min_sdk_version = 22
  26. /**
  27. * SDK目标支持版本
  28. */
  29. ext.target_sdk_version = 28
  30. /**
  31. * SDK编译版本
  32. */
  33. ext.build_tools_version = "26.0.2"
  34. /**
  35. * 支持库版本
  36. */
  37. ext.support_library_version = "26.0.1"
  38. ext.app_device_type = "v_h10_yld_1h"
  39. if (app_device_type == "v_h8_ke_1h") {
  40. //卡尔8寸,中兴8寸,新豪格10寸,卡尔10寸,大朝华15.6寸
  41. ext.app_version_code = 24
  42. ext.app_version = "1.1.14"
  43. }
  44. else if (app_device_type == "v_h10_yld_1h") {
  45. //亿莱顿10寸探视机
  46. ext.app_version_code = 18
  47. ext.app_version = "1.1.8"
  48. }
  49. else {
  50. ext.app_version_code = 48
  51. ext.app_version = "1.1.34"
  52. }
  53. /**
  54. * 项目依赖库
  55. */
  56. dependencies {
  57. repositories {
  58. /**
  59. * 依赖仓储
  60. */
  61. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  62. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  63. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  64. maven { url 'https://jitpack.io' }
  65. }
  66. /**
  67. * Gradle插件
  68. */
  69. classpath 'com.android.tools.build:gradle:3.0.1'
  70. /**
  71. * Kawo组件化插件
  72. */
  73. classpath "com.enation.geamtear.gradle:kawo:$kawo_version"
  74. /**
  75. * KotlinGradle插件
  76. */
  77. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  78. /**
  79. * Kotlin辅助工具
  80. */
  81. classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
  82. /**
  83. * Aop埋点相关
  84. */
  85. classpath "org.aspectj:aspectjtools:$aspectj_version"
  86. }
  87. repositories {
  88. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  89. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  90. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  91. maven { url 'https://jitpack.io' }
  92. }
  93. }
  94. /**
  95. * 统一依赖仓储
  96. */
  97. allprojects {
  98. repositories {
  99. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  100. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  101. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  102. maven { url 'https://jitpack.io' }
  103. //maven { url 'https://dl.bintray.com/geamtear/maven' }
  104. }
  105. tasks.withType(Javadoc) { // 新增
  106. options.addStringOption('Xdoclint:none', '-quiet')
  107. options.addStringOption('encoding', 'UTF-8')
  108. }
  109. }
  110. /**
  111. * 清除Build配置时 删除根目录Build文件夹
  112. */
  113. task clean(type: Delete) {
  114. delete rootProject.buildDir
  115. }