build.gradle 1.3 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. if (COMM_LIB_DEV_ENABLE) {
  18. packagingOptions {
  19. exclude 'lib/arm64-v8a/libdolin-comm.so'
  20. exclude 'lib/armeabi-v7a/libdolin-comm.so'
  21. exclude 'lib/x86/libdolin-comm.so'
  22. exclude 'lib/x86_64/libdolin-comm.so'
  23. }
  24. }
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled MINIFY_ENABLE
  29. proguardFiles 'proguard-rules.pro'
  30. }
  31. }
  32. ndkVersion NDK_VERSION
  33. buildFeatures {
  34. buildConfig = false
  35. }
  36. lintOptions {
  37. abortOnError false
  38. }
  39. repositories {
  40. flatDir {
  41. dirs 'libs'
  42. }
  43. }
  44. dexOptions {
  45. preDexLibraries = false
  46. }
  47. externalNativeBuild {
  48. cmake {
  49. path "CMakeLists.txt"
  50. }
  51. }
  52. }
  53. dependencies {
  54. implementation 'androidx.core:core-ktx:1.3.2'
  55. }