build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion COMPILE_SDK_VERSION
  6. buildToolsVersion BUILD_TOOLS_VERSION
  7. defaultConfig {
  8. minSdkVersion MIN_SDK_VERSION
  9. targetSdkVersion TARGET_SDK_VERSION
  10. externalNativeBuild {
  11. cmake {
  12. cppFlags '-std=c++11 -frtti -fexceptions -lz'
  13. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  14. }
  15. }
  16. }
  17. ndkVersion NDK_VERSION
  18. buildTypes {
  19. release {
  20. minifyEnabled MINIFY_ENABLE
  21. proguardFiles 'proguard-rules.pro'
  22. }
  23. }
  24. buildFeatures {
  25. buildConfig = false
  26. }
  27. lintOptions {
  28. abortOnError false
  29. }
  30. repositories {
  31. flatDir {
  32. dirs 'libs'
  33. }
  34. }
  35. dexOptions {
  36. preDexLibraries = false
  37. }
  38. externalNativeBuild {
  39. cmake {
  40. path "CMakeLists.txt"
  41. }
  42. }
  43. // sourceSets {
  44. // main {
  45. // // let gradle pack the shared library into apk
  46. // jniLibs.srcDirs = ['src/main/jniLibs']
  47. // }
  48. // }
  49. }
  50. dependencies {
  51. // implementation "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
  52. // implementation 'androidx.core:core-ktx:1.3.2'
  53. // implementation project(':library_comm')
  54. }
  55. //apply from: 'publish.gradle'
  56. apply from: 'buildJar.gradle'