Migrates NativeScript projects and plugins to androidx
APACHE-2.0 License
Tool that migrates Support Library namespaces to the new AndroidX namespaces.
By default it searches recursively .java,.js,.ts,.xml and .gradle files. You can exclude files with specific extensions passing comma separated array at the end.
How to use:
npm install ns-androidx-migrate -g
ns-androidx-migrate <project-folder> <[ext1,ext2,..]>
Examples:
ns-androidx-migrate test-plugin
- search and replace test-plugin folder for all default file typesns-androidx-migrate test-plugin [js]
- search and replace test-plugin folder for all default files except .js
ones.ns-androidx-migrate test-plugin [ts,java]
- search and replace test-plugin folder for all default files except .ts
and .java
ones..
or whitespaces between them.This tool does not migrate any 3rd party packages or plugins that your project relies on.
Consider updating your project package.json
dependencies with AndroidX versions.
Consider deleting your node_modules
folder for faster migration.
Demo test-plugin
included.