build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdk rootProject.ext.android.compileSdk
  7. buildToolsVersion rootProject.ext.android.buildToolsVersion
  8. defaultConfig {
  9. minSdk rootProject.ext.android.minSdk
  10. targetSdk rootProject.ext.android.targetSdk
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled rootProject.ext.module.minifyEnabled
  15. proguardFiles 'proguard-rules.pro'
  16. }
  17. }
  18. buildFeatures {
  19. buildConfig false
  20. }
  21. lintOptions {
  22. abortOnError false
  23. }
  24. compileOptions {
  25. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuangame.core"]
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. kotlinOptions {
  32. jvmTarget = "1.8"
  33. }
  34. }
  35. dependencies {
  36. //mmkv
  37. implementation 'com.tencent:mmkv-static:1.2.10'
  38. //日志采集框架
  39. implementation 'io.github.suyghur.dolin:zap:1.0.0'
  40. implementation 'androidx.core:core-ktx:1.7.0'
  41. implementation 'androidx.fragment:fragment-ktx:1.4.0'
  42. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  43. implementation 'com.google.android.material:material:1.5.0'
  44. implementation 'com.android.installreferrer:installreferrer:2.2'
  45. //google
  46. implementation 'com.google.android.play:core:1.10.3'
  47. implementation 'com.google.android.gms:play-services-auth:20.0.1'
  48. //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  49. implementation "com.android.billingclient:billing-ktx:3.0.3"
  50. implementation 'com.google.firebase:firebase-analytics-ktx:20.0.2'
  51. implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.7'
  52. implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.7'
  53. //facebook
  54. implementation 'com.facebook.android:facebook-android-sdk:11.2.0'
  55. //adjust
  56. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  57. if (rootProject.ext.module.publish) {
  58. api files('../libs/eyuangamesdk_base_1.0.3.jar')
  59. } else {
  60. api project(':library_base')
  61. }
  62. switch (rootProject.ext.module.coreModuleLanguage){
  63. case 1:
  64. api project(':core:library_hk_language')
  65. break
  66. case 2:
  67. api project(':core:library_vn_language')
  68. break
  69. }
  70. }
  71. apply from: 'publish.gradle'