build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. publishNonDefault true
  5. defaultConfig {
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode 2
  9. versionName "2.0"
  10. ndk {
  11. moduleName "facesdk"
  12. ldLibs "log"
  13. abiFilters "armeabi","armeabi-v7a"//, "arm64-v8a"//"x86", "arm64-v8a"
  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. sourceSets {
  27. main {
  28. jniLibs.srcDirs = ['libs']
  29. }
  30. }
  31. buildTypes {
  32. release {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. }
  36. debug {
  37. debuggable true
  38. jniDebuggable true
  39. }
  40. }
  41. }
  42. dependencies {
  43. api fileTree(include: ['*.jar'], dir: 'libs')
  44. // api files('libs/FaceSDK_2.0.0.1.jar')
  45. api project(':modle')
  46. }