RIBs is the cross-platform architecture behind many mobile apps at Uber. This architecture framework is designed for mobile apps with a large number of engineers and nested states.
The RIBs architecture provides:
- Shared architecture across iOS and Android. Build cross-platform apps that have similar architecture, enabling iOS and Android teams to cross-review business logic code.
- Testability and Isolation. Classes must be easy to unit test and reason about in isolation. Individual RIB classes have distinct responsibilities like: routing, business, view logic, creation. Plus, most RIB logic is decoupled from child RIB logic. This makes RIB classes easy to test and reason about independently.
- Tooling for developer productivity. RIBs come with IDE tooling around code generation, memory leak detection, static analysis and runtime integrations - all which improve developer productivity for large teams or small.
- An architecture that scales. This architecture has proven to scale to hundreds of engineers working on the same codebase and apps with hundreds of RIBs.
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.
- Clone this repository
- Integrate using your preferred installation mechanism
For usage of the tooling built around RIBs, please see the Tooling section in our documentation.
The integrate the recommended minimum setup for RIBs add the following to your build.gradle
:
dependencies {
annotationProcessor 'com.uber.rib:rib-compiler-test:0.9.1'
compile 'com.uber.rib:rib-android:0.9.1'
testCompile 'com.uber.rib:rib-test-utils:0.9.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
We'd love for you to contribute to our open source projects. Before we can accept your contributions, we kindly ask you to sign our Uber Contributor License Agreement.
- If you find a bug, please open an issue or submit a fix via a pull request.
- If you have a feature request, please open an issue or submit an implementation via a pull request
- If you want to contribute, please submit a pull request.
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.