build.gradle 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. }
  26. }
  27. buildTypes {
  28. debug {
  29. minifyEnabled false
  30. signingConfig signingConfigs.config
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. }
  33. release {
  34. minifyEnabled false
  35. signingConfig signingConfigs.config
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. lintOptions {
  40. abortOnError false
  41. }
  42. repositories {
  43. flatDir {
  44. dirs 'libs'
  45. }
  46. }
  47. dexOptions {
  48. preDexLibraries = false
  49. }
  50. compileOptions {
  51. sourceCompatibility JavaVersion.VERSION_1_8
  52. targetCompatibility JavaVersion.VERSION_1_8
  53. }
  54. kotlinOptions {
  55. jvmTarget = "1.8"
  56. }
  57. }
  58. dependencies {
  59. if (PUBLISH_ENABLE) {
  60. if (REMOTE_LIBRARY) {
  61. implementation 'io.github.yyxxgame.sdk:eyuangame-sdk-ktx:0.0.1'
  62. } else {
  63. api(name: 'library_core-release', ext: 'aar')
  64. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
  65. //mmkv
  66. implementation 'com.tencent:mmkv-static:1.2.10'
  67. //日志采集框架
  68. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  69. implementation 'androidx.core:core-ktx:1.6.0'
  70. implementation 'androidx.fragment:fragment-ktx:1.3.5'
  71. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  72. implementation 'com.google.android.material:material:1.4.0'
  73. implementation 'com.android.installreferrer:installreferrer:2.2'
  74. //google
  75. implementation 'com.google.android.play:core:1.10.0'
  76. implementation 'com.google.android.gms:play-services-auth:19.0.0'
  77. //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  78. implementation "com.android.billingclient:billing-ktx:3.0.3"
  79. implementation 'com.google.firebase:firebase-analytics-ktx:19.0.0'
  80. implementation 'com.google.firebase:firebase-crashlytics-ktx:18.1.0'
  81. implementation 'com.google.firebase:firebase-crashlytics-ndk:18.1.0'
  82. //facebook
  83. implementation 'com.facebook.android:facebook-login:9.0.0'
  84. implementation 'com.facebook.android:facebook-android-sdk:8.2.0'
  85. //adjust
  86. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  87. }
  88. } else {
  89. api project(':library_core')
  90. }
  91. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  92. }