build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion COMPILE_SDK_VERSION
  6. buildToolsVersion BUILD_TOOLS_VERSION
  7. ndkVersion NDK_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 -g'
  14. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  15. }
  16. }
  17. }
  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. buildTypes {
  25. release {
  26. minifyEnabled MINIFY_ENABLE
  27. proguardFiles 'proguard-rules.pro'
  28. }
  29. }
  30. buildFeatures {
  31. buildConfig = false
  32. }
  33. lintOptions {
  34. abortOnError false
  35. }
  36. repositories {
  37. flatDir {
  38. dirs 'libs'
  39. }
  40. }
  41. dexOptions {
  42. preDexLibraries = false
  43. }
  44. externalNativeBuild {
  45. cmake {
  46. path "CMakeLists.txt"
  47. version '3.10.2'
  48. }
  49. }
  50. }
  51. dependencies {
  52. // implementation "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
  53. // implementation 'androidx.core:core-ktx:1.3.2'
  54. implementation project(':library_comm')
  55. }
  56. apply from: 'publish.gradle'