{"id":649,"date":"2019-01-17T21:22:36","date_gmt":"2019-01-17T21:22:36","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=649"},"modified":"2019-01-17T21:22:38","modified_gmt":"2019-01-17T21:22:38","slug":"nativescript-5-1-1-released","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=649","title":{"rendered":"NativeScript 5.1.1 Released"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"395\" height=\"394\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/01\/ns-511.png\" alt=\"\" class=\"wp-image-650\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/01\/ns-511.png 395w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/01\/ns-511-150x150.png 150w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/01\/ns-511-300x300.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Even more fixes have come down the pike.   Based on some of the bugs that have been squashed it appears that if you are using v5.1.0 you want to upgrade to v5.1.1 as it should make your life a little easier.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Core Modules<font color=\"#191e23\"><span style=\"background-color: rgb(232, 234, 235);\"><b>T<\/b><\/span><\/font><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Technically they  released 5.1.1 of the core modules last month; as it was a quick release that fixed several issues with 5.1.0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">v5.1.1 several android issues; and added a new ios model system, they moved context into an options hash that you now pass in its place; in addition several other parameters that used to be separate parameters are now part of the context.  This cleanup allows new features to be added in the future.  The old <code>showModal<\/code> function is still supported, but marked as depreciated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5.1.2 was released with the rest of the updates this week; this version fixes the Android crash in Listview switching templates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Android<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Nothing done which needed a new Android runtime version...<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">iOS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Debug logs show in Chrome again<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Debugging on iOS when using HMR is now fixed, many issues resolved<br>Many Yarn support issues fixed<br>Sidekick and Preview app fixes<br>A couple CLI crashes fixed when running\/debugging.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Updating NativeScript<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To get updated; you first need to do:<br><strong>npm i -g nativescript@latest<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That will get you the latest version of NativeScript CLI; once you have it; do a \"tns --version\" and verify it prints out \"5.1.x\".&nbsp; Then do a \"<strong>tns doctor<\/strong>\" to verify your environment is up to date and has all the newest support tools you need for a successful build.&nbsp;&nbsp; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To update a project; you need to do the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Latest Runtimes:<br><strong>tns platform remove android &amp;&amp; tns platform add android@latest<\/strong><br><strong>tns platform remove ios &amp;&amp; tns platform add ios@latest<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Latest Core modules:<br><strong>npm r tns-core-modules --save<\/strong><br><strong>npm i tns-core-modules@latest --save<\/strong><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install Webpack &amp; HMR support:<br><strong>npm i nativescript-dev-webpack@latest --save-dev<\/strong><br>Note: you need to have nativescript-dev-webpack as a development dependency for HMR to work.&nbsp;&nbsp; <br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install latest NativeScript Angular plugin<br><strong>npm i nativescript-angular@latest --save<\/strong><br>You will then need to install the actual angular bits; which as of this post v6 is currently supported.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The addition of all the additional analytics\/tracking to the CLI reminded me; you can disable it permanently; if you value your privacy by doing:<br><strong>tns usage-reporting disable &amp;&amp; tns error-reporting disable<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Known issues<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>App Resume on Android can still crash in some situations. (Better than in 5.0)<\/li><li>HMR does NOT currently work with local plugin development out of the box. (See: <a href=\"https:\/\/github.com\/NativeScript\/nativescript-dev-webpack\/issues\/656\">https:\/\/github.com\/NativeScript\/nativescript-dev-webpack\/issues\/656<\/a>)<\/li><li>TNS --syncAllFiles  still frequently crashes and you have to kill it.<br><br><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Even more fixes have come down the pike. Based on some of the bugs that have been squashed it appears that if you are using v5.1.0 you want to upgrade to v5.1.1 as it should make your life a little easier. Core ModulesT Technically they released 5.1.1 of the core modules last month; as it&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=649\">Continue reading <span class=\"screen-reader-text\">NativeScript 5.1.1 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":[16,78],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-nativescript","tag-update","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/649","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=649"}],"version-history":[{"count":1,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/649\/revisions"}],"predecessor-version":[{"id":651,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/649\/revisions\/651"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}