build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. ndkVersion rootProject.ext.android.ndkVersion
  9. defaultConfig {
  10. minSdk rootProject.ext.android.minSdk
  11. targetSdk rootProject.ext.android.targetSdk
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled rootProject.ext.module.minifyEnabled
  16. proguardFiles 'proguard-rules.pro'
  17. }
  18. }
  19. buildFeatures {
  20. buildConfig false
  21. }
  22. lintOptions {
  23. abortOnError false
  24. }
  25. compileOptions {
  26. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuancomm.core"]
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = "1.8"
  34. }
  35. }
  36. dependencies {
  37. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  38. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  39. implementation 'androidx.core:core-ktx:1.7.0'
  40. implementation 'androidx.fragment:fragment-ktx:1.4.1'
  41. implementation "androidx.viewpager2:viewpager2:1.0.0"
  42. implementation 'com.android.installreferrer:installreferrer:2.2'
  43. //google
  44. implementation 'com.google.android.play:core:1.10.3'
  45. implementation 'com.google.android.gms:play-services-auth:20.1.0'
  46. //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  47. implementation 'com.android.billingclient:billing-ktx:3.0.3'
  48. implementation 'com.google.firebase:firebase-analytics-ktx:20.1.2'
  49. implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.9'
  50. //facebook
  51. implementation 'com.facebook.android:facebook-core:13.1.0'
  52. implementation 'com.facebook.android:facebook-login:13.1.0'
  53. implementation 'com.facebook.android:facebook-share:13.1.0'
  54. compileOnly project(':module_eyuan:library_hk_language')
  55. compileOnly project(':library_comm')
  56. }
  57. apply from: 'publish.gradle'