build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 28
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.emato.ich"
  9. minSdkVersion 28
  10. targetSdkVersion 30
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility 1.8
  23. targetCompatibility 1.8
  24. }
  25. buildFeatures {
  26. viewBinding true
  27. }
  28. }
  29. dependencies {
  30. implementation 'androidx.appcompat:appcompat:1.2.0'
  31. implementation 'com.google.android.material:material:1.2.1'
  32. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  33. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  34. implementation 'androidx.navigation:navigation-ui:2.3.0'
  35. implementation 'androidx.annotation:annotation:1.1.0'
  36. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
  37. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  38. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  39. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  40. implementation fileTree(dir: "libs", include: ["*.jar"])
  41. implementation fileTree(dir: "libs", include: ["*.aar"])
  42. implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.5'
  43. implementation 'com.fasterxml.jackson.core:jackson-core:2.10.5'
  44. implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.5'
  45. implementation 'com.squareup.okhttp3:okhttp:4.0.1'
  46. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  47. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  48. implementation "org.permissionsdispatcher:permissionsdispatcher:4.3.1"//权限
  49. annotationProcessor "org.permissionsdispatcher:permissionsdispatcher-processor:4.3.1"//权限
  50. testImplementation 'junit:junit:4.12'
  51. implementation files('libs/moterndevicecontroller.aar')
  52. }