build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. publishNonDefault true
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 30
  8. versionCode 5
  9. versionName "5.0"
  10. ndk {
  11. moduleName "facesdk"
  12. ldLibs "log"
  13. abiFilters "armeabi-v7a"
  14. }
  15. }
  16. /*
  17. sourceSets.main {
  18. jni.srcDirs "src/main/jni"
  19. jniLibs.srcDir "libs"
  20. }
  21. */
  22. sourceSets.main {
  23. jni.srcDirs = []
  24. jniLibs.srcDir "libs"
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  30. buildConfigField 'boolean', 'USE_AIKL', 'true'
  31. }
  32. debug {
  33. debuggable true
  34. jniDebuggable true
  35. buildConfigField 'boolean', 'USE_AIKL', 'true'
  36. }
  37. }
  38. }
  39. dependencies {
  40. implementation files('libs/liantian.jar')
  41. compile fileTree(include: ['*.jar'], dir: 'libs')
  42. implementation 'org.jetbrains:annotations-java5:15.0'
  43. compile files('libs/orbbec_module-debug.aar')
  44. implementation files('libs/FaceSDK.jar')
  45. implementation files('libs/bd_unifylicense.jar')
  46. }