common-build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. apply plugin: 'kotlin-android'
  2. apply plugin: 'kotlin-kapt'
  3. apply plugin: 'dagger.hilt.android.plugin'
  4. dependencies {
  5. implementation fileTree(include: ['*.jar'], dir: 'libs')
  6. implementation 'androidx.appcompat:appcompat:1.2.0'
  7. implementation 'androidx.core:core-ktx:1.3.1'
  8. implementation 'com.google.android.material:material:1.2.1'
  9. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  10. implementation 'com.google.code.gson:gson:2.8.6'
  11. implementation 'com.squareup.retrofit2:retrofit:2.8.1'
  12. implementation 'com.squareup.retrofit2:converter-gson:2.8.1'
  13. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
  14. implementation 'io.reactivex.rxjava2:rxjava:2.2.13'
  15. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  16. implementation 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1'
  17. implementation 'com.kingja.loadsir:loadsir:1.3.6'
  18. implementation 'com.jaeger.statusbarutil:library:1.5.0'
  19. implementation 'com.hwangjr.rxbus:rxbus:2.0.0'
  20. implementation 'com.github.zhaokaiqiang.klog:library:1.6.0'
  21. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  22. implementation 'com.zhy:okhttputils:2.6.2'
  23. annotationProcessor 'androidx.annotation:annotation:1.1.0'
  24. //屏幕适配
  25. implementation 'me.jessyan:autosize:1.2.1'
  26. implementation 'com.tencent:mmkv-static:1.1.1'
  27. implementation 'com.qmuiteam:qmui:2.0.0-alpha08'
  28. implementation "com.qmuiteam:arch:2.0.0-alpha08"
  29. kapt "com.qmuiteam:arch-compiler:2.0.0-alpha08"
  30. kapt 'androidx.annotation:annotation:1.1.0'
  31. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  32. implementation "androidx.core:core-ktx:1.3.1"
  33. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  34. // Lifecycle components
  35. implementation "androidx.lifecycle:lifecycle-livedata:$rootProject.archLifecycleVersion"
  36. implementation "androidx.lifecycle:lifecycle-viewmodel:$rootProject.archLifecycleVersion"
  37. implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.archLifecycleVersion"
  38. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.archLifecycleVersion"
  39. implementation "androidx.lifecycle:lifecycle-runtime-ktx:$rootProject.archLifecycleVersion"
  40. implementation "androidx.lifecycle:lifecycle-livedata-ktx:$rootProject.archLifecycleVersion"
  41. //
  42. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  43. implementation 'com.sagar:coroutinespermission:2.0.2'
  44. // Kotlin components
  45. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$rootProject.coroutines"
  46. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$rootProject.coroutines"
  47. implementation 'com.githang:status-bar-compat:0.7'
  48. implementation 'com.yanzhenjie:permission:2.0.3'
  49. implementation("io.coil-kt:coil:1.3.2")
  50. implementation 'io.coil-kt:coil-gif:1.3.2'
  51. implementation "com.google.dagger:hilt-android:$hilt_version"
  52. kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
  53. implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02'
  54. // When using Kotlin.
  55. kapt 'androidx.hilt:hilt-compiler:1.0.0-alpha02'
  56. implementation 'com.alibaba:fastjson:1.2.68'
  57. //普通版本
  58. // implementation 'cn.yc:WebViewLib:1.2.4'
  59. }