build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.base"]
  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. api files('../libs/yyxx_support_1.0.1.jar')
  49. implementation 'androidx.core:core-ktx:1.7.0'
  50. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  51. }
  52. apply from: 'buildJar.gradle'