build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdk rootProject.ext.android.compileSdk
  6. buildToolsVersion rootProject.ext.android.buildToolsVersion
  7. defaultConfig {
  8. minSdk rootProject.ext.android.minSdk
  9. targetSdk rootProject.ext.android.targetSdk
  10. externalNativeBuild {
  11. cmake {
  12. cppFlags '-std=c++11 -frtti -fexceptions -lz'
  13. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  14. }
  15. }
  16. ndk {
  17. // 设置支持的SO库架构
  18. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled rootProject.ext.module.minifyEnabled
  24. proguardFiles 'proguard-rules.pro'
  25. }
  26. }
  27. buildFeatures {
  28. buildConfig false
  29. }
  30. lintOptions {
  31. abortOnError false
  32. }
  33. dexOptions {
  34. preDexLibraries false
  35. }
  36. externalNativeBuild {
  37. cmake {
  38. path "CMakeLists.txt"
  39. }
  40. }
  41. }
  42. dependencies {
  43. }