build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  23. implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  24. implementation 'com.google.android.material:material:1.1.0'
  25. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  26. implementation 'com.google.android:support-v4:r7'
  27. testImplementation 'junit:junit:4.+'
  28. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  29. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  30. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  31. implementation 'com.alibaba:fastjson:1.1.55.android'
  32. compile project(':MultiReaderLib')
  33. compile files('libs/SerialPort.jar')
  34. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  35. //EventBus
  36. implementation 'org.greenrobot:eventbus:3.1.1'
  37. implementation 'com.android.support:multidex:1.0.3'
  38. }