Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.7k
Migration Steps to NativeScript 5.0
Emil Tabakov edited this pageJan 4, 2019 ·2 revisions
{N} 5.0 is now available and document outlines simple steps that you need to take in order to migrate your applications! The major features and improvements it includes are listed in ourrelease notes.
npm un -g nativescriptnpm i -g nativescript@latest
{N} 5.0 will require Android SDK 28.You can update it with following steps:
$ANDROID_HOME/tools/bin/sdkmanager --licenses$ANDROID_HOME/tools/bin/sdkmanager "tools"$ANDROID_HOME/tools/bin/sdkmanager "platform-tools"$ANDROID_HOME/tools/bin/sdkmanager "build-tools;28.0.3"$ANDROID_HOME/tools/bin/sdkmanager "platforms;android-28"
By completing these steps your system should be updated and if you runtns doctor
it should report that everything is ok and the system is set up to use latest packages. Now, it's time to update your NativeScript applications one at a time.
cd <your-app>
tns platform remove android tns platform remove iosrm -rf node_modulesrm -rf platformsrm -rf hooks
tns update latest
npm un nativescript-angular --savenpm i nativescript-angular@latest --save./node_modules/.bin/update-app-ng-depsnpm i
npm un nativescript-dev-webpack --save-devnpm i nativescript-dev-webpack@latest --save-dev./node_modules/.bin/update-ns-webpack --configs --depsnpm i
npm un nativescript-ui-listview --savenpm i nativescript-ui-listview@latest --savenpm un nativescript-ui-sidedrawer --savenpm i nativescript-ui-sidedrawer@latest --save# If you are using the RadListView or the RadSideDrawer you will need to update all other PRO UI components if any to avoid conflicting versions of the ui-core package in iOS.