build.gradle 1.3 KB

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