build.gradle 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. //apply plugin: 'com.enation.javashop.aspectjrt'
  6. kapt {
  7. arguments {
  8. arg("moduleName", project.getName())
  9. }
  10. }
  11. android {
  12. signingConfigs {
  13. release {
  14. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  15. storePassword "111111"
  16. keyAlias "rk3128"
  17. keyPassword "111111"
  18. }
  19. debug {
  20. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  21. storePassword "111111"
  22. keyAlias "rk3128"
  23. keyPassword "111111"
  24. }
  25. }
  26. compileSdkVersion target_sdk_version
  27. buildToolsVersion build_tools_version
  28. aaptOptions.cruncherEnabled = false
  29. aaptOptions.useNewCruncher = false
  30. aaptOptions.noCompress("mp3","wav", "apk")
  31. defaultConfig {
  32. applicationId "com.wdkl.app.ncs.nursehost"
  33. minSdkVersion min_sdk_version
  34. targetSdkVersion target_sdk_version
  35. versionCode app_version_code
  36. versionName app_version
  37. multiDexEnabled true
  38. dataBinding {
  39. enabled = true
  40. }
  41. ndk {
  42. //选择要添加的对应cpu类型的.so库。
  43. //abiFilters 'armeabi', 'armeabi-v7a', 'armeabi-v8a' ,'x86', 'x86_64', 'mips', 'mips64'
  44. abiFilters 'armeabi-v7a', 'armeabi-v8a'
  45. }
  46. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  47. }
  48. buildTypes {
  49. release {
  50. signingConfig signingConfigs.release
  51. minifyEnabled false
  52. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  53. }
  54. debug {
  55. signingConfig signingConfigs.debug
  56. minifyEnabled false
  57. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  58. }
  59. }
  60. sourceSets {
  61. main.java.srcDirs += 'src/main/code'
  62. }
  63. lintOptions{
  64. checkReleaseBuilds false
  65. abortOnError false
  66. }
  67. dexOptions {
  68. javaMaxHeapSize "4g"
  69. jumboMode=true
  70. preDexLibraries=true
  71. threadCount=8
  72. }
  73. compileOptions {
  74. sourceCompatibility JavaVersion.VERSION_1_8
  75. targetCompatibility JavaVersion.VERSION_1_8
  76. }
  77. }
  78. dependencies {
  79. //compile fileTree(include: ['*.jar'], dir: 'libs')
  80. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  81. exclude group: 'com.android.support', module: 'support-annotations'
  82. })
  83. /**
  84. * 单元测试
  85. */
  86. testCompile 'junit:junit:4.12'
  87. /**
  88. * Dagger编译依赖
  89. */
  90. kapt 'com.google.dagger:dagger-compiler:2.7'
  91. /**
  92. * 内存泄漏监控
  93. */
  94. //debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
  95. //releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
  96. //testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
  97. // debugImplementation because LeakCanary should only run in debug builds.
  98. //debugImplementation ('com.squareup.leakcanary:leakcanary-android:2.4') {
  99. // exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib'
  100. //}
  101. /**
  102. * Kotlin依赖
  103. */
  104. kapt 'com.android.databinding:compiler:2.3.3'
  105. /**
  106. * 路由注解处理器
  107. */
  108. kapt "com.enation.geamtear:jrouter-compiler:$router_version"
  109. /**
  110. * 外部化Moudle配置
  111. * moudle独立编译配置
  112. */
  113. if (!componentTag) {
  114. compile project(':welcome') // ===> 开始模块 建议在模块内添加广告 欢迎页 等页面
  115. //compile project(':home') // ===> 主页模块 里面一般是App的首页 分类楼层页面
  116. //compile project(':shop') // ===> 店铺模块 店铺列表 详细 等
  117. //compile project(':setting') // ===> 设置模块 设置 缓存 App分享等
  118. compile project(':extra') // ===> 额外的一些页面 比如二维码扫描等一些附加功能
  119. //compile project(':hello')
  120. compile project(':nursehome')
  121. }
  122. /**
  123. * JavaShopAndroid 中间件依赖库
  124. */
  125. compile project(':middleware')
  126. /**
  127. * constraint-layout布局依赖
  128. */
  129. compile 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
  130. //compile project(':starRTC')
  131. }
  132. ///**
  133. // * kawo组件化框架配置
  134. // */
  135. //kawo {
  136. // /**
  137. // * Aop注解排除Jar
  138. // */
  139. // aspectExcludeJarFilter 'com.enation.geamtear.pay','AlipaySdk'
  140. //}
  141. //