{"id":1076,"date":"2019-09-04T16:41:50","date_gmt":"2019-09-04T16:41:50","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=1076"},"modified":"2019-09-06T01:18:13","modified_gmt":"2019-09-06T01:18:13","slug":"nativescript-6-10-released","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=1076","title":{"rendered":"NativeScript 6.10 Released"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">NativeScript 6.10 has several fixes, and a couple new features to make it worth your time to upgrade. 6.1 has to be one of my favorite recent releases.   <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/09\/ns-610.png\" alt=\"\" class=\"wp-image-1079\" width=\"303\" height=\"302\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/09\/ns-610.png 395w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/09\/ns-610-150x150.png 150w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/09\/ns-610-300x300.png 300w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Being biased here, the best fix is the PR I did; it allows the tns command line to actually be used with our awesome <a href=\"https:\/\/proplugins.org\">https:\/\/proplugins.org<\/a> site.  You could easily use NPM to work around the issue; but it is always better if the standard NativeScript cli tooling also works.  So, I am ecstatic to see this show up in 6.1.     So now completely removing my bias; the new ios wifi deployment support (which I haven't tested); is something I have really needed for a while, so awesome job team!   <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Core Modules<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Their are a couple changes in Core modules that are worth noting.   First of all; for those who have used my awesome <a href=\"https:\/\/npm.proplugins.org\/-\/web\/detail\/@proplugins\/nativescript-platform-css\">nativescript-platform-css<\/a> plugin for years; the NativeScript team finally decided I was right!  \ud83d\ude00    They have not only <strike>stolen<\/strike>, er, borrowed, the idea to put device type in the class name (<code>ns-android<\/code> &amp; <code>ns-ios<\/code>) , but they also borrowed the same idea I did in my <a href=\"https:\/\/npm.proplugins.org\/-\/web\/detail\/@proplugins\/nativescript-orientation\">nativescript-orientation<\/a> plugin, which is put the orientation (<code>ns-landscape<\/code> &amp; <code>ns-portrait<\/code>)  into the class also.   Unfortunately, I am a bit sad they still didn't have the foresight to borrow my poor-mans-media query system; it is still way better than nothing.  Nor did they decide to use the device name css system, or any of the additional classes like <code>.notch<\/code>.   So if you still need media query or actual device name support or anything else the platform-css; then you can continue to use the ns-platform-css plugin.   And the ns-orientation plugin still offers the ability to force rotation and\/or lock the rotation to a certain direction, so neither plugin will be discontinued because of the additional functionality both plugins still offer that the team didn't borrow. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In addition another community PR was accepted to add CSS calculation support!  Unfortunately do to a minor oversight, it is broken in 6.10, but I would guess it should be fully fixed in 6.11.   <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CLI<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This team has hit several home runs this release with me.   In addition to getting my PR merged which solves the npm issues.   They also added awesome iOS Wifi deployment support.    And added iOS 13 and Xcode 11 support.   Overall the CLI release looks to be a very awesome release.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Android<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Android added several cool things in 6.1 also.  First and foremost; Initial Kotlin compatibility has been added.  This is very preliminary; so many things may not work.   <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Second they upgraded the the v8 Engine to 7.6 which adds the following features and enhancements<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>New much faster JSON parser<\/li><li>Promises.allsettled<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In addition to the cool features added, they have also updated it to allow the latest Android tools and latest gradle.  Also, they now added <code>gradle.properties<\/code> support so you can easily define properties next to your other gradle files...<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">IOS<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Added metadata generation from inner members<br>Fixed issues with latest version of iOS and Xcode<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\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\">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","protected":false},"excerpt":{"rendered":"<p>NativeScript 6.10 has several fixes, and a couple new features to make it worth your time to upgrade. 6.1 has to be one of my favorite recent releases. Being biased here, the best fix is the PR I did; it allows the tns command line to actually be used with our awesome https:\/\/proplugins.org site. You&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=1076\">Continue reading <span class=\"screen-reader-text\">NativeScript 6.10 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-1076","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\/1076","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=1076"}],"version-history":[{"count":4,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1076\/revisions"}],"predecessor-version":[{"id":1083,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1076\/revisions\/1083"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}