Skip to content

chore(cli): migrate changes for Capacitor 9#8521

Open
jcesarmobile wants to merge 2 commits into
nextfrom
RMET-4736
Open

chore(cli): migrate changes for Capacitor 9#8521
jcesarmobile wants to merge 2 commits into
nextfrom
RMET-4736

Conversation

@jcesarmobile

Copy link
Copy Markdown
Member

The links to the docs don't exist yet, we should create them before releasing this, but the docs tasks are not on the sprint.

Also it will probably need some more changes in the future depending on what breaking changes we make in the plugins or if we make more changes on the templates.

Comment thread cli/src/tasks/migrate.ts
if (txt.includes('@main')) {
return; // Probably already updated
}
// Since navigation was an optional change in Capacitor 7, attempting to add density and/or navigation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seems out of place? It sounds it's referring to changes in Android Manifest but this is AppDelegate.

Comment thread cli/src/tasks/migrate.ts
// eslint-disable-next-line prefer-const
let allDependencies: { [key: string]: any } = {};
const libs = ['@capacitor/core', '@capacitor/cli', '@capacitor/ios', '@capacitor/android'];
const plugins = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this year we'll be launching next versions for all official plugins (I think we are aiming to do that?), should we update this list perhaps?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I suppose for this PR it would mean pointing everything to next, when Cap 9 rolls out we'd need to adapt this script to map other plugin versions that aren't 9.x (e.g. barcode scanner)
That being said, since they are official plugins, they should be here in this script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants