build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. implementation project(':library_comm')
  66. implementation project(':library_impl')
  67. // implementation project(':channel_registry:channel_oppo')
  68. implementation project(':channel_registry:channel_huawei')
  69. // ktx
  70. implementation rootProject.ext.ktxLibs
  71. // ui
  72. implementation rootProject.ext.uiLibs
  73. // implementation 'com.huawei.hms:hianalytics:6.3.2.300'
  74. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  75. }