{"id":536,"date":"2017-06-28T19:17:59","date_gmt":"2017-06-28T19:17:59","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=536"},"modified":"2017-06-28T19:17:59","modified_gmt":"2017-06-28T19:17:59","slug":"nativescript-3-1-x-released","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=536","title":{"rendered":"NativeScript: 3.1.x released"},"content":{"rendered":"<p><a href=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/06\/ns-311.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-537 alignright\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/06\/ns-311.png\" alt=\"\" width=\"336\" height=\"336\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/06\/ns-311.png 600w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/06\/ns-311-150x150.png 150w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2017\/06\/ns-311-300x300.png 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/a>Looks like I was asleep at the wheel; according to NPM 3.1 was released late last week; and I totally missed it.\u00a0\u00a0 However, I am more on the ball today and saw that 3.1.1 was released today to fix some of the issues with 3.1.\u00a0\u00a0\u00a0 So lets cover the changes in both 3.1 &amp; 3.11<\/p>\n<ul>\n<li>Android Chrome development tools now supports the Elements tab; this allows you to see what css is assigned to elements in the UI DOM.\u00a0 Very nice feature!<\/li>\n<li>Android snapshots can be generated on Linux and Mac.\u00a0 This allows you to make a custom snapshot; snapshots will improve startup time; but they do have the downside of increasing the size of the APK a lot.<\/li>\n<li>Android now support ABI splits on first build.<\/li>\n<li>Profiling on Android, you can now enable a profiling to see what is taking time in your application.\u00a0 The feature is also available in <a href=\"http:\/\/fluentreports.com\/blog\/?p=528\">@next<\/a> on iOS.<\/li>\n<li>CLI has been improved to fix a lot of issues, including Node 8 \/ npm 5 support.<\/li>\n<li>Several fixes for the SearchBar, and TextFields now have a maxLength property!<\/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 or you can manually run the commands below<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@latest<\/strong><\/p>\n<p>For iOS<br \/>\n&gt; <strong>tns platform remove ios<\/strong><br \/>\n&gt; <strong>tns platform add ios@latest<\/strong><\/p>\n<p>Then you can type <strong><code>tns info<\/code><\/strong> and verify that everything says 3.1.x<\/p>\n<h2>Common Issues:<\/h2>\n<ol>\n<li>Plugins fails; this is a known issue do to the complete revamp of the lower levels of the core modules design.\u00a0 Some plugins need a lot of changes to work in 3.x; so you will have to wait for the third party authors to get caught up (Even I'm not caught up).\u00a0 \u00a0 My plugins site\u00a0 <a href=\"http:\/\/plugins.nativescript.rocks\">http:\/\/plugins.nativescript.rocks<\/a> should be listing both version v2 &amp; v3 plugins separately so that you can easily find 3.x or 2.x plugins.<\/li>\n<li>TypeScript incompatibilities; you should be using 2.2 or later with v3.x of TNS<\/li>\n<li>A new\u00a0 3.1 CSS issue with Background Color<\/li>\n<li>Android runtime can still crash randomly with <code>No weak reference found.<\/code> long standing unfixed bug...\u00a0 Disabling screen transitions, seems to help resolve the issue.<\/li>\n<li>Webpack might have random issues in Android builds, you might need to to a <code>tns platform clean android<\/code> to fix occasionally<\/li>\n<li>Issue with upgrading applications on <a href=\"http:\/\/fluentreports.com\/blog\/?p=516\">Android 6 &amp; 7 see blog post<\/a> on fix.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Looks like I was asleep at the wheel; according to NPM 3.1 was released late last week; and I totally missed it.\u00a0\u00a0 However, I am more on the ball today and saw that 3.1.1 was released today to fix some of the issues with 3.1.\u00a0\u00a0\u00a0 So lets cover the changes in both 3.1 &amp; 3.11&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=536\">Continue reading <span class=\"screen-reader-text\">NativeScript: 3.1.x 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,87],"class_list":["post-536","post","type-post","status-publish","format-standard","hentry","category-nativescript","tag-nativescript","tag-updates","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/536","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=536"}],"version-history":[{"count":1,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/536\/revisions"}],"predecessor-version":[{"id":538,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/536\/revisions\/538"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}