build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion COMPILE_SDK_VERSION
  7. buildToolsVersion BUILD_TOOLS_VERSION
  8. defaultConfig {
  9. minSdkVersion MIN_SDK_VERSION
  10. targetSdkVersion TARGET_SDK_VERSION
  11. externalNativeBuild {
  12. cmake {
  13. cppFlags '-std=c++11 -frtti -fexceptions -lz'
  14. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  15. }
  16. }
  17. ndk {
  18. // 设置支持的SO库架构
  19. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled MINIFY_ENABLE
  25. proguardFiles 'proguard-rules.pro'
  26. }
  27. }
  28. buildFeatures {
  29. buildConfig = false
  30. }
  31. lintOptions {
  32. abortOnError false
  33. }
  34. repositories {
  35. flatDir {
  36. dirs '../libs'
  37. }
  38. }
  39. dexOptions {
  40. preDexLibraries = false
  41. }
  42. // compileOptions {
  43. // kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuangame.core"]
  44. // }
  45. externalNativeBuild {
  46. cmake {
  47. path "CMakeLists.txt"
  48. }
  49. }
  50. ndkVersion NDK_VERSION
  51. }
  52. dependencies {
  53. }