build.gradle 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.github.dcendents.android-maven'
  3. group='com.github.pqpo'
  4. android {
  5. compileSdkVersion 29
  6. defaultConfig {
  7. minSdkVersion 21
  8. targetSdkVersion 29
  9. versionCode 10
  10. versionName "2.1.4"
  11. externalNativeBuild {
  12. cmake {
  13. cppFlags "-std=c++11 -frtti -fexceptions"
  14. abiFilters 'armeabi-v7a', "arm64-v8a"
  15. arguments "-DANDROID_TOOLCHAIN=clang", "-DANDROID_STL=c++_static"
  16. }
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. externalNativeBuild {
  26. cmake {
  27. path "CMakeLists.txt"
  28. }
  29. }
  30. lintOptions {
  31. abortOnError false
  32. }
  33. }
  34. dependencies {
  35. api fileTree(dir: 'libs', include: ['*.jar'])
  36. api 'org.tensorflow:tensorflow-lite:1.13.1'
  37. }