茶百道Android程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.6 KiB

  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.example.bpa'
  6. compileSdk 33
  7. dataBinding {
  8. enabled = true
  9. }
  10. defaultConfig {
  11. applicationId "com.example.bpa"
  12. minSdk 23
  13. targetSdk 33
  14. versionCode 1
  15. versionName "1.0"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. buildFeatures {
  29. viewBinding true
  30. }
  31. sourceSets {
  32. main {
  33. res.srcDirs = [
  34. 'src/main/res/layout/datatab',
  35. 'src/main/res/layout/from',
  36. 'src/main/res/layout/item',
  37. 'src/main/res/layout/toast',
  38. 'src/main/res/layout/Dialog',
  39. 'src/main/res/layout',
  40. 'src/main/res'
  41. ]
  42. }
  43. }
  44. }
  45. dependencies {
  46. implementation 'com.github.licheedev:Modbus4Android:2.0.2'
  47. implementation 'androidx.appcompat:appcompat:1.6.1'
  48. implementation 'com.google.android.material:material:1.5.0'
  49. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  50. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  51. implementation 'com.google.android.libraries.places:places:2.5.0'
  52. implementation files('libs\\org.eclipse.paho.android.service-1.1.1.jar')
  53. implementation files('libs\\org.eclipse.paho.client.mqttv3-1.2.5.jar')
  54. testImplementation 'junit:junit:4.13.2'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  57. implementation 'com.qmuiteam:qmui:2.0.0-alpha10' //腾讯ui包
  58. implementation("com.iqiyi.xcrash:xcrash-android-lib:3.1.0") //爱奇艺捕获异常插件
  59. // implementation files('libs\\gson-2.2.2.jar')
  60. implementation files('libs\\sdkapi.jar')
  61. compileOnly files('libs/sdkapi.jar')
  62. implementation files('libs/modbus4Android-1.2.jar')
  63. implementation 'com.contrarywind:Android-PickerView:3.2.6'
  64. implementation 'com.github.Ccapton:Android-ColorfulProgressBar:1.0.5'
  65. // implementation 'androidx.databinding:databinding-runtime:4.1.4'
  66. // implementation 'androidx.appcompat:appcompat:1.3.1'
  67. // implementation 'androidx.core:core-ktx:1.6.0'
  68. // implementation 'androidx.databinding:databinding-runtime:4.3.1'
  69. }