build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. // ndkVersion "21.3.6528147"
  12. externalNativeBuild {
  13. cmake {
  14. cppFlags "-std=c++11 -frtti -Wall -Wno-unused-parameter -Wno-unused-variable -Wno-shift-count-overflow -Wno-error=non-virtual-dtor -Wno-sign-compare -Wno-switch -Wno-missing-braces"
  15. abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  16. }
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled true
  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. }