build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion COMPILE_SDK_VERSION
  7. buildToolsVersion BUILD_TOOLS_VERSION
  8. defaultConfig {
  9. minSdkVersion MIN_SDK_VERSION
  10. targetSdkVersion TARGET_SDK_VERSION
  11. ndk {
  12. // 设置支持的SO库架构
  13. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  14. }
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled MINIFY_ENABLE
  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. }
  40. dependencies {
  41. api files('../libs/yyxx_support_1.0.1.jar')
  42. implementation 'androidx.core:core-ktx:1.6.0'
  43. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  44. }
  45. apply from: 'buildJar.gradle'