Prerequisites

Information

Before following the below steps, please make sure you have already migrated the app to the latest version using Neutrinos Studio's auto migrate feature.

Perform these steps if you are migrating your app from Neutrinos Studio 6.0.x to 6.1.0.

If you are migrating your app from previous releases of Neutrinos Studio, perform the migration steps mentioned in the below topics (based on the version from which you are upgrading) before you proceed with this topic.  

For example, If you are migrating your app from Neutrinos Studio version 5.0.4 to version 6.1.0, perform migration steps mentioned in migrate from 5.x to 6.0.0 and then perform the steps mentioned below. 


Migration Steps

Handle custom dependencies

Package.json fileIf you migrate your app to Neutrinos Studio version 6.1.0, dependencies such as npm and Angular packages will be deleted from the package.json file. This happens only if you have manually added these dependencies without using the Plugins Manager.

Make sure that you add these dependencies to your app using the  Plugins Manager.

Other files: Also, the following files will be replaced when your app gets migrated. If you had made any changes to these files, make sure that you perform the changes again. 

Angular version

Angular version is updated from 7.2.3 to 8.2.0. 

To support Angular version 8.2.0 in Neutrinos Studio, perform the following updates in your app: 

Earlier:@ViewChild(‘signaturecanvas’)
To be updated to:@ViewChild(‘signaturecanvas’, {static: <true> or <false>})

The rxjs-compat package

The rxjs-compat package was created so that developers could upgrade to RxJS version 6 without having to modify code. It re-implements the prototype-patching operators and makes available all of the RxJS-version-5 export locations.

In this version of Neutrinos Studio, this package is not supported as Angular 8 has dropped support for this package. Therefore, there are a couple of breaking changes that may affect end apps mainly around the use of observables, map, import statements, timeout, etc. To see a complete list of breaking changes that could occur when removing this package, refer the dropping-the-compatibility-layer section.


Flex Layout 

Flex layout is upgraded from version 7.0.0-beta.19  to 8.0.0-beta.26.


Node.js version

The node.js version is updated to support versions between 10.9.x and 12.x.x.


Mobile Builds 

If your app supports mobile platforms, and if you are migrating from previous versions of Neutrinos studio, perform the following steps:

  1. In your app directory, open the gulpfile.js file.
  2. Add this code snippet at the end of the file:

    JavaScript
    var fs = require('fs');
    gulp.task('create-www', () =>
    {
    if (!fs.existsSync('/www')) {
    return gulp.src('*.*', { read: false })
    .pipe(gulp.dest('./www'));
    }
    }
    );

  3. From your app directory, open the package.json file with any editor and replace "app-prepare": "cordova prepare", with "app-prepare": "gulp create-www && cordova prepare".

This migration step creates a www folder in your app directory when you trigger a mobile build from the Neutrinos Studio.