build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  6. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  7. defaultConfig {
  8. minSdkVersion 16
  9. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles 'consumer-rules.pro'
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  19. }
  20. debug {
  21. jniDebuggable true
  22. debuggable true
  23. }
  24. yufabu {
  25. jniDebuggable true
  26. debuggable true
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. sourceSets.main {
  34. jni.srcDirs = []//disable automatic ndk-build call
  35. jniLibs.srcDirs = ['libs']
  36. }
  37. }
  38. dependencies {
  39. implementation 'androidx.appcompat:appcompat:1.1.0'
  40. implementation 'com.google.android.material:material:1.1.0'
  41. testImplementation 'junit:junit:4.+'
  42. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  43. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  44. // usb串口通信
  45. implementation 'com.github.felHR85:UsbSerial:4.5.2'
  46. // 添加依赖
  47. // implementation project(path: ':lib_arome')
  48. implementation project(path: ':lib_base')
  49. }