build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. resConfigs 'zh-rCN', 'zh-rHK', 'zh-rTW'
  19. }
  20. buildFeatures {
  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. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  64. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  65. implementation 'androidx.appcompat:appcompat:1.4.1'
  66. // implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-comm:1.0.0-rc6'
  67. // implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-impl:1.0.0-rc4'
  68. // implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-core:1.0.0-rc5'
  69. // implementation 'io.github.yyxxgame.sdk:eyuancomm-lang-vn:1.0.0-rc4'
  70. implementation project(':library_comm')
  71. implementation project(':library_impl')
  72. implementation project(':module_eyuan:library_eyuan')
  73. implementation project(':module_eyuan:library_vn_language')
  74. }