build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. ndkVersion NDK_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 false
  29. proguardFiles 'proguard-rules.pro'
  30. }
  31. }
  32. buildFeatures {
  33. buildConfig = false
  34. }
  35. lintOptions {
  36. abortOnError false
  37. }
  38. repositories {
  39. flatDir {
  40. dirs 'libs'
  41. }
  42. }
  43. dexOptions {
  44. preDexLibraries = false
  45. }
  46. externalNativeBuild {
  47. cmake {
  48. path "CMakeLists.txt"
  49. }
  50. }
  51. }
  52. dependencies {
  53. }
  54. apply from: 'publish.gradle'
  55. apply from: 'buildJar.gradle'