build.gradle 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. // opti_20250422_001 当前快递柜身份编码标识,与管理端配置相同且对应(在打包时,需要配置当前要安装到哪一个快递柜里)
  41. // 福庆1号柜:cab_fq_01
  42. // 前海CW1号柜:cab_qh_cw_01
  43. buildConfigField "String", "CAB_ID_CODE", "\"cab_fq_01\""
  44. // MQTT地址
  45. buildConfigField "String", "EMQX_HOST", "\"tcp://120.78.152.8:1883\""
  46. // 快递柜请求管理端ICSP地址
  47. buildConfigField "String", "ICSP_HOST", "\"http://icsp-api.ds-bay.com\""
  48. signingConfig signingConfigs.release
  49. }
  50. debug {
  51. minifyEnabled true
  52. shrinkResources true
  53. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  54. // opti_20250422_001 当前快递柜身份编码标识,与管理端配置相同且对应(在打包时,需要配置正确)
  55. // 福庆1号柜:cab_fq_01
  56. // 前海CW1号柜:cab_qh_cw_01
  57. buildConfigField "String", "CAB_ID_CODE", "\"cab_fq_01\""
  58. // MQTT地址
  59. buildConfigField "String", "EMQX_HOST", "\"tcp://183.3.221.143:1883\""
  60. // 快递柜请求管理端ICSP地址
  61. buildConfigField "String", "ICSP_HOST", "\"http://icsp-testend.ds-bay.com\""
  62. //buildConfigField "String", "ICSP_HOST", "\"http://vz2x2s.natappfree.cc\""
  63. signingConfig signingConfigs.debug
  64. }
  65. }
  66. compileOptions {
  67. sourceCompatibility 1.8
  68. targetCompatibility 1.8
  69. }
  70. buildFeatures {
  71. viewBinding true
  72. }
  73. }
  74. dependencies {
  75. implementation 'androidx.appcompat:appcompat:1.2.0'
  76. implementation 'com.google.android.material:material:1.2.1'
  77. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  78. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  79. implementation 'androidx.navigation:navigation-ui:2.3.0'
  80. implementation 'androidx.annotation:annotation:1.1.0'
  81. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
  82. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  83. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  84. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  85. implementation fileTree(dir: "libs", include: ["*.jar"])
  86. implementation fileTree(dir: "libs", include: ["*.aar"])
  87. implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.5'
  88. implementation 'com.fasterxml.jackson.core:jackson-core:2.10.5'
  89. implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.5'
  90. implementation 'com.squareup.okhttp3:okhttp:4.4.0'
  91. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  92. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  93. implementation "org.permissionsdispatcher:permissionsdispatcher:4.3.1"//权限
  94. annotationProcessor "org.permissionsdispatcher:permissionsdispatcher-processor:4.3.1"//权限
  95. implementation 'com.github.xuexiangjys:XUpdate:2.0.7'
  96. implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-downloader-aria:1.0.0'
  97. implementation 'com.google.code.gson:gson:2.8.6'
  98. implementation 'com.github.xuexiangjys.XUpdateAPI:xupdate-easy:1.0.0'
  99. implementation 'com.zhy:okhttputils:2.6.2'
  100. // implementation "com.iwdael:carouselbanner:$version"
  101. implementation 'com.hacknife:carouselbanner:1.1.2'
  102. //implementation 'com.hacknife:carouselbanner:version'
  103. implementation 'com.github.bumptech.glide:glide:4.12.0'
  104. //annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  105. //noinspection GradleCompatible,GradleCompatible
  106. //implementation 'com.android.support:support-v4:28.0.0'
  107. testImplementation 'junit:junit:4.12'
  108. //implementation files('libs/moterndevicecontroller.aar')
  109. implementation files('libs/moterndevicecontroller2-release.aar')
  110. }