We all need to start upgrading, Telerik has released v1.2.0 -- this is a important upgrade as it fixes several nasty bugs on IOS & Android! It also adds a lot of cool new features.
1. To upgrade the command line: npm install nativescript -g
(On a mac or linux you might need a "sudo" in front)
2. To Upgrade the platforms: tns platform upgrade ios or tns platform upgrade android
3. To upgrade the common modules; well that is still a pain. I would advice you to follow the same instructions I had you follow in the v1.0.0 to v1.1.0 upgrade, however if you have manually added anything to your "tns_modules" (which I would not recommend you do, you will want to copy or re-install it in your new tns_modules)
cd .. tns create testupgrade rd /S /Q <strong>YOURAPP</strong>\app\tns_modules move testupgrade\app\tns_modules <strong>yourapp</strong>\app rd /S /Q testupgrade
First things first, NativeScript command line plugin code works a lot better. You can now do:
tns plugin add android <somepluginname> and it works!
For those interested; my LiveSync plugin has already been updated for v1.2 with a slew of new features and a very simple install using the new tns plugin add android nativescript-livesync command.
Lots of new Features and here are some of the changes:
New Features
- (#393) Create application.android instance immediately and move all android-specific events to application.android.
- (#391) Implement cancellable back button pressed for Android.
- (#304) Expose additional properties of NavBar/ActionBar
- (#294) Add an optional fullscreen parameter to Page.showModal method.
- (#263) Provide per page option for manipulating NavigationBar
- (#191) Extend the set of support CSS properties in {N}
- Implement and consume NSFastEnumeration (#222)
- Memory management of class clusters (#214)
- Update to the latest JavaScriptCore (#211)
- Add application that uses the updated webkit webview to show web inspector frontend (#201)
- Transform (NSError **) parameters to JavaScript error throw (#186)
- CMake the JSC: Performance and memory diffs (#185)
- iOS 9 Support: Metadata for Objective-C Generics (#177)
- WebInspector: Enable WebInspector Performance Profiler (#164)
- Optimize require of JavaScript modules (#139)
- Support http cookies in build-in http client (#159)
- Optimize Strings marshaling between Java and V8 (#160)
Fixed
- (#423) Showing a modal page from another modal page results in error on iOS.
- (#422) Login dialog - iOS7: loginResult.userName returns password as a value instead of username
- (#421) Page.showModal seems completely broken in IOS
- (#406) Prompt dialog - iOS7: okButton returns result equal to false, cancelButton returns result equal to true
- (#405) FPS module will now correctly count frames while scrolling in iOS
- (#395) dialogs.action() causes app to crash on iPad
- (#372) Simple location app doesn't perform until real gps apps are also running
- (#368) [Screen Builder] Model is not updated when an observable object property is used in two text fields
- (#343) Not returning a view on the view parameter of the creatingView event handler of the placeholder crash the application
- (#322) Creating an Observable by passing a JSON object in the constructor does not define the respective properties on the Observable object instance.
- (#285)
visibility
property inconsistent with CSS - (#270) BackgroundImage property does not respect the CornerRadius when set to Border.
- (#261) WebView crash when navigating back
- Recursive calls from Objective-C to a method returning JavaScript function as block (#210)
- Enums which has no common prefix are not exposed correctly (#205)
- Recursive calls from JavaScript to Objective-C method receiving a block argument (#199)
- Fix TypeScript extends (#178)