An open API service indexing awesome lists of open source software.

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

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/)