{"id":709,"date":"2019-03-22T18:20:18","date_gmt":"2019-03-22T18:20:18","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=709"},"modified":"2019-03-28T17:19:32","modified_gmt":"2019-03-28T17:19:32","slug":"nativescript-5-30-released","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=709","title":{"rendered":"NativeScript 5.30 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\/03\/ns-530.png\" alt=\"\" class=\"wp-image-711\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/03\/ns-530.png 395w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/03\/ns-530-150x150.png 150w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/03\/ns-530-300x300.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">NativeScript 5.3 only offers a smaller number of fixes and features than usual; but is still well worth upgrading to.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The most interesting update (for me) is actually the Android V8 engine has been upgraded yet again, but this time to a version that offers some nice performance benefits.  It is always nice when an upgrade will increase the speed of your app with just a rebuild of it.<br>In addition some awesome work has been done on the iOS engine that should also result in a speed enhancement. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> So just upgrading the runtimes to 5.3 should give you a faster app...<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Important Depreciation Notice<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In version 5.2 short imports have been depreciated; I do not know when they will no longer actually work; but basically things like  require(\"http\")  are no long valid; you need to do require(\"tns-core-modules\/http\").  The primary reason for this is that webpacking requires the full path; and it has problems with short imports.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Core Modules <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The core modules offers the following enhancements and fixes...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Resource ID on Android error fixed during Navigation<br>Webview and TabView fixes<br>Icons on Tabview and ActionBar should look better<br>View classes now have the missing .background* Style options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Android<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Upgrade to V8 7.3.492 - which offers <br>- Faster Await<br>- Faster JS Parsing<br>- Faster Spread Elements<br>- Embeddins supported in ia32 now<br>NativeScript Arm64 support built in on release versions<br>Static Binding Generator fixes and enhancements<br>Gradle 3.3.2 support.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">iOS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Lazy Evaluation - Performance<br>Many Debugger fixes<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">HMR is no longer considered Beta; almost all critical issues with HMR are now resolved.<br>Several debugger issues resolved<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/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.3.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>Android Q is not supported properly; The fix is slated for 3.3.1<\/li><li>TNS frequently (for me at least) kills the build with \"Error is: cp: cannot create directory \" and to fix you have to reset your platforms.  (This might be more plugin development related corner case)<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>NativeScript 5.3 only offers a smaller number of fixes and features than usual; but is still well worth upgrading to. The most interesting update (for me) is actually the Android V8 engine has been upgraded yet again, but this time to a version that offers some nice performance benefits. It is always nice when an&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=709\">Continue reading <span class=\"screen-reader-text\">NativeScript 5.30 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":[15],"tags":[16,60],"class_list":["post-709","post","type-post","status-publish","format-standard","hentry","category-nativescript","tag-nativescript","tag-upgrade","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/709","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=709"}],"version-history":[{"count":3,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}