build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. // buildToolsVersion '26.0.2'
  5. publishNonDefault true
  6. defaultConfig {
  7. minSdkVersion 22
  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. repositories {
  40. flatDir {
  41. dirs 'libs'
  42. }
  43. }
  44. }
  45. dependencies {
  46. // compile fileTree(include: ['*.jar'], dir: 'libs')
  47. compileOnly fileTree(include: ['*.jar'], dir: 'libs')
  48. // implementation 'org.jetbrains:annotations-java5:15.0'
  49. compile files('libs/orbbec_module-debug.aar')
  50. compile files('libs/ImiSDK.aar')
  51. compile files('libs/deptrumSDK.aar')
  52. compile files('libs/opencv.aar')
  53. compile files('libs/FaceSDK_8.1_20230216-release.aar')
  54. // api files('libs/orbbec_module-debug.aar')
  55. // api files('libs/ImiSDK.aar')
  56. // api files('libs/deptrumSDK.aar')
  57. // api files('libs/opencv.aar')
  58. // api files('libs/FaceSDK_8.1_20230216-release.aar')
  59. // implementation fileTree(include: ['*.jar'], dir: 'libs')
  60. // implementation(name: 'orbbec_module-debug', ext: 'aar')
  61. // implementation(name: 'ImiSDK', ext: 'aar')
  62. // implementation(name: 'deptrumSDK', ext: 'aar')
  63. // implementation(name: 'opencv', ext: 'aar')
  64. // implementation(name: 'FaceSDK_8.1_20230216-release', ext: 'aar')
  65. // implementation(name: 'orbbec_module-debug', ext: 'aar')
  66. // implementation(name: 'ImiSDK', ext: 'aar')
  67. // implementation(name: 'deptrumSDK', ext: 'aar')
  68. // implementation(name: 'opencv', ext: 'aar')
  69. // implementation(name: 'FaceSDK_8.1_20230216-release', ext: 'aar')
  70. }