Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Latest commit

 

History

History
66 lines (48 loc) · 3.31 KB

README_CN.md

File metadata and controls

66 lines (48 loc) · 3.31 KB

image

image image image image

什么是 ViaBus

⭐ ViaBus 是一款响应式架构,借助总线转发数据的请求和响应,实现ui、业务的完全解耦。

image

为什么选择 ViaBus

  • 1分钟即可掌握,ViaBus 的结构与使用方式。💡
  • 当下就可使用,对原项目架构完全兼容,即插即用。🔥
  • 允许以 业务或模块为单位,每天1小时,完成渐进式重构。💧
  • 职责边界明确,无论是写 UI 还是业务,不再被打断、相互不拖累。🌱
  • 原生接口即可实现 跨 Activity、跨组件的 实时双向通信。⚡
  • 无编译时注解,基于 Viabus 编写的组件可在任何项目中直接使用。🌎
  • 更少的重复工作,扁平的交互模式,代码复用率提升至100%。💪
  • ...

更多依据详见 Wiki - Android:四大架构的优缺点,你真的了解吗?

如何使用 ViaBus

在模块的 build.gradle 添加如下 任一 依赖

//持续集成的 viabus 快速开发框架(包含 viabus 内核以及热门框架,已用于我司产品的快速开发和重构)
implementation "com.kunminx.viabus:architecture:0.4.8"

//纯粹的 ViaBus 内核(依赖它你就可以定制属于你的 ViaBus 架构啦)
implementation "com.kunminx.viabus:core:0.4.8"

使用方法详见 Wiki - 1分钟掌握 ViaBus 架构和使用

谁在用 Viabus

见证者 Logo 作品地址或项目链接
MyateJx sakernote 舒心录 - 酷安老牌记事本 app
MyateJx gankio gank.io 客户端

鸣谢

RxJava

License

Copyright 2018 KunMinX

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.