build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. }
  27. dataBinding {
  28. enabled true
  29. }
  30. buildTypes {
  31. release {
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. //
  35. debuggable true
  36. signingConfig signingConfigs.release
  37. }
  38. //以下配置记得添加!
  39. debug {
  40. signingConfig signingConfigs.release
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility = 1.8
  45. targetCompatibility = 1.8
  46. }
  47. }
  48. dependencies {
  49. implementation fileTree(include: ['*.jar'], dir: 'libs')
  50. implementation 'com.android.support:appcompat-v7:28.0.0'
  51. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  52. testImplementation 'junit:junit:4.12'
  53. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  54. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  55. implementation project(':mvvmhabit')
  56. implementation 'com.aliyun.alink.linksdk:iot-linkkit:1.6.6'
  57. implementation 'com.github.mik3y:usb-serial-for-android:2.1.0'
  58. //内存泄漏测试
  59. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.2'
  60. debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.2'
  61. implementation 'com.github.maybesix:Android-XHLibrary:v1.0.0'
  62. implementation 'com.tencent.bugly:crashreport:3.1.0'
  63. }