Giter VIP home page Giter VIP logo

Comments (17)

RoiJS avatar RoiJS commented on August 18, 2024

This is the official blog post about upgrading the Angular version to 12. https://blog.nativescript.org/nativescript-angular-12/index.html

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Update Angular Version refer to this page https://www.npmjs.com/package/@angular/cli#updating-angular-cli

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Use this reference to check the node compatibility version with angular https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

The current version of @nativescript/schematics which is responsible for code sharing feature is not yet updated to support angular version 12 and nativescript core 8. Its hard to manually update the version. I think we have to wait until the @nativescript/schematics plugin is updated.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Another solution to be able to proceed with the upgrade is to convert the reserbiz project to the regular nativescript project, the one without code sharing feature. Besides I don't think I will create a web version of the Resebiz. Only Android and iOS versions. For now, I will try this solution.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Unfortunately, the @nativescript/schematics has been deprecated https://www.npmjs.com/package/@nativescript/schematics. This means, the best solution that I have is to proceed with the solution from the previous comment.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Instead of trying to convert the current project to a non-shared version of Nativescript, I decided to create a new fresh nativescript application and start migrating files from the old project to this new project. To be honest, It will take some time to fully migrate the entire application. As much as possible, document all steps pertaining to the migration process.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Found an issue on @nativescript/firebase plugin. See thread EddyVerbruggen/nativescript-plugin-firebase#1873.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

I discontinued using the plugin https://www.npmjs.com/package/nativescript-cfalert-dialog.

I replaced plugin https://www.npmjs.com/package/nativescript-appversion with https://www.npmjs.com/package/@nativescript/appversion

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

The application is now running!

There are still issues on other pages. These things need to be documented and fixed.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

Looks like Tabs component is no longer supported on the version 8 of nativescript. This needs to be replaced by TabView component instead https://docs.nativescript.org/ui-and-styling.html#tabview

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

I have discovered some other issues that arises after the migration to the new version and these are the following:

alert(title: string, message: string, onClickEvent?: () => void) {
// const alertOptions: DialogOptions = {
// dialogStyle: CFAlertStyle.BOTTOM_SHEET,
// title: title,
// message: message,
// backgroundBlur: true,
// cancellable: true,
// buttons: [
// {
// text: ButtonOptions.OKAY,
// buttonStyle: CFAlertActionStyle.POSITIVE,
// buttonAlignment: CFAlertActionAlignment.END,
// textColor: '#FFFFFF',
// backgroundColor: '#eb5a2e',
// onClick: function () {
// if (onClickEvent) {
// onClickEvent();
// }
// },
// },
// ],
// };
// this._cfalertDialog.show(alertOptions);
}

confirm(title: string, message: string) {
// const confirmOptions: DialogOptions = {
// dialogStyle: CFAlertStyle.BOTTOM_SHEET,
// title: title,
// message: message,
// buttons: [
// {
// text: ButtonOptions.YES,
// buttonStyle: CFAlertActionStyle.POSITIVE,
// backgroundColor: '#eb5a2e',
// buttonAlignment: CFAlertActionAlignment.JUSTIFIED,
// onClick: function () {},
// },
// {
// text: ButtonOptions.NO,
// buttonStyle: CFAlertActionStyle.NEGATIVE,
// backgroundColor: '#D7D7D7',
// buttonAlignment: CFAlertActionAlignment.JUSTIFIED,
// onClick: function () {},
// },
// ],
// };
// return this._cfalertDialog.show(confirmOptions);
return of(confirm(message) ? ButtonOptions.YES : ButtonOptions.NO);

bandicam.2022-06-08.18-58-06-848.mp4
  • Another nativescript-ui-dataform related problem. There seems to be a problem with Switch , any form where this control exists makes the app crashes.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

I'm done refactoring dialog.service.ts file. I have instead use https://docs.nativescript.org/interaction.html#dialogs for both alert and confirm dialogs.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

The missing payload property on https://www.npmjs.com/package/@nativescript/local-notifications is now fixed. I have upgraded the version to @6.0.0.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

I have started refactoring some places which uses nativescript-ui-dataform. I decided to replace it with angular reactive forms. So far, I'm almost done refactoring the add term details form.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

At this moment, I have decided to not continue replacing the nativescript-dataform with angular reactive forms. Since the problem only exists with Switch control, I instead replaced all Switch control with Picker control with Yes and No options.

from reserbiz.

RoiJS avatar RoiJS commented on August 18, 2024

At this moment, I could say that the migration of the app from using the code sharing structure to the Nativescript standard project structure is now completed! Moving this issue to close now.

from reserbiz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.