build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'com.android.library'
  2. android {
  3. namespace 'com.baidu.idl.main.facesdk'
  4. compileSdkVersion 29
  5. // buildToolsVersion '26.0.2'
  6. publishNonDefault true
  7. defaultConfig {
  8. minSdkVersion 22
  9. targetSdkVersion 29
  10. versionCode 5
  11. versionName "5.0"
  12. ndk {
  13. moduleName "facesdk"
  14. ldLibs "log"
  15. abiFilters "armeabi-v7a"
  16. }
  17. }
  18. /*
  19. sourceSets.main {
  20. jni.srcDirs "src/main/jni"
  21. jniLibs.srcDir "libs"
  22. }
  23. */
  24. sourceSets.main {
  25. jni.srcDirs = []
  26. jniLibs.srcDir "libs"
  27. }
  28. buildTypes {
  29. release {
  30. minifyEnabled false
  31. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  32. // buildConfigField 'boolean', 'USE_AIKL', 'true'
  33. }
  34. debug {
  35. debuggable true
  36. // jniDebuggable true
  37. // buildConfigField 'boolean', 'USE_AIKL', 'true'
  38. }
  39. }
  40. packagingOptions {
  41. pickFirst 'lib/x86/libc++_shared.so'
  42. pickFirst 'lib/x86_64/libc++_shared.so'
  43. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  44. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  45. }
  46. }
  47. dependencies {
  48. // implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
  49. // api 'org.jetbrains:annotations-java5:15.0'
  50. api(name:'ImiSDK', ext: 'aar')
  51. api(name:'orbbec_module-debug', ext: 'aar')
  52. api(name:'deptrumSDK', ext: 'aar')
  53. api(name:'opencv', ext: 'aar')
  54. api(name:'FaceSDK_8.1_20230216-release', ext: 'aar')
  55. /* implementation files('libs/orbbec_module-debug.aar')
  56. implementation files('libs/ImiSDK.aar')
  57. implementation files('libs/deptrumSDK.aar')
  58. implementation files('libs/opencv.aar')
  59. implementation files('libs/FaceSDK_8.1_20230216-release.aar')*/
  60. }