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. ndkVersion rootProject.ext.android.ndkVersion
  9. defaultConfig {
  10. minSdk rootProject.ext.android.minSdk
  11. targetSdk rootProject.ext.android.targetSdk
  12. // externalNativeBuild {
  13. // cmake {
  14. // cppFlags '-std=c++11 -frtti -fexceptions -lz'
  15. // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  16. // }
  17. // }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled rootProject.ext.module.minifyEnabled
  22. proguardFiles 'proguard-rules.pro'
  23. }
  24. }
  25. buildFeatures {
  26. buildConfig false
  27. }
  28. lintOptions {
  29. abortOnError false
  30. }
  31. compileOptions {
  32. kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuancomm.core"]
  33. }
  34. compileOptions {
  35. sourceCompatibility JavaVersion.VERSION_1_8
  36. targetCompatibility JavaVersion.VERSION_1_8
  37. }
  38. kotlinOptions {
  39. jvmTarget = "1.8"
  40. }
  41. // externalNativeBuild {
  42. // cmake {
  43. // path "CMakeLists.txt"
  44. // }
  45. // }
  46. }
  47. dependencies {
  48. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  49. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
  50. implementation 'androidx.core:core-ktx:1.7.0'
  51. implementation 'androidx.fragment:fragment-ktx:1.4.1'
  52. implementation "androidx.viewpager2:viewpager2:1.0.0"
  53. implementation 'com.android.installreferrer:installreferrer:2.2'
  54. //google
  55. implementation 'com.google.android.play:core:1.10.3'
  56. implementation 'com.google.android.gms:play-services-auth:20.1.0'
  57. //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  58. implementation 'com.android.billingclient:billing-ktx:3.0.3'
  59. implementation 'com.google.firebase:firebase-analytics-ktx:20.1.0'
  60. implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.8'
  61. //facebook
  62. implementation 'com.facebook.android:facebook-android-sdk:12.3.0'
  63. //adjust
  64. implementation 'com.adjust.sdk:adjust-android:4.28.2'
  65. compileOnly files('../../libs/yyxx_support_1.0.2.jar')
  66. compileOnly project(':module_eyuan:library_hk_language')
  67. compileOnly project(':library_comm')
  68. }
  69. apply from: 'publish.gradle'