build.gradle 3.6 KB

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