build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 28
  6. buildToolsVersion "30.0.3"
  7. signingConfigs {
  8. release {
  9. storeFile file(KEY_PATH)
  10. storePassword KEY_PASS
  11. keyAlias ALIAS_NAME
  12. keyPassword ALIAS_PASS
  13. }
  14. debug {
  15. storeFile file(KEY_PATH)
  16. storePassword KEY_PASS
  17. keyAlias ALIAS_NAME
  18. keyPassword ALIAS_PASS
  19. }
  20. }
  21. defaultConfig {
  22. applicationId "com.emato.ich"
  23. minSdkVersion 28
  24. targetSdkVersion 30
  25. versionCode 1
  26. versionName "1.0"
  27. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  28. }
  29. buildTypes {
  30. release {
  31. minifyEnabled true
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. buildConfigField "String", "EMQX_HOST", "\"tcp://8.135.102.238:1883\""
  34. buildConfigField "String", "ICSP_HOST", "\"http://icsp-api.ds-bay.com\""
  35. }
  36. debug {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. buildConfigField "String", "EMQX_HOST", "\"tcp://183.3.221.143:1883\""
  40. buildConfigField "String", "ICSP_HOST", "\"http://icsp-testend.ds-bay.com\""
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility 1.8
  45. targetCompatibility 1.8
  46. }
  47. buildFeatures {
  48. viewBinding true
  49. }
  50. }
  51. dependencies {
  52. implementation 'androidx.appcompat:appcompat:1.2.0'
  53. implementation 'com.google.android.material:material:1.2.1'
  54. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  55. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  56. implementation 'androidx.navigation:navigation-ui:2.3.0'
  57. implementation 'androidx.annotation:annotation:1.1.0'
  58. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
  59. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  60. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  61. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  62. implementation fileTree(dir: "libs", include: ["*.jar"])
  63. implementation fileTree(dir: "libs", include: ["*.aar"])
  64. implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.5'
  65. implementation 'com.fasterxml.jackson.core:jackson-core:2.10.5'
  66. implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.5'
  67. implementation 'com.squareup.okhttp3:okhttp:4.4.0'
  68. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  69. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  70. implementation "org.permissionsdispatcher:permissionsdispatcher:4.3.1"//权限
  71. annotationProcessor "org.permissionsdispatcher:permissionsdispatcher-processor:4.3.1"//权限
  72. implementation 'com.github.xuexiangjys:XUpdate:2.0.7'
  73. implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-downloader-aria:1.0.0'
  74. implementation 'com.google.code.gson:gson:2.8.6'
  75. implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-easy:1.0.0'
  76. implementation 'com.zhy:okhttputils:2.6.2'
  77. testImplementation 'junit:junit:4.12'
  78. implementation files('libs/moterndevicecontroller.aar')
  79. }