茶百道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.

62 lines
1.9 KiB

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