build.gradle 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. signingConfigs {
  21. config {
  22. keyAlias keystoreProperties['keyAlias']
  23. keyPassword keystoreProperties['keyPassword']
  24. storeFile file(keystoreProperties['storeFile'])
  25. storePassword keystoreProperties['storePassword']
  26. v1SigningEnabled true
  27. v2SigningEnabled true
  28. }
  29. }
  30. buildTypes {
  31. debug {
  32. minifyEnabled false
  33. signingConfig signingConfigs.config
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. release {
  37. minifyEnabled false
  38. signingConfig signingConfigs.config
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. lintOptions {
  43. abortOnError false
  44. }
  45. compileOptions {
  46. sourceCompatibility JavaVersion.VERSION_1_8
  47. targetCompatibility JavaVersion.VERSION_1_8
  48. }
  49. kotlinOptions {
  50. jvmTarget = '1.8'
  51. useIR = true
  52. }
  53. packagingOptions {
  54. resources {
  55. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  56. }
  57. }
  58. }
  59. dependencies {
  60. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  61. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  62. implementation 'androidx.appcompat:appcompat:1.4.1'
  63. // implementation "androidx.core:core-ktx:1.7.0"
  64. // implementation 'com.android.installreferrer:installreferrer:2.2'
  65. // // 日志采集框架
  66. // implementation 'io.github.suyghur.dolin:zap:1.0.0'
  67. // //mmkv
  68. // implementation 'com.tencent:mmkv-static:1.2.10'
  69. //
  70. // implementation 'com.adjust.sdk:adjust-android:4.28.2'
  71. // implementation files('libs/library_comm-release.aar')
  72. implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-comm:1.0.0-rc8'
  73. implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-impl:1.0.0-rc8'
  74. implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-core:1.0.0-rc8'
  75. implementation 'io.github.yyxxgame.sdk:eyuancomm-lang-vn:1.0.0-rc8'
  76. // implementation project(':library_comm')
  77. // implementation project(':library_impl')
  78. //
  79. // implementation project(':module_eyuan:library_eyuan')
  80. // implementation project(':module_eyuan:library_vn_language')
  81. }