build.gradle 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. release {
  5. // keyAlias 'key1'
  6. // keyPassword 'fir0414'
  7. // storePassword 'fir0414'
  8. // storeFile file('\\recycle.jks')
  9. keyAlias 'box.keystore'
  10. keyPassword '159753'
  11. storePassword '159753'
  12. storeFile file('\\box.keystore')
  13. }
  14. debug {
  15. keyAlias 'box.keystore'
  16. keyPassword '159753'
  17. storePassword '159753'
  18. storeFile file('\\box.keystore')
  19. }
  20. }
  21. compileSdkVersion 28
  22. defaultConfig {
  23. applicationId "com.siwei.recyclebox"
  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. ndk {
  30. // 设置支持的SO库架构 注意如果是虚拟机使用的话需要吧x86加上去 否则无法运行的
  31. abiFilters 'armeabi' //, ‘x86’, ‘armeabi-v7a’, ‘x86_64’, ‘arm64-v8a’}
  32. }
  33. }
  34. dataBinding {
  35. enabled true
  36. }
  37. buildTypes {
  38. release {
  39. minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. //
  42. debuggable true
  43. signingConfig signingConfigs.release
  44. }
  45. //以下配置记得添加!
  46. debug {
  47. signingConfig signingConfigs.release
  48. }
  49. }
  50. packagingOptions {
  51. exclude 'META-INF/DEPENDENCIES'
  52. exclude 'META-INF/NOTICE'
  53. exclude 'META-INF/LICENSE'
  54. exclude 'META-INF/LICENSE.txt'
  55. exclude 'META-INF/NOTICE.txt'
  56. }
  57. compileOptions {
  58. sourceCompatibility = 1.8
  59. targetCompatibility = 1.8
  60. }
  61. sourceSets { main { jni.srcDirs = ['src/main/jni', 'src/main/jni/2'] } }
  62. }
  63. dependencies {
  64. implementation fileTree(include: ['*.jar'], dir: 'libs')
  65. implementation 'com.android.support:appcompat-v7:28.0.0'
  66. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  67. testImplementation 'junit:junit:4.12'
  68. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  69. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  70. implementation project(':mvvmhabit')
  71. implementation 'com.aliyun.alink.linksdk:iot-linkkit:1.6.6'
  72. implementation 'com.github.mik3y:usb-serial-for-android:2.1.0'
  73. //内存泄漏测试
  74. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.2'
  75. debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.2'
  76. // implementation 'com.github.maybesix:Android-XHLibrary:v1.0.0'
  77. implementation 'com.tencent.bugly:crashreport:3.1.0'
  78. implementation 'com.tencent.bugly:nativecrashreport:latest.release'
  79. implementation 'com.aliyun:aliyun-java-sdk-core:4.0.6'
  80. implementation 'javax.xml.bind:jaxb-api:2.3.0'
  81. implementation 'com.sun.xml.bind:jaxb-core:2.3.0'
  82. implementation 'com.sun.xml.bind:jaxb-impl:2.3.0'
  83. implementation 'com.aliyun:aliyun-java-sdk-dysmsapi:1.1.0'
  84. implementation 'com.squareup.okhttp3:okhttp:3.10.0'
  85. implementation 'com.zhy:okhttputils:2.6.2'
  86. // compile group: 'xerces', name: 'xercesImpl', version: '2.12.0'
  87. // implementation files('src/main/libs//aliyun-java-sdk-core-4.1.0.jar')
  88. // implementation files('src/main/libs/aliyun-java-sdk-dysmsapi-1.0.0.jar')
  89. implementation files('libs/AMap.jar')
  90. implementation ('tp.xmaihh:serialport:2.1')
  91. }