build.gradle 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. apply plugin: 'kotlin-android'
  4. apply plugin: 'kotlin-android-extensions'
  5. apply plugin: 'kotlin-kapt'
  6. android {
  7. compileSdkVersion build_versions.target_sdk
  8. defaultConfig {
  9. minSdkVersion build_versions.min_sdk
  10. targetSdkVersion build_versions.target_sdk
  11. versionCode 1
  12. versionName "1.0"
  13. // javaCompileOptions {
  14. // annotationProcessorOptions {
  15. // arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
  16. // }
  17. // }
  18. javaCompileOptions {
  19. annotationProcessorOptions {
  20. arguments = [AROUTER_MODULE_NAME: project.getName()]
  21. }
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. buildTypes {
  29. release {
  30. buildConfigField "boolean", "LOG_DEBUG", "true"
  31. zipAlignEnabled false
  32. shrinkResources false
  33. minifyEnabled false
  34. debuggable true
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. }
  37. debug {
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. buildFeatures {
  43. viewBinding = true
  44. }
  45. }
  46. dependencies {
  47. implementation fileTree(include: ['*.jar'], dir: 'libs')
  48. implementation 'androidx.appcompat:appcompat:1.2.0'
  49. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  50. annotationProcessor deps.arouter_compiler
  51. kapt deps.arouter_compiler
  52. api deps.butterknife
  53. annotationProcessor deps.butterknife_annotationProcessor
  54. kapt deps.butterknife_annotationProcessor
  55. api deps.support.multidex
  56. api deps.support.app_compat
  57. api deps.support.v4
  58. api deps.viewpager2
  59. api deps.support.design
  60. api deps.support.percent
  61. api deps.constraint_layout
  62. api deps.persistent_cookie
  63. api deps.imagepicker
  64. api deps.dagger.runtime
  65. api deps.dagger.android
  66. api deps.dagger.android_support
  67. api deps.kotlin.stdlib
  68. api deps.kotlin.coroutines_android
  69. api deps.kotlin.coroutines_core
  70. api deps.event_bus
  71. api deps.gson
  72. api deps.autosize
  73. api deps.circleimageview
  74. api deps.baseRecyclerViewAdapterHelper
  75. //view
  76. api deps.photo_view
  77. api deps.easy_recycler
  78. api deps.material_dialog
  79. api deps.collapsibletextview
  80. api deps.lottie
  81. api deps.avi
  82. api deps.progressmanager
  83. api deps.immersionbar
  84. api deps.immersionbar_components
  85. api deps.smarttablayout
  86. api deps.smarttablayout_ogaclejapan
  87. api deps.layoutManagerGroup
  88. api deps.flexbox
  89. api deps.smartrefresh
  90. api deps.smartRefreshHeader
  91. api deps.flowlayout
  92. api deps.danmaku
  93. api deps.pickerView
  94. api deps.youth_banner
  95. api deps.fillblankview
  96. api deps.gif_lib
  97. api deps.easySwipeMenuLayout
  98. api deps.videoProcessor
  99. api deps.magicIndicator
  100. api deps.universalimageloader
  101. api deps.pageindicatorview
  102. api deps.qmui
  103. api deps.loopView
  104. //router
  105. api deps.arouter_api
  106. annotationProcessor deps.dagger.android_support_compiler
  107. annotationProcessor deps.dagger.compiler
  108. // api deps.matisse // 当前使用module依赖兼容android 10 的拍照无法回传正确的路径问题
  109. api project(':matisse_v0.5.3-beta')
  110. api project(':lib_audio')
  111. api project(':uchat_core')
  112. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
  113. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
  114. // 添加所有 module [包括 Transferee、GlideImageLoader、PicassoImageLoader、UniversalImageLoader]
  115. api 'com.github.Hitomis:transferee:1.6.1'
  116. // 兼容 29 的字体
  117. api 'io.github.inflationx:calligraphy3:3.1.1'
  118. api 'io.github.inflationx:viewpump:2.0.3'
  119. api deps.lifecycle.viewmodel
  120. api deps.lifecycle.livedata
  121. api deps.lifecycle.process
  122. api deps.lifecycle.common
  123. // 加载 apng 动画图片 https://github.com/penfeizhou/APNG4Android
  124. // api 'com.github.penfeizhou.android.animation:apng:2.0.0'
  125. // viewpager 转换器
  126. // api 'com.github.leifu1107:ViewpagerTransformer:V1.0'
  127. // api 'com.opensource:captchaview:1.0.3'
  128. // api 'com.umeng.umsdk:oaid_vivo:1.0.0.1'
  129. }