Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.31 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.31 KB

Migration To AndroidX Tool

AndroidX replaces the original support library API's with packages in the androidx namespace. Thus, there might be XML/JS files to be migrated to AndroidX. Such as, AndroidManifest.xml or if codebase/third-party libraries contain previously used native API's then migration will be necessary in order to use newer version of the SF player.

Installation

Migration tool can be installed via npm easily from our public npm repository. The installation is pretty easy via Smartface Cloud IDE. Run the following code in terminal:

(cd scripts && npm install sf-androidx-migration)

Usage

node --max-old-space-size=2048 ~/workspace/scripts/node_modules/sf-androidx-migration/index.js ~/workspace/scripts/
node --max-old-space-size=2048 ~/workspace/scripts/node_modules/sf-androidx-migration/index.js ~/workspace/config/

❗Important Note❗

We recommend working in a separate branch when migrating. Also try to avoid refactoring your code while performing the migration.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT