build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. compileSdkVersion COMPILE_SDK_VERSION
  10. buildToolsVersion BUILD_TOOLS_VERSION
  11. defaultConfig {
  12. applicationId 'com.shzd.eyuangame'
  13. minSdkVersion MIN_SDK_VERSION
  14. targetSdkVersion TARGET_SDK_VERSION
  15. versionCode 1
  16. versionName "1.0"
  17. multiDexEnabled true
  18. }
  19. signingConfigs {
  20. config {
  21. keyAlias keystoreProperties['keyAlias']
  22. keyPassword keystoreProperties['keyPassword']
  23. storeFile file(keystoreProperties['storeFile'])
  24. storePassword keystoreProperties['storePassword']
  25. v1SigningEnabled true
  26. v2SigningEnabled true
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. minifyEnabled false
  32. signingConfig signingConfigs.config
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. }
  35. release {
  36. minifyEnabled false
  37. signingConfig signingConfigs.config
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. lintOptions {
  42. abortOnError false
  43. }
  44. repositories {
  45. flatDir {
  46. dirs 'libs'
  47. }
  48. }
  49. dexOptions {
  50. preDexLibraries = false
  51. }
  52. compileOptions {
  53. sourceCompatibility JavaVersion.VERSION_1_8
  54. targetCompatibility JavaVersion.VERSION_1_8
  55. }
  56. kotlinOptions {
  57. jvmTarget = "1.8"
  58. }
  59. }
  60. dependencies {
  61. if (PUBLISH_ENABLE) {
  62. if (REMOTE_LIBRARY) {
  63. implementation 'io.github.yyxxgame.sdk:eyuangame-sdk-ktx:1.0.0-alpha10'
  64. } else {
  65. api(name: 'library_core-release', ext: 'aar')
  66. implementation "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION"
  67. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
  68. //mmkv
  69. implementation 'com.tencent:mmkv-static:1.2.10'
  70. //日志采集框架
  71. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  72. implementation 'androidx.core:core-ktx:1.6.0'
  73. implementation 'androidx.fragment:fragment-ktx:1.3.6'
  74. implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
  75. implementation 'com.google.android.material:material:1.4.0'
  76. implementation 'com.android.installreferrer:installreferrer:2.2'
  77. //google
  78. implementation 'com.google.android.play:core:1.10.2'
  79. implementation 'com.google.android.gms:play-services-auth:19.2.0'
  80. //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  81. implementation "com.android.billingclient:billing-ktx:3.0.3"
  82. implementation 'com.google.firebase:firebase-analytics-ktx:19.0.2'
  83. implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.3'
  84. implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.3'
  85. //facebook
  86. implementation 'com.facebook.android:facebook-android-sdk:11.2.0'
  87. //adjust
  88. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  89. }
  90. } else {
  91. api project(':library_core')
  92. }
  93. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  94. }