Uber RIBs Kotlin code generator for Android Studio
Original Java code generator from Uber can be viewed on this link.
https://github.com/uber/RIBs/tree/master/android/tooling
- Clone this repo
- Download, install, and run IDEA CE
- File -> Open...
- Select your local repo folder
- Make appropriate changes to
resources/template/kotlin
- Build -> Prepare Plugin Module 'rib-intellij-plugin' For Deployment
- You now have a JAR in your repo folder you can test with (see below)
- Move the JAR to
deploy
folder once you're satisfied before sending the PR
- Generate the JAR using above steps
- Open Android Studio
- Go to Preferences (⌘ + ,) -> Plugins
- Click Install plugin from disk...
- Select your JAR
- Restart Android studio via convenient button inside Preferences
- In a source package, create a New -> New RIB...
- Build the code to ensure no compile errors