common-build.gradle 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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.2.1")
  50. implementation "com.google.dagger:hilt-android:$hilt_version"
  51. kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
  52. implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02'
  53. // When using Kotlin.
  54. kapt 'androidx.hilt:hilt-compiler:1.0.0-alpha02'
  55. //普通版本
  56. // implementation 'cn.yc:WebViewLib:1.2.4'
  57. }