build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apply plugin: "com.android.library"
  2. android {
  3. compileSdkVersion 32
  4. defaultConfig {
  5. // applicationId "com.synjones.idcardusb_reader"
  6. minSdkVersion 21
  7. targetSdkVersion 22
  8. versionCode 1
  9. versionName "1.0"
  10. ndk {
  11. abiFilters 'armeabi-v7a' //只生成armv7的so
  12. }
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  18. }
  19. debug {
  20. jniDebuggable true
  21. debuggable true
  22. }
  23. yufabu {
  24. jniDebuggable true
  25. debuggable true
  26. }
  27. }
  28. }
  29. dependencies {
  30. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  31. // implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  32. implementation 'com.google.android.material:material:1.1.0'
  33. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  34. // implementation 'com.google.android:support-v4:r7'
  35. testImplementation 'junit:junit:4.+'
  36. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  37. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  38. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  39. implementation 'com.alibaba:fastjson:1.1.55.android'
  40. compile project(':MultiReaderLib')
  41. compile files('libs/SerialPort.jar')
  42. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  43. //EventBus
  44. implementation 'org.greenrobot:eventbus:3.1.1'
  45. implementation 'com.android.support:multidex:1.0.3'
  46. implementation 'androidx.appcompat:appcompat:1.0.2'//1.1.0
  47. implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  48. }