build.gradle 4.2 KB

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