build.gradle 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. shrinkResources true
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. buildConfigField "String", "EMQX_HOST", "\"tcp://8.135.102.238:1883\""
  35. buildConfigField "String", "ICSP_HOST", "\"http://icsp-api.ds-bay.com\""
  36. }
  37. debug {
  38. minifyEnabled true
  39. shrinkResources true
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. buildConfigField "String", "EMQX_HOST", "\"tcp://183.3.221.143:1883\""
  42. buildConfigField "String", "ICSP_HOST", "\"http://icsp-testend.ds-bay.com\""
  43. }
  44. }
  45. compileOptions {
  46. sourceCompatibility 1.8
  47. targetCompatibility 1.8
  48. }
  49. buildFeatures {
  50. viewBinding true
  51. }
  52. }
  53. dependencies {
  54. implementation 'androidx.appcompat:appcompat:1.2.0'
  55. implementation 'com.google.android.material:material:1.2.1'
  56. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  57. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  58. implementation 'androidx.navigation:navigation-ui:2.3.0'
  59. implementation 'androidx.annotation:annotation:1.1.0'
  60. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
  61. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  62. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  63. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  64. implementation fileTree(dir: "libs", include: ["*.jar"])
  65. implementation fileTree(dir: "libs", include: ["*.aar"])
  66. implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.5'
  67. implementation 'com.fasterxml.jackson.core:jackson-core:2.10.5'
  68. implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.5'
  69. implementation 'com.squareup.okhttp3:okhttp:4.4.0'
  70. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  71. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  72. implementation "org.permissionsdispatcher:permissionsdispatcher:4.3.1"//权限
  73. annotationProcessor "org.permissionsdispatcher:permissionsdispatcher-processor:4.3.1"//权限
  74. implementation 'com.github.xuexiangjys:XUpdate:2.0.7'
  75. implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-downloader-aria:1.0.0'
  76. implementation 'com.google.code.gson:gson:2.8.6'
  77. implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-easy:1.0.0'
  78. implementation 'com.zhy:okhttputils:2.6.2'
  79. testImplementation 'junit:junit:4.12'
  80. implementation files('libs/moterndevicecontroller.aar')
  81. }