Updating Core Framework Components in Telerik Platform
Learn how to update NativeScript and Apache Cordova frameworks with Telerik Platform and Telerik AppBuilder.
Join the DZone community and get the full member experience.Join For Free
whether you are creating a hybrid mobile app with apache cordova or a native mobile app with nativescript , you always want to make sure you're on the ball with the latest framework updates. luckily for you, telerik platform by progress makes it easy by providing a clear ui to switch between versions of the frameworks — and even to update individual components as needed.
updating the nativescript framework
while nativescript has stabilized and is more than ready for your production-level app development, you still probably want to stay up to date with the most recent release. to do so, open up your nativescript project's properties window and, in the general tab, find the nativescript version dropdown:
easy enough, right?
you'll find the latest versions of nativescript here along with occasionally finding bleeding-edge versions of nativescript that are marked "experimental." what does "experimental" mean? it means that we haven't fully vetted that version of nativescript to work with every part of the telerik platform, but do want to provide it for our users who need the very latest.
updating core nativescript modules
if for some reason you need to update one or more core nativescript modules before a big framework release includes them (maybe there are bug fixes or updated functionality), it's an easy process:
first, navigate to the package manager dialog by right-clicking on your project name and choosing manage packages . next, make sure the npm tab is highlighted, and, if not already selected, search for "tns-core-modules." this will bring up the following:
from the dropdown provided, choose the version of the core modules you need to use.
updating the cordova framework
developing a hybrid mobile app with apache cordova? no problem — it's just as easy to update to the latest cordova bits. just as you learned how to update to the latest version of nativescript, you can do the same with cordova. in your project's properties window and general tab, choose the appropriate cordova version from the dropdown provided:
again, you may sometimes find a version of cordova labeled "experimental." like with experimental nativescript versions, it just means we haven't fully vetted this version of cordova, but wanted to make it available as early as possible.
updating core cordova plugins
now there do come times when you need to update one of the many core cordova plugins you are using. just as with updated nativescript modules, if there are bug fixes or improvements that you rely on, you probably don't want to wait for the next big cordova release!
to update your core cordova plugins, you have to upload them as custom plugins, which is super easy to do:
- download the plugin zip archive from its github repository ( search the apache org on github to find them)
- open up your project's properties window
- choose the plugins tab
- in the core plugins section, uncheck the box for the plugin that you want to update
- in the custom plugins section at the top, click import
- drag and drop the plugin archive you downloaded in step 1 and click upload
- when the upload is complete, make sure that the plugin files are nested in a folder in the plugins node in your solution explorer
and you're done!
bonus: updating third-party plugins and kendo ui
another common activity is updating other custom nativescript or cordova plugins you've previously included in your app. if you need to update a previously uploaded custom plugin, you can update to a newer version by following the same instructions as provided to update core cordova plugins in the previous section.
if, however, you've added plugins from the telerik verified plugins marketplace , we make it even simpler. from the manage packages dialog, search for the plugin you would like to update:
if an update is available, you'll see the update badge notification along with a change button that appears after you choose a new version of the plugin from the dropdown provided.
finally, if you'd like to do the same for an updated version of kendo ui , you can do so by selecting the kendo ui tab provided and walking through the same steps!
Published at DZone with permission of , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.