build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. defaultConfig {
  9. minSdk rootProject.ext.android.minSdk
  10. targetSdk rootProject.ext.android.targetSdk
  11. externalNativeBuild {
  12. cmake {
  13. cppFlags '-std=c++11 -frtti -fexceptions -lz'
  14. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  15. }
  16. }
  17. ndk {
  18. // 设置支持的SO库架构
  19. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled rootProject.ext.module.minifyEnabled
  25. proguardFiles 'proguard-rules.pro'
  26. }
  27. }
  28. buildFeatures {
  29. buildConfig false
  30. }
  31. lintOptions {
  32. abortOnError false
  33. }
  34. compileOptions {
  35. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuangame.core"]
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. kotlinOptions {
  42. jvmTarget = "1.8"
  43. }
  44. }
  45. dependencies {
  46. compileOnly project(':library_base')
  47. compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  48. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  49. compileOnly "androidx.core:core-ktx:1.7.0"
  50. }