{"id":479,"date":"2017-02-01T19:33:48","date_gmt":"2017-02-01T19:33:48","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=479"},"modified":"2017-02-01T19:33:48","modified_gmt":"2017-02-01T19:33:48","slug":"nativescript-2-5-0-released","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=479","title":{"rendered":"NativeScript 2.5.0 - Released"},"content":{"rendered":"<p><a href=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/02\/ns-250.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-480 alignright\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/02\/ns-250.png\" alt=\"\" width=\"341\" height=\"341\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/02\/ns-250.png 600w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/02\/ns-250-150x150.png 150w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/02\/ns-250-300x300.png 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/a>Some of you might have seen the all New version 2.5.0 has been released today.\u00a0 For the first time that I can recall; Telerik has actually beat me to the release news.\u00a0\u00a0 You can read the official blog post <a href=\"https:\/\/www.nativescript.org\/blog\/nativescript-25-is-now-available\">here<\/a>.<\/p>\n<p>Some of the new features<\/p>\n<ul>\n<li>Better Debugging using Chrome Developer tools<\/li>\n<li>Working Webpack 2.0<\/li>\n<li>Flexbox layout fixes<\/li>\n<li>Updated Android Runtime Engine (even more ES6 support)<\/li>\n<li>More css support for ActionBar<\/li>\n<li>Lots of bug fixes<\/li>\n<\/ul>\n<h2>Upgrading (Core):<\/h2>\n<p>First of all to upgrade is done is a couple steps:<br \/>\n&gt; <strong>npm install -g nativescript@latest<\/strong><br \/>\n&gt; <strong>npm install tns-core-modules@latest --save<\/strong><\/p>\n<p>Next try the new update command<br \/>\n&gt; <strong>tns update<\/strong><\/p>\n<p>For Android:<br \/>\n&gt; <strong>tns platform remove android<\/strong><br \/>\n&gt; <strong>tns platform add android<\/strong><\/p>\n<p>For iOS<br \/>\n&gt; <strong>tns platform remove ios<\/strong><br \/>\n&gt; <strong>tns platform add ios<\/strong><\/p>\n<p>Then you can type <strong><code>tns info<\/code><\/strong> and verify that everything says v2.5.x<\/p>\n<h2>Some Changes<\/h2>\n<ol>\n<li><strong>tns run<\/strong> does not work the same way anymore; it is now equal to <strong>tns livesync --watch<\/strong><\/li>\n<li>To actually \"rebuild\" the app; use <strong>tns run android --clean<\/strong><\/li>\n<li><\/li>\n<\/ol>\n<h2>Common Issues:<\/h2>\n<ol>\n<li>In some cases when doing a <strong>tns platfrom add android<\/strong>, the <em>package.json<\/em> file gets a entry in the dependencies section for <em>\"tns-android\": \"^2.5.0\"<\/em> which will cause any following builds to fail with the error code: the plugin tns-android is already installed.\u00a0\u00a0 Fix: Delete it out the package.json.<\/li>\n<li>ActionBar items -- backgroundColor do not use color names; only use Hex values.\u00a0 Using color names can cause the app to crash.<\/li>\n<li>Android <code>--release<\/code> apps and error about can't find package \"nativescript-snapshot@x.y.z\" or \"nativescript-angular-snapshot@x.y.z\" in the registry.\u00a0\u00a0\u00a0\u00a0 A couple things can be causing this; first make sure you have updated everything.\u00a0\u00a0 Second, occasionally the hooks folder gets out of sync, you might have to delete your hooks &amp; node_modules folder and do a <code>npm i<\/code> to reinstall everything.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some of you might have seen the all New version 2.5.0 has been released today.\u00a0 For the first time that I can recall; Telerik has actually beat me to the release news.\u00a0\u00a0 You can read the official blog post here. Some of the new features Better Debugging using Chrome Developer tools Working Webpack 2.0 Flexbox&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=479\">Continue reading <span class=\"screen-reader-text\">NativeScript 2.5.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":[1],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/479","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=479"}],"version-history":[{"count":1,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":481,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions\/481"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}