build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion rootProject.ext.android.compileSdkVersion
  6. buildToolsVersion rootProject.ext.android.buildToolsVersion
  7. defaultConfig {
  8. minSdkVersion rootProject.ext.android.minSdkVersion
  9. targetSdkVersion rootProject.ext.android.targetSdkVersion
  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. buildFeatures {
  22. buildConfig false
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles 'proguard-rules.pro'
  28. }
  29. }
  30. lintOptions {
  31. abortOnError false
  32. }
  33. repositories {
  34. flatDir {
  35. dirs 'libs'
  36. }
  37. }
  38. dexOptions {
  39. preDexLibraries = false
  40. }
  41. compileOptions {
  42. sourceCompatibility JavaVersion.VERSION_1_7
  43. targetCompatibility JavaVersion.VERSION_1_7
  44. }
  45. externalNativeBuild {
  46. cmake {
  47. path "CMakeLists.txt"
  48. version '3.10.2'
  49. }
  50. }
  51. }
  52. dependencies {
  53. api files('libs/android-support-v4.jar')
  54. api files('libs/mmkv-static-1.2.8.jar')
  55. api files('libs/yyxx_support_1.0.1.jar')
  56. api files('libs/dolin_zap_1.0.0.jar')
  57. }