build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. // applicationId 'com.xgyy.jpcq.nearme.gamecenter'
  14. // applicationId 'com.xgyy.jpcq.huawei'
  15. minSdk rootProject.ext.android.minSdk
  16. targetSdk rootProject.ext.android.targetSdk
  17. versionCode 1
  18. versionName '0.0.1'
  19. multiDexEnabled true
  20. resConfigs 'zh-rCN', 'zh-rHK', 'zh-rTW'
  21. }
  22. buildFeatures {
  23. buildConfig false
  24. }
  25. signingConfigs {
  26. config {
  27. keyAlias keystoreProperties['keyAlias']
  28. keyPassword keystoreProperties['keyPassword']
  29. storeFile file(keystoreProperties['storeFile'])
  30. storePassword keystoreProperties['storePassword']
  31. v1SigningEnabled true
  32. v2SigningEnabled true
  33. }
  34. }
  35. buildTypes {
  36. debug {
  37. minifyEnabled false
  38. signingConfig signingConfigs.config
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. release {
  42. minifyEnabled false
  43. signingConfig signingConfigs.config
  44. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  45. }
  46. }
  47. lintOptions {
  48. abortOnError false
  49. }
  50. compileOptions {
  51. sourceCompatibility JavaVersion.VERSION_1_8
  52. targetCompatibility JavaVersion.VERSION_1_8
  53. }
  54. kotlinOptions {
  55. jvmTarget = '1.8'
  56. useIR = true
  57. }
  58. packagingOptions {
  59. resources {
  60. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  61. }
  62. }
  63. }
  64. dependencies {
  65. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  66. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  67. // implementation 'androidx.appcompat:appcompat:1.4.1'
  68. // implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-comm:1.0.0-rc3'
  69. // implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-impl:1.0.0-rc3'
  70. // implementation 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-huawei:1.0.0-rc3'
  71. implementation project(':library_comm')
  72. implementation project(':library_impl')
  73. implementation project(':module_eyuan:library_eyuan')
  74. implementation project(':module_eyuan:library_hk_language')
  75. // compileOnly files('../libs/eyuancommsdk-comm-1.0.0.jar')
  76. // implementation project(':channel_registry:channel_oppo')
  77. // implementation project(':channel_registry:channel_huawei2')
  78. }