build.gradle 4.2 KB

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