⚠️ 警告: IOS 的 RIBs 已经迁移到了一个独立的仓库
RIBs 是 Uber 许多移动应用背后的跨平台架构框架。RIBs 这个名字是 Router、Interactor 和 Builder 的缩写,它们是此架构的核心组件。此框架专为拥有大量工程师和嵌套状态的移动应用而设计。
RIBs 架构提供以下特性:
要开始使用 RIBs,请参阅 RIBs 文档。其中描述了关于 RIBs 的关键概念,从它们的用途、结构到常见的用例。
要更实际地使用 RIBs,我们编写了一系列教程,通过实际示例引导您了解该架构的主要方面。
要了解我们创建 RIBs 的背景故事,请参阅我们在首次在生产环境中发布 RIBs 时撰写的这篇博文,并观看这段短视频,我们在其中讨论了 RIBs 架构的工作原理。
MVC、MVP、MVI、MVVM 和 VIPER 是架构模式。RIBs 是一个框架。RIBs 与基于 MV*/VIPER 的框架的区别在于:
关于 RIBs 还有一些其他新颖之处。但是,这些也可以使用其他 MV*/VIPER 框架来实现。这些是:
有关围绕 RIBs 构建的工具的使用方法,请参阅我们文档中的工具部分。
要集成 RIBs 的推荐最低设置,请将以下内容添加到您的 build.gradle
中
dependencies {
annotationProcessor 'com.uber.rib:rib-compiler-test:0.16.3'
implementation 'com.uber.rib:rib-android:0.16.3'
testImplementation 'com.uber.rib:rib-test:0.16.3'
}
还有许多可用的扩展包,包括 Kotlin 扩展、Jetpack Compose 支持、协程支持
如果您喜欢 RIBs,请查看我们团队的其他相关开源项目
Copyright (C) 2017 Uber Technologies
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
https://apache.ac.cn/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.