https://github.com/smartface/sf-androidx-migration
SF projects created before 26.12.19 needs to be migrated
https://github.com/smartface/sf-androidx-migration
Last synced: about 1 year ago
JSON representation
SF projects created before 26.12.19 needs to be migrated
- Host: GitHub
- URL: https://github.com/smartface/sf-androidx-migration
- Owner: smartface
- Created: 2019-12-04T13:37:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T11:05:02.000Z (about 3 years ago)
- Last Synced: 2025-02-01T20:30:18.110Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://developer.smartface.io/docs/accessing-native-apis) 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:
```bash
(cd scripts && npm install sf-androidx-migration)
```
## Usage
```javascript
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](https://choosealicense.com/licenses/mit/)