build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 31
  6. defaultConfig {
  7. applicationId "com.rms.agv"
  8. minSdk 27
  9. targetSdk 31
  10. versionCode 17
  11. versionName "1.2.7"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_11
  22. targetCompatibility JavaVersion.VERSION_11
  23. }
  24. viewBinding {
  25. enabled = true
  26. }
  27. dataBinding {
  28. enabled = true
  29. }
  30. sourceSets.main {
  31. jni.srcDirs = []//禁用as自动生成mk
  32. jniLibs.srcDirs = ['libs', 'src/main/jniLibs'] //指定libs目录
  33. }
  34. }
  35. dependencies {
  36. implementation fileTree(dir: "libs", include: ["*.jar"])
  37. implementation 'androidx.appcompat:appcompat:1.3.0'
  38. implementation 'com.google.android.material:material:1.4.0'
  39. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  40. testImplementation 'junit:junit:4.13.2'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  43. implementation 'org.xutils:xutils:3.4.0'
  44. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
  45. implementation "org.greenrobot:eventbus:3.2.0"
  46. implementation 'com.google.code.gson:gson:2.8.6'
  47. implementation project(path: ':barcode')
  48. }