{"id":79,"date":"2015-06-14T06:16:11","date_gmt":"2015-06-14T06:16:11","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=79"},"modified":"2015-06-14T07:12:41","modified_gmt":"2015-06-14T07:12:41","slug":"nativescript-v1-1-0-released","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=79","title":{"rendered":"NativeScript v1.1.0 - Released"},"content":{"rendered":"<p>NativeScript v1.1.0 was just released a couple days ago. \u00a0\u00a0 Here is what is new and how to get all the cool new features.<\/p>\n<p>Some of the changes are:<\/p>\n<ul>\n<li>Exposing Application events as Real Event [<a href=\"https:\/\/github.com\/NativeScript\/NativeScript\/blob\/master\/apps\/tests\/app\/app.ts\">example<\/a>]<\/li>\n<li>Parent is now exposed in itemLoading event<\/li>\n<li>Repeater Component Added [<a href=\"https:\/\/github.com\/NativeScript\/docs\/blob\/master\/layouts.md#repeating-layout-children\">more<\/a>]<\/li>\n<li>TabView.selectedIndexChanged Event added<\/li>\n<li>Hint property for TextView<\/li>\n<li>NavigatingTo\/From, NavigatedTo\/From events added to Page component<\/li>\n<li>Search now has Hint Color<\/li>\n<li>Dozens of Bug Fixes<\/li>\n<li>View and GestureObserver classes has breaking changes [<a href=\"https:\/\/github.com\/NativeScript\/NativeScript\/issues\/242\">more<\/a>]<\/li>\n<\/ul>\n<p>If you are currently running version 0.9.0 or v1.0.0 then here are the steps to upgrade you to the wonderful version 1.1.0<\/p>\n<p>&nbsp;<\/p>\n<h2>Upgrading the NativeScript Tools:<\/h2>\n<p>First thing to do is upgrade your TNS (or NativeScript) command so go to a command prompt (if on windows it will probably need to be an Administrator command prompt) or\u00a0 bash\/terminal prompt.<\/p>\n<p>Type \"<strong>tns <\/strong>--<strong>version<\/strong>\" or \"<strong>nativescript <\/strong>--<strong>version<\/strong>\", if you already have version 1.1.0 then you can skip this step as you already have the latest nativescript tools.<\/p>\n<p>Windows (from an Administrator prompt):<br \/>\n<pre>npm install -g nativescript<\/pre><br \/>\nLinux\/Macintosh:<br \/>\n<pre>sudo npm install -g nativescript<\/pre><br \/>\nThis will update you to the latest version of the command nativescript command line.\u00a0 And you should type \"<strong>tns <\/strong>--<strong>version<\/strong>\" after to verify it has been upgraded to v1.1.0<\/p>\n<h2>Upgrading the Platforms:<\/h2>\n<p>Next thing you will need to upgrade is your \"platforms\", so navigate to the root level folder where your project is; and then if you are working on a Android project type:<br \/>\n<pre>tns platform update android<\/pre><br \/>\nand\/or (if you are working on a ios version on a Macintosh)<br \/>\n<pre>tns platform update ios<\/pre><br \/>\n&nbsp;<\/p>\n<h2>Upgrading the Common Library:<\/h2>\n<p>Unfortunately The next piece is a lot more tricky as it requires a lot more steps. \u00a0 Hopefully this will be fixed in v1.2.0. \u00a0\u00a0 But right now it is a small bit of a pain.\u00a0\u00a0 The easiest method is to create a new project and then copy the tns_modules out of the new project into your existing project and then delete the dummy project. \u00a0\u00a0 \u00a0 So at a command line do the following (assuming your still in your main app project folder from the steps above). \u00a0\u00a0 Please remember to replace <strong>&lt;yourapp&gt;<\/strong> with whatever folder name your app is in.<\/p>\n<p>Windows:<br \/>\n<pre>cd ..\ntns create testupgrade\nrd \/S \/Q &lt;strong&gt;&amp;lt;yourapp&amp;gt;&lt;\/strong&gt;\\app\\tns_modules\nmove testupgrade\\app\\tns_modules &amp;lt;&lt;strong&gt;yourapp&lt;\/strong&gt;&amp;gt;\\app\nrd \/S \/Q testupgrade<\/pre><br \/>\nLinux\/Macintosh:<br \/>\n<pre>cd ..\ntns create testupgrade\nrm -rf &amp;lt;&lt;strong&gt;yourapp&lt;\/strong&gt;&amp;gt;\/app\/tns_modules\nmv testupgrade\/app\/tns_modules &amp;lt;&lt;strong&gt;yourapp&lt;\/strong&gt;&amp;gt;\/app\nrm -rf testupgrade<\/pre><br \/>\n&nbsp;<\/p>\n<h2><strong>LiveSync Update:<\/strong><\/h2>\n<p>Last piece, If you are using my awesomely cool <a href=\"http:\/\/www.github.com\/nathanaela\/nativescript-livesync\" target=\"_blank\">LiveSync<\/a> code; you have one more step you need to do; unfortunately Telerik has not yet accepting my patch into the android platform. \u00a0 So\u00a0 I have pulled the same 1.1.0 platform source code as they released then added my patch and again compiled it for your usage (if you wish to compile it yourself; the readme file in the <a href=\"http:\/\/www.github.com\/nathanaela\/nativescript-livesync\" target=\"_blank\">LiveSync<\/a> project explains how.) \u00a0 \u00a0 \u00a0 The pre-compiled runtimes can be pulled from <a href=\"http:\/\/www.master-technology.com\/tns-android-1.1.0.tgz\" target=\"_blank\">http:\/\/www.master-technology.com\/tns-android-1.1.0.tgz<\/a><\/p>\n<p>After downloading and moving this file into your main project app directory (i.e. where the watcher.js file lives); The steps are as follows (Oh you will need to make sure to copy your androidmanifest.xml file from the platform\/android folder if you have made <strong>**any**<\/strong> changes to it that you want to keep as this will install a new copy):<\/p>\n<p>Windows:<br \/>\n<pre>tns platform remove android\ntns platform add android --frameworkPath=.\\tns-android-1.1.0.tgz\ncd app\nnpm install nativescript-livesync@latest --save\ncopy \/y node_modules\\nativescript-livesync\\support\\watcher.js ..<\/pre><br \/>\nMacintosh\/Linux:<br \/>\n<pre>tns platform remove android\ntns platform add android --frameworkPath=.\/tns-android-1.1.0.tgz\ncd app\nnpm install nativescript-livesync@latest --save\ncp node_modules\/nativescript-livesync\/support\/watcher.js ..<\/pre><br \/>\nAnd you will be done.\u00a0 LiveSync will continue to work and you will be fully on the 1.1.0 Release!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NativeScript v1.1.0 was just released a couple days ago. \u00a0\u00a0 Here is what is new and how to get all the cool new features. Some of the changes are: Exposing Application events as Real Event [example] Parent is now exposed in itemLoading event Repeater Component Added [more] TabView.selectedIndexChanged Event added Hint property for TextView NavigatingTo\/From,&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=79\">Continue reading <span class=\"screen-reader-text\">NativeScript v1.1.0 - Released<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[3,15],"tags":[17,16],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-javascript","category-nativescript","tag-android","tag-nativescript","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":4,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}