build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdk rootProject.ext.android.compileSdk
  7. buildToolsVersion rootProject.ext.android.buildToolsVersion
  8. ndkVersion rootProject.ext.android.ndkVersion
  9. defaultConfig {
  10. minSdk rootProject.ext.android.minSdk
  11. targetSdk rootProject.ext.android.targetSdk
  12. externalNativeBuild {
  13. cmake {
  14. cppFlags '-std=c++11 -frtti -fexceptions -lz'
  15. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  16. }
  17. }
  18. ndk {
  19. // 设置支持的SO库架构
  20. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  21. }
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled rootProject.ext.module.minifyEnabled
  26. proguardFiles 'proguard-rules.pro'
  27. }
  28. }
  29. buildFeatures {
  30. buildConfig false
  31. }
  32. lintOptions {
  33. abortOnError false
  34. }
  35. compileOptions {
  36. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuancomm.comm"]
  37. }
  38. compileOptions {
  39. sourceCompatibility JavaVersion.VERSION_1_8
  40. targetCompatibility JavaVersion.VERSION_1_8
  41. }
  42. kotlinOptions {
  43. jvmTarget = "1.8"
  44. }
  45. externalNativeBuild {
  46. cmake {
  47. path "CMakeLists.txt"
  48. }
  49. }
  50. }
  51. dependencies {
  52. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  53. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  54. implementation "androidx.core:core-ktx:1.7.0"
  55. // 日志采集框架
  56. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  57. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  58. //mmkv
  59. api 'com.tencent:mmkv-static:1.2.10'
  60. //日志采集框架
  61. api 'io.github.suyghur.dolin:zap:1.0.0'
  62. api files("../libs/yyxx_support_1.0.2.jar")
  63. api files("../libs/oaid_sdk_1.0.25.jar")
  64. }
  65. apply from: 'publish.gradle'