build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion rootProject.ext.android.compileSdkVersion
  7. buildToolsVersion rootProject.ext.android.buildToolsVersion
  8. defaultConfig {
  9. minSdkVersion rootProject.ext.android.minSdkVersion
  10. targetSdkVersion rootProject.ext.android.targetSdkVersion
  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. repositories {
  29. flatDir {
  30. dirs '../libs'
  31. }
  32. }
  33. dexOptions {
  34. preDexLibraries = false
  35. }
  36. compileOptions {
  37. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyaungame.language"]
  38. }
  39. compileOptions {
  40. sourceCompatibility JavaVersion.VERSION_1_8
  41. targetCompatibility JavaVersion.VERSION_1_8
  42. }
  43. kotlinOptions {
  44. jvmTarget = "1.8"
  45. }
  46. }
  47. dependencies {
  48. }
  49. apply from: 'publish.gradle'