/RxJava3-migration-tool

Migrate your code from RxJava2 to RxJava3 just running a script

Primary LanguageShellApache License 2.0Apache-2.0

RxJava3 migration tool

This tool replaces all the RxJava2 imports in your code to Rxjava3 imports. This way you can focus your efforts to check which other changes affect your code and fix them.

Usage

Clone this repo and then execute this command:

./migrate.sh <path/to/your/project/>

If you want to migrate just a module or a package instead of all the project write the folder path.

More info

This project supports the migration of these libraries to RxJava3:

If you want to add support to another library, please create an issue or a PR.

How does it work

This script reads from rxjava3-class-mapping.csv to know which replaces it should make. If you find an import that is not migrated, please fill an issue. Or even better: add it to rxjava3-class-mapping.csv and summit a PR!

Contributing

If you edit rxjava3-class-mapping.csv, please run this script to rearrange the lines again:

sort -r -u -o rxjava3-class-mapping.csv rxjava3-class-mapping.csv

Credits