build.gradle 4.0 KB

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