build.gradle 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. debug {
  5. keyAlias 'hboxs_debug'
  6. keyPassword 'android'
  7. storeFile file('../hboxs_debug.jks')
  8. storePassword 'android'
  9. }
  10. release {
  11. keyAlias 'hboxs'
  12. keyPassword 'android'
  13. storeFile file('../hboxs.jks')
  14. storePassword 'android'
  15. }
  16. }
  17. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  18. defaultConfig {
  19. applicationId "com.sz.popcorn"
  20. minSdkVersion rootProject.ext.android["minSdkVersion"]
  21. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  22. versionCode rootProject.ext.android["versionCode"]
  23. versionName rootProject.ext.android["versionName"]
  24. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  25. useLibrary 'org.apache.http.legacy'
  26. javaCompileOptions {
  27. annotationProcessorOptions {
  28. arguments = [ moduleName : project.getName() ]
  29. }
  30. }
  31. manifestPlaceholders = [
  32. GETUI_APP_ID : "GKa6qa12heALjEXZlAn1U3",
  33. GETUI_APP_KEY : "89WV8dfjRg6RlxEchgmnS6",
  34. GETUI_APP_SECRET: "fLvPjR8hni7VFMkgjh8lx2"
  35. ]
  36. ndk {
  37. abiFilters 'x86','armeabi-v7a'
  38. }
  39. externalNativeBuild {
  40. cmake {
  41. cppFlags ""
  42. }
  43. }
  44. multiDexEnabled true
  45. }
  46. buildTypes {
  47. release {
  48. buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
  49. //Zipalign优化
  50. zipAlignEnabled true
  51. minifyEnabled true
  52. shrinkResources true
  53. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  54. signingConfig signingConfigs.release
  55. }
  56. debug {
  57. signingConfig signingConfigs.release
  58. }
  59. }
  60. dataBinding {
  61. enabled true
  62. }
  63. lintOptions {
  64. abortOnError false
  65. }
  66. android {
  67. compileOptions {
  68. sourceCompatibility JavaVersion.VERSION_1_8
  69. targetCompatibility JavaVersion.VERSION_1_8
  70. }
  71. }
  72. sourceSets {
  73. main {
  74. jniLibs.srcDirs = ['libs']
  75. }
  76. }
  77. externalNativeBuild {
  78. cmake {
  79. path "CMakeLists.txt"
  80. }
  81. }
  82. packagingOptions {
  83. exclude 'META-INF/*'
  84. exclude 'META-INF/NOTICE' // will not include NOTICE file
  85. exclude 'META-INF/LICENSE' // will not include LICENSE file
  86. exclude 'META-INF/INDEX.LIST' // will not include INDEX.LIST file
  87. }
  88. }
  89. dependencies {
  90. implementation fileTree(include: ['*.jar'], dir: 'libs')
  91. implementation rootProject.ext.dependencies["appcompat-v7"]
  92. implementation rootProject.ext.dependencies["constraint-layout"]
  93. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  94. // implementation files('libs\\marshall-java-sdk.jar')
  95. // implementation files('libs\\marshall-java-sdk.main.jar')
  96. // implementation files('libs/marshall-java-sdk.main.jar')
  97. implementation project(path: ':lm-library')
  98. implementation files('libs\\xzjh_interface.jar')
  99. testImplementation rootProject.ext.dependencies["junit"]
  100. androidTestImplementation rootProject.ext.dependencies["runner"]
  101. androidTestImplementation rootProject.ext.dependencies["espresso"]
  102. implementation project(':BaseLibrary')
  103. implementation project(':serialport-api')
  104. implementation rootProject.ext.dependencies["MPAndroidChart"]
  105. implementation rootProject.ext.dependencies["calendarview"]
  106. implementation 'com.getui:sdk:2.13.1.0'
  107. // implementation 'com.getui:sdk-for-google-play:4.3.8.0'
  108. // implementation rootProject.ext.dependencies["zloading"]
  109. implementation files('libs/AMap3DMap_6.7.0_AMapSearch_6.5.0_AMapLocation_4.4.0_20190213.jar')
  110. //implementation project(':LibMarsdaemon')
  111. // implementation 'com.tencent.bugly:crashreport:latest.release'
  112. //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
  113. implementation files('libs/bugly-core-4.1.9.aar')
  114. // implementation 'com.tencent.bugly:nativecrashreport:latest.release'
  115. implementation rootProject.ext.dependencies["filedownloader"]
  116. implementation project(':netmode')
  117. implementation project(':mqttmode')
  118. implementation project(':module_offpay')
  119. androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.0'
  120. // implementation files('libs/android-serialport.jar')
  121. implementation files('libs/jSerialComm-2.4.0.jar')
  122. implementation 'com.android.support:design:28.0.0'
  123. debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
  124. releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
  125. testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
  126. implementation 'com.azhon:serialport:1.0.0'
  127. implementation 'com.rabbitmq:amqp-client:4.12.0'
  128. //mq
  129. implementation 'com.squareup.picasso:picasso:2.5.2'
  130. //静默安装
  131. implementation 'com.github.a-voyager:AutoInstaller:v1.0'
  132. implementation 'net.fredericosilva:showTipsView:1.0.4'
  133. implementation 'com.github.zcweng:switch-button:0.0.3@aar'
  134. annotationProcessor 'com.alibaba:arouter-compiler:1.1.4'
  135. implementation 'com.jakewharton.threetenabp:threetenabp:1.3.1'
  136. if (!isModule.toBoolean()) {
  137. implementation project(':module_background')
  138. implementation project(':module_plc')
  139. }
  140. implementation 'com.github.mik3y:usb-serial-for-android:3.7.0'
  141. }