build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. ndk {
  12. // 设置支持的SO库架构
  13. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  14. }
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled rootProject.ext.module.minifyEnabled
  19. proguardFiles 'proguard-rules.pro'
  20. }
  21. }
  22. buildFeatures {
  23. buildConfig = false
  24. }
  25. lintOptions {
  26. abortOnError false
  27. }
  28. compileOptions {
  29. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyaungame.language"]
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. kotlinOptions {
  36. jvmTarget = "1.8"
  37. }
  38. }
  39. dependencies {
  40. }
  41. apply from: 'publish.gradle'