build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. apply from: "../lib_default_config.gradle"
  2. apply plugin: 'dagger.hilt.android.plugin'
  3. dependencies {
  4. //noinspection GradleDependency
  5. api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  6. api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  7. // implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
  8. //路由
  9. api project(':cs_router')
  10. //AndroidX
  11. api deps.android.appcompat
  12. api deps.android.constraint_layout
  13. api deps.android.recyclerview
  14. api deps.android.design
  15. api deps.android.multidex
  16. //Fragment与Activity的ViewModel扩展(Hilt必须)
  17. api deps.android.fragment_ktx
  18. //Kotlin相关
  19. api deps.android.kt_ktx
  20. api deps.android.ktx_coroutines_core
  21. api deps.android.ktx_coroutines_android
  22. api deps.android.lifecycle
  23. api deps.android.lifecycle_ktx
  24. //图片
  25. implementation deps.support.glide
  26. implementation deps.support.glide_annotation
  27. implementation deps.support.glide_integration
  28. kapt deps.support.glide_compiler
  29. //gif图片加载
  30. api deps.support.gif_drawable
  31. //RV悬停
  32. api deps.support.sticky_decoration
  33. //PickerView
  34. api deps.support.picker_view
  35. //网络相关
  36. api deps.support.retrofit2
  37. api deps.support.retrofit_gson
  38. api deps.support.okio
  39. //Gson转换容错处理
  40. api deps.support.gson_factory
  41. //SP(Key Value Cache)
  42. api deps.support.data_store_core
  43. api deps.support.data_store
  44. //权限管理
  45. implementation deps.support.permission
  46. //吐司
  47. implementation deps.support.toast_util
  48. //消息传递
  49. api deps.support.live_bus
  50. //RV Adapter
  51. api deps.support.brvah
  52. //刷新布局
  53. api deps.support.smart_refresh_core
  54. api deps.support.smart_refresh_head
  55. //XPopup弹窗
  56. api project(':lib_xpopup')
  57. //图片选择:带luban,ucorp
  58. api(deps.support.picture_selector) {
  59. exclude group: 'androidx.recyclerview'
  60. exclude group: 'androidx.appcompat'
  61. exclude group: 'com.google.android.material'
  62. exclude group: 'androidx.camera'
  63. exclude group: 'androidx.activity'
  64. }
  65. //轮播图Banner 排除内部ViewPager2
  66. api(deps.support.banner) {
  67. exclude group: 'androidx.viewpager2'
  68. exclude group: 'androidx.recyclerview'
  69. exclude group: 'androidx.appcompat'
  70. exclude group: 'androidx.activity'
  71. }
  72. //圆角控件
  73. api(deps.support.round_layout) {
  74. exclude group: 'androidx.core'
  75. exclude group: 'androidx.appcompat'
  76. exclude group: 'com.google.android.material'
  77. exclude group: 'androidx.activity'
  78. }
  79. }