build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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", 'x86', 'x86_64'
  15. arguments "-DANDROID_TOOLCHAIN=clang", "-DANDROID_STL=c++_static"
  16. version "3.6.4111459"
  17. }
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. externalNativeBuild {
  27. cmake {
  28. path "CMakeLists.txt"
  29. }
  30. }
  31. lintOptions {
  32. abortOnError false
  33. }
  34. }
  35. dependencies {
  36. api fileTree(dir: 'libs', include: ['*.jar'])
  37. api 'org.tensorflow:tensorflow-lite:1.13.1'
  38. }