build.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. def keystorePropertiesFile = rootProject.file("keystore.properties")
  6. def keystoreProperties = new Properties()
  7. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  8. android {
  9. compileSdk rootProject.ext.android.compileSdk
  10. buildToolsVersion rootProject.ext.android.buildToolsVersion
  11. defaultConfig {
  12. applicationId 'com.shzd.eyuangame'
  13. minSdk rootProject.ext.android.minSdk
  14. targetSdk rootProject.ext.android.targetSdk
  15. versionCode 1
  16. versionName "0.0.1"
  17. multiDexEnabled true
  18. }
  19. buildFeatures {
  20. viewBinding true
  21. buildConfig false
  22. }
  23. signingConfigs {
  24. config {
  25. keyAlias keystoreProperties['keyAlias']
  26. keyPassword keystoreProperties['keyPassword']
  27. storeFile file(keystoreProperties['storeFile'])
  28. storePassword keystoreProperties['storePassword']
  29. v1SigningEnabled true
  30. v2SigningEnabled true
  31. }
  32. }
  33. buildTypes {
  34. debug {
  35. minifyEnabled false
  36. signingConfig signingConfigs.config
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. release {
  40. minifyEnabled false
  41. signingConfig signingConfigs.config
  42. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  43. }
  44. }
  45. lintOptions {
  46. abortOnError false
  47. }
  48. compileOptions {
  49. sourceCompatibility JavaVersion.VERSION_1_8
  50. targetCompatibility JavaVersion.VERSION_1_8
  51. }
  52. kotlinOptions {
  53. jvmTarget = '1.8'
  54. useIR = true
  55. }
  56. packagingOptions {
  57. resources {
  58. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  59. }
  60. }
  61. }
  62. dependencies {
  63. if (rootProject.ext.module.publish) {
  64. implementation 'io.github.yyxxgame.sdk:eyuangame-sdk-ktx:1.0.3'
  65. implementation 'io.github.yyxxgame.sdk:eyuangame-component-lang-vn:1.0.2'
  66. } else {
  67. api project(':library_core')
  68. }
  69. // ktx
  70. api rootProject.ext.ktxLibs
  71. // jetpack
  72. api rootProject.ext.jetpackLibs
  73. // ui
  74. api rootProject.ext.uiLibs
  75. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  76. }