build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 '21.4.7075529'
  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.eyaungame.base"]
  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. api files('../libs/yyxx_support_1.0.2.jar')
  53. api files('../libs/oaid_sdk_1.0.25.jar')
  54. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  55. compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  56. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  57. compileOnly "androidx.core:core-ktx:1.7.0"
  58. }
  59. apply from: 'buildJar.gradle'