build.gradle 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. // ndkPath = "D:\\Android\\NDK\\android-ndk-r23b\\"
  6. compileSdkVersion 30
  7. defaultConfig {
  8. minSdkVersion 16
  9. targetSdkVersion 26
  10. versionCode 1
  11. versionName "1.0"
  12. externalNativeBuild {
  13. cmake {
  14. abiFilters 'armeabi-v7a'
  15. }
  16. }
  17. }
  18. buildTypes {
  19. all {
  20. ndk {
  21. abiFilters 'armeabi-v7a'
  22. }
  23. }
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. debug {
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. externalNativeBuild {
  36. /*cmake {
  37. path file('src/main/cpp/CMakeLists.txt')
  38. version "3.10.2"
  39. }*/
  40. }
  41. }
  42. dependencies {
  43. }