build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. // id 'com.huawei.agconnect'
  5. }
  6. def keystorePropertiesFile = rootProject.file("keystore.properties")
  7. def keystoreProperties = new Properties()
  8. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  9. android {
  10. compileSdk rootProject.ext.android.compileSdk
  11. buildToolsVersion rootProject.ext.android.buildToolsVersion
  12. defaultConfig {
  13. // applicationId 'com.shzd.eyuangame'
  14. applicationId 'com.xgyy.jpcq.nearme.gamecenter'
  15. // applicationId 'com.xgyy.jpcq.huawei'
  16. minSdk rootProject.ext.android.minSdk
  17. targetSdk rootProject.ext.android.targetSdk
  18. versionCode 1
  19. versionName "0.0.1"
  20. multiDexEnabled true
  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. // if (rootProject.ext.module.publish) {
  66. // implementation 'io.github.yyxxgame.sdk:eyuangame-sdk-ktx:1.0.3'
  67. // implementation 'io.github.yyxxgame.sdk:eyuangame-component-lang-vn:1.0.2'
  68. // } else {
  69. // api project(':core:library_core')
  70. // }
  71. implementation project(':library_base')
  72. implementation project(':library_comm')
  73. implementation project(':library_impl')
  74. implementation project(':channel_registry:channel_oppo')
  75. // ktx
  76. implementation rootProject.ext.ktxLibs
  77. // ui
  78. implementation rootProject.ext.uiLibs
  79. // implementation 'com.huawei.hms:hianalytics:6.3.2.300'
  80. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  81. }