build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. println(project.getName())
  2. if (isModule.toBoolean()) {
  3. apply plugin: 'com.android.application'
  4. } else {
  5. apply plugin: 'com.android.library'
  6. }
  7. android {
  8. signingConfigs {
  9. debug {
  10. keyAlias 'hboxs_debug'
  11. keyPassword 'android'
  12. storeFile file('../hboxs_debug.jks')
  13. storePassword 'android'
  14. }
  15. release {
  16. keyAlias 'hboxs'
  17. keyPassword 'android'
  18. storeFile file('../hboxs.jks')
  19. storePassword 'android'
  20. }
  21. }
  22. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  23. defaultConfig {
  24. minSdkVersion rootProject.ext.android["minSdkVersion"]
  25. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  26. versionCode rootProject.ext.android["versionCode"]
  27. versionName rootProject.ext.android["versionName"]
  28. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  29. javaCompileOptions {
  30. annotationProcessorOptions {
  31. arguments = [ moduleName : project.getName() ]
  32. }
  33. }
  34. }
  35. compileOptions {
  36. sourceCompatibility JavaVersion.VERSION_1_8
  37. targetCompatibility JavaVersion.VERSION_1_8
  38. }
  39. sourceSets {
  40. main {
  41. if (isModule.toBoolean()) {
  42. manifest.srcFile 'src/main/module/AndroidManifest.xml'
  43. } else {
  44. manifest.srcFile 'src/main/AndroidManifest.xml'
  45. //集成开发模式下排除debug文件夹中的所有Java文件
  46. java {
  47. exclude 'debug/**'
  48. }
  49. }
  50. }
  51. }
  52. buildTypes {
  53. release {
  54. minifyEnabled false
  55. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  56. }
  57. }
  58. // lintOptions {
  59. // checkReleaseBuilds false
  60. // // 如果你希望在 release 版本中继续检查错误,但继续构建即使出现错误,可以将 abortOnError 设置为 false
  61. // // abortOnError false
  62. // }
  63. sourceSets {
  64. main {
  65. jniLibs.srcDirs = ['libs']
  66. }
  67. }
  68. dataBinding {
  69. enabled true
  70. }
  71. }
  72. dependencies {
  73. implementation fileTree(include: ['*.jar'], dir: 'libs')
  74. implementation rootProject.ext.dependencies["appcompat-v7"]
  75. implementation rootProject.ext.dependencies["constraint-layout"]
  76. testImplementation rootProject.ext.dependencies["junit"]
  77. implementation project(':BaseLibrary')
  78. implementation project(':module_offpay')
  79. androidTestImplementation rootProject.ext.dependencies["runner"]
  80. androidTestImplementation rootProject.ext.dependencies["espresso"]
  81. annotationProcessor 'com.alibaba:arouter-compiler:1.1.4'
  82. implementation project(':wifilibrary')
  83. implementation project(path: ':lm-library')
  84. implementation 'com.inuker.bluetooth:library:1.4.0'
  85. implementation rootProject.ext.dependencies["spinner"]
  86. api 'com.github.iammert:MaterialIntroView:1.6.0'
  87. implementation project(':module_plc')
  88. }