build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. }
  54. packagingOptions {
  55. resources {
  56. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  57. }
  58. }
  59. }
  60. dependencies {
  61. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  62. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  63. implementation 'androidx.core:core-ktx:1.7.0'
  64. implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-comm:1.0.0-rc6'
  65. implementation 'io.github.yyxxgame.sdk:eyuancomm-sdk-ktx-impl:1.0.0-rc4'
  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 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-huawei:1.0.0-rc4'
  71. // implementation 'io.github.yyxxgame.sdk:eyuancomm-channel-lib-oppo:1.0.0-rc4'
  72. }