RIBs is the cross-platform architecture framework behind many mobile apps at Uber. The name RIBs is short for Router, Interactor and Builder, which are core components of this architecture. This framework is designed for mobile apps with a large number of engineers and nested states.
The RIBs architecture provides:
To get started with RIBs, please refer to the RIBs documentation. This describes key concepts on RIBs, from what they are for, their structure and common use cases.
To get more hands on with RIBs, we have written a series of tutorials that run you through the main aspects of the architecture with hands-on examples.
To read about the backstory on why we created RIBs, see this blog post we wrote when releasing RIBs in production the first time and see this short video where we discussed how the RIBs architecture works.
MVC, MVP, MVI, MVVM and VIPER are architecture patterns. RIBs is a framework. What differentiates RIBs from frameworks based on MV*/VIPER is:
There are some other novel things about RIBs. However, these could also be implemented with other MV*/VIPER frameworks. These are:
For usage of the tooling built around RIBs, please see the Tooling section in our documentation.
To integrate the recommended minimum setup for RIBs add the following to your build.gradle
:
dependencies {
annotationProcessor 'com.uber.rib:rib-compiler-test:0.10.1'
implementation 'com.uber.rib:rib-android:0.10.1'
testImplementation 'com.uber.rib:rib-test:0.10.1'
}
To integrate RIBs into your project add the following to your Podfile
:
pod 'RIBs', '~> 0.9'
To integrate RIBs into your project using Carthage add the following to your Cartfile
:
github "uber/RIBs" ~> 0.9
If you like RIBs, check out other related open source projects from our team:
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
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.
link |
Stars: 6102 |
Last commit: 2 days ago |
StackRouterNavigator
(#401)WorkerBinder
to bind workers to Presenter
lifecycle (#402)RibEvents
& related classes to support tooling (#402)onUserLeaveHint
, onTrimMemory
, and onPIPModeChanged
(#405)Step
parameter to Step#onStep
(#394)Interactor
s to have constructors in order to support Motif (#397)rib-test-utils
to rib-test
(#400)ModernRouterNavigator
to StackRouterNavigator
(#401)Component
type parameter from Router
(#402)Xray
for lazy init & naming the Router
instead of Builder
(#405)rib-uava
artifact (#393)
com.google.guava:guava:xx-y-android
artifact insteads/com.uber.rib.core.Optional/com.google.common.base.Optional
tooling/autodispose-error-prone-checker
(#398)rib-android-test
artifact used only for testing RIBs (#404)Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco