Tag Archives: upgrade

NativeScript 2.0

It has been a long road since I first started with the just freshly released v0.90 slightly over a year ago.   I saw a product that was brand new, raw, full of life and it offered a huge amount of potential.   I decided that even though it wasn't nearly as popular as other recently released next generation product, ReactNative; that the underlying design of NativeScript was a much better foundation.  So, I took a chance and decided to use NativeScript for all my projects.  I am very grateful for Telerik open sourcing the entire stack, it has not only allowed me to see what geniuses the entire Telerik team is, but it has eliminated any concern of using this stack for well into future.

Now with the 2.0 release ,the future for NativeScript is even brighter.  So many new features, so many existing features honed to be even better!   This is a awesome release!

Some stats; In just the common core modules, we have had over 2,500 different commits since v0.90 by 40 different authors, of which over 1/3 of the authors are totally independent developers like me.   In addition, when I started we had maybe a handful of plugins, according the the http://plugins.nativescript.rocks/ we are up to over 150 different addons of which were made by over 45 different authors.     Not bad for a open source project no one had even heard of at the beginning of March of 2015...

The newest and biggest feature being release with version 2.0 is the Angular 2 support.  Several of my fellow compatriots, Nathan Walker & T.J. VanToll and Burke Holland have created some amazing things with Angular 2.0 and NativeScript.   If you are an Angular 2 fan, check them out.

Some of the other cool brand new features in v2.0 are;

  • CSS Z-Index & RGB w/ Alpha support, Awesome!
  • Android 6 Permission support
  • Normal component properties (like orientation) can now be set via CSS
  • CSS 3 Animations, Sweet!
  • Android Widget support
  • And several dozen additional bugs and feature were implemented.

Now to install this awesome new release in four simple steps:

  1. Install the new version of the NativeScript command line
    • npm install -g nativescript
  2. Remove the existing platform
    • tns platform remove android
      AND/OR
    • tns platform remove ios
  3. Add the platform(s) you need
    • tns plaform add android
      AND/OR
    • tns platform add ios
  4. Install the common core modules
    • npm install tns-core-modules@latest --save

 

 

NativeScript: Upgrading to v1.7.0

Since I have been posting these since the early versions of NativeScript; I figured I would continue. It has been several months since the last major upgrade and this version has all sorts of bug fixes and new goodies. The changelog is available at https://github.com/NativeScript/NativeScript/releases/tag/v1.7.0

The biggest new feature is the ability to override the Android Application and Activity class; this is huge news for those who needed to override a callback on either of these Java classes.     However their are lots of fixes and some things look a lot nicer.

1. npm install -g nativescript
if you now look at your nativescript --version you should have a nice v1.6.0 show up. You only have to do this one time.

2. npm install tns-core-modules@latest --save
What, that is it to install all the new core modules? WooHoo, so simple! Make sure you do this on EACH of your projects!

3. tns platform remove android AND/OR tns platform remove ios
Please note before you run the above commands if you have made ANY changes to the xcode project, plists or the Android manifest; you might want to back them up first, or you will have to manually make those changes again. Again this has to be done for EACH of your projects...

4. tns platform add android AND/OR tns platform add ios
This also needs to be done for each project. You can do a type package.json or cat package.json and you should see everything say "1.7.0"

 

Several of the android navigation issues are now fully fixed; however there is still one that is still outstanding.  That awesome NativeScript team is working on it and it will be fixed in the next week or so and then it will be released as a point release.