DEV Community

Devin Shoemaker
Devin Shoemaker

Posted on • Originally published at nxtend.dev

2

Release @nxtend/capacitor 2.0.2

Nxtend Capacitor v2 is here! This release has a number of big changes that warrated a major release. Capacitor project structures have been changed, Nx Console support has been improved, and dependencies have been updated. That being said, a manual migration is needed to support upcoming capabilities. Read the full blog post for more information on updating the plugin and migrating your projects. Please note, due to an npm issue, the current release is 2.0.2.

Fixes

  • fix Windows support

Features

  • update Capacitor to 2.4.2
  • add Capacitor configs to frontend application
  • add or update package.json in project folder when generating a Capacitor project
  • add builder configurations for Nx Console
  • add add-plugin schematic for adding Capacitor plugins

BREAKING CHANGES

  • Capacitor plugins must now be added to both the root and project-level package.json

One of the major changes in this release is that Capacitor configurations are not added to a dedicated application (e.g. my-app-cap) but rather added directly to the associated frontend project. This also means that the you will need to run @nxtend/capacitor builder commands from the frontend project as well (e.g. nx run my-app:sync --project android).

Another notable change is that the capacitor-project schematic will now add or update the package.json in the project folder. This was done to increase compatibility with the Capacitor CLI and from now on Capacitor plugins should be added both to the root and project-level package.json. To help with this, an add-plugin schematic has been added.

For more details on migrating your Capacitor project, visit the MIGRATION.md.

For information on upgrading the plugin, visit the nxtend upgrades documentation.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay