build.gradle 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. def keystorePropertiesFile = rootProject.file("keystore.properties")
  5. def keystoreProperties = new Properties()
  6. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  7. android {
  8. compileSdkVersion COMPILE_SDK_VERSION
  9. buildToolsVersion BUILD_TOOLS_VERSION
  10. defaultConfig {
  11. applicationId "com.yyxx.eyuangame.demo"
  12. minSdkVersion MIN_SDK_VERSION
  13. targetSdkVersion TARGET_SDK_VERSION
  14. versionCode 1
  15. versionName "1.0"
  16. multiDexEnabled true
  17. }
  18. signingConfigs {
  19. config {
  20. keyAlias keystoreProperties['keyAlias']
  21. keyPassword keystoreProperties['keyPassword']
  22. storeFile file(keystoreProperties['storeFile'])
  23. storePassword keystoreProperties['storePassword']
  24. }
  25. }
  26. buildTypes {
  27. debug {
  28. minifyEnabled false
  29. signingConfig signingConfigs.config
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. release {
  33. minifyEnabled false
  34. signingConfig signingConfigs.config
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. lintOptions {
  39. abortOnError false
  40. }
  41. repositories {
  42. flatDir {
  43. dirs 'libs'
  44. }
  45. }
  46. dexOptions {
  47. preDexLibraries = false
  48. }
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_8
  51. targetCompatibility JavaVersion.VERSION_1_8
  52. }
  53. }
  54. dependencies {
  55. api(name: 'library_core-release', ext: 'aar')
  56. //mmkv
  57. implementation 'com.tencent:mmkv-static:1.2.10'
  58. //日志采集框架
  59. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  60. implementation 'androidx.core:core-ktx:1.6.0'
  61. implementation 'androidx.fragment:fragment-ktx:1.3.5'
  62. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  63. implementation 'com.google.android.material:material:1.4.0'
  64. implementation 'com.android.installreferrer:installreferrer:2.2'
  65. //google
  66. implementation 'com.google.android.play:core:1.10.0'
  67. implementation 'com.google.android.gms:play-services-auth:19.0.0'
  68. //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  69. implementation "com.android.billingclient:billing-ktx:3.0.3"
  70. implementation 'com.google.firebase:firebase-analytics-ktx:19.0.0'
  71. implementation 'com.google.firebase:firebase-crashlytics-ktx:18.1.0'
  72. //facebook
  73. implementation 'com.facebook.android:facebook-login:9.0.0'
  74. implementation 'com.facebook.android:facebook-android-sdk:8.2.0'
  75. //adjust
  76. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  77. }