build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. packagingOptions {
  51. resources.excludes += "DebugProbesKt.bin"
  52. }
  53. }
  54. dependencies {
  55. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  56. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  57. implementation "androidx.core:core-ktx:1.7.0"
  58. implementation 'com.android.installreferrer:installreferrer:2.2'
  59. // 日志采集框架
  60. api 'io.github.suyghur.dolin:zap:1.0.0'
  61. //mmkv
  62. api 'com.tencent:mmkv-static:1.2.10'
  63. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  64. compileOnly 'com.google.firebase:firebase-analytics-ktx:20.1.2'
  65. compileOnly 'com.facebook.android:facebook-core:13.1.0'
  66. api files("../libs/yyxx_support_1.0.2.jar")
  67. api files("../libs/oaid_sdk_1.0.25.jar")
  68. }
  69. apply from: 'buildJar.gradle'
  70. apply from: 'publish.gradle'