• feat:表示新增功能,例如添加了一个新的模块、页面或API等 fix:表示修复bug,即修复代码中的错误或问题 refactor:表示重构代码,优化代码结构、可读性或性能,但不添加新功能或修复bug docs:表示文档更新,包括修改文档内容、添...
    • 2小时前
  • 实现效果 响应体若为json,则自动格式化 自定义输入方式 class LoggerInterceptor : Interceptor { private val gson = GsonBuilder().setPrettyPrinting()....
    • 19天前
  • 依赖: com.squareup.retrofit2:retrofit:2.11.0 com.squareup.retrofit2:converter-gson:2.11.0 com.squareup.okhttp3:logging-interc...
  • 安卓版本过高、权限收紧,通过Uril.fromFile获取的Uri无法分享,需要通过FileProvider,适配如下: 代码调整 fun Context.shareFile(file: File) { val intent = Intent()...
  • 1