Skip to content

Commit

Permalink
Merge pull request #225 from ionic-team/v1.101
Browse files Browse the repository at this point in the history
feat: capacitor 7 support
  • Loading branch information
damiant authored Jan 22, 2025
2 parents a0a572e + c54f8cc commit 3ccf3f6
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changelog

### Version 1.101

- Capacitor 7 migration support
- Capacitor 7 plugin migration support

### Version 1.100

- Fix filter for cookie plugin when capturing logs from Nexus Browser
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ionic",
"displayName": "Ionic",
"description": "Official extension for Ionic and Capacitor development",
"version": "1.100.0",
"version": "1.101.0",
"icon": "media/ionic.png",
"publisher": "Ionic",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions src/rules-capacitor-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export interface CapacitorPluginMigrationOptions {
}

export function checkCapacitorPluginMigration(project: Project) {
suggestCapacitorPluginMigration('6.0.0', '7.0.0', TipType.Capacitor, project, {
changesLink: 'https://capacitorjs.com/docs/updating/plugins/7-0',
migrateCommand: '@capacitor/plugin-migration-v6-to-v7@latest',
});
suggestCapacitorPluginMigration('5.0.0', '6.0.0', TipType.Capacitor, project, {
changesLink: 'https://capacitorjs.com/docs/updating/plugins/6-0',
migrateCommand: '@capacitor/plugin-migration-v5-to-v6@latest',
Expand Down
44 changes: 44 additions & 0 deletions src/rules-capacitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,50 @@ export async function checkCapacitorRules(project: Project, context: ExtensionCo
],
});

suggestCapacitorMigration('6.0.0', '7.0.0', TipType.Capacitor, project, {
coreVersion: '7.0.1',
versionTitle: '7',
versionFull: '7.0.0',
changesLink: 'https://capacitorjs.com/docs/updating/7-0',
androidStudioMin: '231.9392.1',
androidStudioName: 'Android Studio Ladybug (2024.2.1)',
androidStudioReason: '(It comes with Gradle 8.7.2)',
minJavaVersion: 21,
migrateInfo: 'Capacitor 7 sets a deployment target of iOS 14 and Android 15 (SDK 35).',
minPlugins: [
{ dep: '@ionic-enterprise/identity-vault', version: '5.10.1' },
{ dep: '@ionic-enterprise/google-pay', version: '2.0.0' },
{ dep: '@ionic-enterprise/apple-pay', version: '2.0.0' },
{ dep: '@ionic-enterprise/zebra-scanner', version: '2.0.0' },
],
ignorePeerDependencies: [
'@capacitor/action-sheet',
'@capacitor/app',
'@capacitor/app-launcher',
'@capacitor/browser',
'@capacitor/camera',
'@capacitor/clipboard',
'@capacitor/device',
'@capacitor/dialog',
'@capacitor/filesystem',
'@capacitor/geolocation',
'@capacitor/haptics',
'@capacitor/keyboard',
'@capacitor/local-notifications',
'@capacitor/motion',
'@capacitor/network',
'@capacitor/preferences',
'@capacitor/push-notifications',
'@capacitor/screen-reader',
'@capacitor/screen-orientation',
'@capacitor/share',
'@capacitor/splash-screen',
'@capacitor/status-bar',
'@capacitor/text-zoom',
'@capacitor/toast',
],
});

if (!isGreaterOrEqual('@ionic-enterprise/identity-vault', '5.1.0')) {
project.tip(
checkMinVersion(
Expand Down

0 comments on commit 3ccf3f6

Please sign in to comment.