build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. buildConfig false
  21. }
  22. signingConfigs {
  23. config {
  24. keyAlias keystoreProperties['keyAlias']
  25. keyPassword keystoreProperties['keyPassword']
  26. storeFile file(keystoreProperties['storeFile'])
  27. storePassword keystoreProperties['storePassword']
  28. v1SigningEnabled true
  29. v2SigningEnabled true
  30. }
  31. }
  32. buildTypes {
  33. debug {
  34. minifyEnabled false
  35. signingConfig signingConfigs.config
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. release {
  39. minifyEnabled false
  40. signingConfig signingConfigs.config
  41. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  42. }
  43. }
  44. lintOptions {
  45. abortOnError false
  46. }
  47. compileOptions {
  48. sourceCompatibility JavaVersion.VERSION_1_8
  49. targetCompatibility JavaVersion.VERSION_1_8
  50. }
  51. kotlinOptions {
  52. jvmTarget = '1.8'
  53. useIR = true
  54. }
  55. packagingOptions {
  56. resources {
  57. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  58. }
  59. }
  60. }
  61. dependencies {
  62. // if (rootProject.ext.module.publish) {
  63. // implementation 'io.github.yyxxgame.sdk:eyuangame-sdk-ktx:1.0.3'
  64. // implementation 'io.github.yyxxgame.sdk:eyuangame-component-lang-vn:1.0.2'
  65. // } else {
  66. // api project(':core:library_core')
  67. // }
  68. implementation project(':library_base')
  69. implementation project(':library_comm')
  70. implementation project(':library_impl')
  71. implementation project(':channel_registry:channel_oppo')
  72. // ktx
  73. implementation rootProject.ext.ktxLibs
  74. // ui
  75. implementation rootProject.ext.uiLibs
  76. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  77. }