build.gradle 3.5 KB

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