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.
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.
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.
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!
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
- Dan Lew: He created the original script to migrate to AndroidX and I adapted it.