build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. }
  18. ndkVersion NDK_VERSION
  19. buildTypes {
  20. release {
  21. minifyEnabled MINIFY_ENABLE
  22. proguardFiles 'proguard-rules.pro'
  23. }
  24. }
  25. buildFeatures {
  26. buildConfig = false
  27. }
  28. lintOptions {
  29. abortOnError false
  30. }
  31. repositories {
  32. flatDir {
  33. dirs 'libs'
  34. }
  35. }
  36. dexOptions {
  37. preDexLibraries = false
  38. }
  39. externalNativeBuild {
  40. cmake {
  41. path "CMakeLists.txt"
  42. }
  43. }
  44. }
  45. dependencies {
  46. implementation "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
  47. implementation 'androidx.core:core-ktx:1.3.2'
  48. compileOnly project(':library_common')
  49. }