Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Capacitor 7 Upgrades #291

Merged
merged 13 commits into from
Jan 21, 2025
12 changes: 6 additions & 6 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"capacitorVersion": "6.0.0",
"capacitorVersion": "7.0.0",
"iosMinVersion": "13.0",
"androidMinSdk": "22",
"androidMinSdk": "23",
"rnMinVersion": "0.74.2",
"androidLiveUpdatesVersion": "0.5.5",
"rnVersion": "0.7.0",
"iosVersion": "0.11.0",
"androidVersion": "0.10.3",
"rnVersion": "0.7.1",
"iosVersion": "0.12.0",
"androidVersion": "0.12.0",
"cliVersion": "0.3.1",
"version": "0.10.0"
"version": "0.12.0"
}
14 changes: 7 additions & 7 deletions plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@capacitor/core": "^6.0.0",
"@capacitor/core": "^7.0.0",
"@capacitor/docgen": "^0.0.10",
"@ionic/eslint-config": "^0.3.0",
"@ionic/eslint-config": "^0.4.0",
"@ionic/prettier-config": "^1.0.1",
"@ionic/swiftlint-config": "^1.1.2",
"@ionic/swiftlint-config": "^2.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"eslint": "^7.11.0",
"eslint": "^8.57.0",
"prettier": "~2.2.0",
"prettier-plugin-java": "~1.0.0",
"rimraf": "^3.0.2",
"rimraf": "^6.0.1",
"rollup": "^2.32.0",
"swiftlint": "^1.0.1",
"swiftlint": "^2.0.0",
"typescript": "~5.0.2"
},
"peerDependencies": {
"@capacitor/core": "^6.0.0"
"@capacitor/core": ">=7.0.0"
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
Expand Down
1 change: 1 addition & 0 deletions scripts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions website/docs/for-android/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
[
{
"productTitle": "Portals Android",
"pageUrl": "https://ionic.io/docs/portals/for-android/changelog",
"repo": "ionic-team/ionic-portals-android",
"mdBody": "### What's Changed\n* **feat!**: Capacitor 7 Upgrade ([#74](https://github.com/ionic-team/ionic-portals-android/pull/74))\n\n",
"body": "<h3>What's Changed</h3>\n<ul>\n<li><strong>feat!</strong>: Capacitor 7 Upgrade (<a href=\"https://github.com/ionic-team/ionic-portals-android/pull/74\">#74</a>)</li>\n</ul>\n",
"name": "0.12.0",
"raw_published_at": "2025-01-20T20:31:23Z",
"published_at": "January 20 2025",
"tag_name": "0.12.0",
"type": "minor",
"version": "0.12.0"
},
{
"productTitle": "Portals Android",
"pageUrl": "https://ionic.io/docs/portals/for-android/changelog",
"repo": "ionic-team/ionic-portals-android",
"mdBody": "### What's Changed\n* **feat**: Capacitor v6.* Update ([#75](https://github.com/ionic-team/ionic-portals-android/pull/75))\n\n\n",
"body": "<h3>What's Changed</h3>\n<ul>\n<li><strong>feat</strong>: Capacitor v6.* Update (<a href=\"https://github.com/ionic-team/ionic-portals-android/pull/75\">#75</a>)</li>\n</ul>\n",
"name": "0.10.3",
"raw_published_at": "2025-01-10T22:03:17Z",
"published_at": "January 10 2025",
"tag_name": "0.10.3",
"type": "patch",
"version": "0.10.3"
},
{
"productTitle": "Portals Android",
"pageUrl": "https://ionic.io/docs/portals/for-android/changelog",
Expand Down
14 changes: 14 additions & 0 deletions website/docs/for-android/upgrade-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ import CodeBlock from '@theme/CodeBlock';

If you need help configuring specific versions of Portals with Capacitor or Capacitor Plugins, check out our [SDK Version Compatibility](./version-matrix.md) page.

## Portals for Android 0.10.0 → 0.12.0

- Portals for Android version `0.12.0` is compatible with Portals Web Plugin version `0.12.x`.

:::note
Portals version 0.11.0 was skipped for Android in order to bring the release version numbers for Portals iOS, Android, and Web Plugin in alignment.
:::

:::caution
Portals 0.12.0 is a notable update that upgrades the Capacitor dependency to version 7. Care should be taken to update dependencies across your web content and native apps to ensure compatibility.
:::

First review the [Capacitor 7 Update Guide](https://capacitorjs.com/docs/updating/7-0#android) for an overview of necessary changes. Some will not be relevant for Portals apps, but this will be a useful reference in case you encounter issues with your upgrade.

## Portals for Android 0.9.0 → 0.10.0

- Portals for Android version `0.10.0` is compatible with Portals Web Plugin version `0.10.x`.
Expand Down
1 change: 1 addition & 0 deletions website/docs/for-android/version-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ For more information refer to the Gradle documentation pages:

| Android SDK | Web Plugin Version | Compiled Capacitor Version | Compatible Capacitor Versions | Compatible Live Updates Versions | Portals CLI |
| :---------: | :----------------: | :------------------------: | :---------------------------: | :------------------------------: | :---------: |
| 0.12.0 | 0.12.0 | 7.0.+ | 7.0.+ | 0.5.+ | 0.3.+ |
| 0.10.3 | 0.10.0 | 6.+ | 6.+ | 0.5.+ | 0.3.+ |
| 0.10.2 | 0.10.0 | 6.0.+ | 6.0.+ | 0.5.+ | 0.3.+ |
| 0.10.1 | 0.10.0 | 6.0.+ | 6.0.+ | 0.5.+ | 0.3.+ |
Expand Down
26 changes: 26 additions & 0 deletions website/docs/for-ios/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
[
{
"productTitle": "Portals iOS",
"pageUrl": "https://ionic.io/docs/portals/for-ios/changelog",
"repo": "ionic-team/ionic-portals-ios",
"mdBody": "### What's Changed\n* **feat!**: BREAKING update to Capacitor 7 ([#90](https://github.com/ionic-team/ionic-portals-ios/pull/90))\n\n",
"body": "<h3>What's Changed</h3>\n<ul>\n<li><strong>feat!</strong>: BREAKING update to Capacitor 7 (<a href=\"https://github.com/ionic-team/ionic-portals-ios/pull/90\">#90</a>)</li>\n</ul>\n",
"name": "0.12.0",
"raw_published_at": "2025-01-20T19:54:34Z",
"published_at": "January 20 2025",
"tag_name": "0.12.0",
"type": "minor",
"version": "0.12.0"
},
{
"productTitle": "Portals iOS",
"pageUrl": "https://ionic.io/docs/portals/for-ios/changelog",
"repo": "ionic-team/ionic-portals-ios",
"mdBody": "### What's Changed\n* **fix**: webview was being added to the view hierarchy regardless of the result of the registration check\n\n",
"body": "<h3>What's Changed</h3>\n<ul>\n<li><strong>fix</strong>: webview was being added to the view hierarchy regardless of the result of the registration check</li>\n</ul>\n",
"name": "0.11.1",
"raw_published_at": "2024-12-06T18:18:32Z",
"published_at": "December 6 2024",
"tag_name": "0.11.1",
"type": "patch",
"version": "0.11.1"
},
{
"productTitle": "Portals iOS",
"pageUrl": "https://ionic.io/docs/portals/for-ios/changelog",
Expand Down
12 changes: 12 additions & 0 deletions website/docs/for-ios/upgrade-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ sidebar_label: Upgrade Guides
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

## Portals for iOS 0.11.x → 0.12.0

- Portals for iOS version `0.12.0` is compatible with Portals Web Plugin version `0.12.x`.

:::caution
Portals 0.12.0 is a notable update that upgrades the Capacitor dependency to version 7. Care should be taken to update dependencies across your web content and native apps to ensure compatibility.
:::

First review the [Capacitor 7 Update Guide](https://capacitorjs.com/docs/updating/7-0#ios) for an overview of necessary changes. Some will not be relevant for Portals apps, but this will be a useful reference in case you encounter issues with your upgrade.

This release removes the `encodeJSObject` and `decodeJSObject` extension methods for `JSONEncoder` and `JSONDecoder`, which had previously been deprecated. Use `JSValueEncoder` and `JSValueDecoder` provided by Capacitor as their replacements.

## Portals for iOS 0.10.x → 0.11.0

- Portals for iOS version `0.11.0` is compatible with Portals Web Plugin version `0.10.x`.
Expand Down
13 changes: 13 additions & 0 deletions website/docs/for-react-native/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
[
{
"productTitle": "Portals React Native",
"pageUrl": "https://ionic.io/docs/portals/for-react-native/changelog",
"repo": "ionic-team/ionic-portals-react-native",
"mdBody": "### What's Changed\n* **fix(android)**: added override on receiveCommand that supports an ID of type Int ([#58](https://github.com/ionic-team/ionic-portals-react-native/pull/58))\n\n\n",
"body": "<h3>What's Changed</h3>\n<ul>\n<li><strong>fix(android)</strong>: added override on receiveCommand that supports an ID of type Int (<a href=\"https://github.com/ionic-team/ionic-portals-react-native/pull/58\">#58</a>)</li>\n</ul>\n",
"name": "0.7.1",
"raw_published_at": "2025-01-16T17:43:21Z",
"published_at": "January 16 2025",
"tag_name": "0.7.1",
"type": "patch",
"version": "0.7.1"
},
{
"productTitle": "Portals React Native",
"pageUrl": "https://ionic.io/docs/portals/for-react-native/changelog",
Expand Down
16 changes: 16 additions & 0 deletions website/docs/for-web/upgrade-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ sidebar_label: Upgrade Guides
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

## Portals Web Plugin 0.10.x → 0.12.0

- Portals Web Plugin `0.12.0` is compatible with Portals for Android versions `0.12.x` and Portals for iOS versions `0.12.x`.

:::note
Portals Web Plugin version 0.11.0 was skipped in order to bring the release version numbers for Portals iOS, Android, and Web Plugin in alignment.
:::

:::caution
Portals Web Plugin `0.12.0` is a notable update that requires Capacitor 7.
Care should be taken to update dependencies across your web content and native apps to ensure compatibility.
:::

First review the [Capacitor 7 Update Guide](https://capacitorjs.com/docs/updating/7-0) for an overview of necessary changes.
Some will not be relevant for Portals apps, but this will be a useful reference in case you encounter issues with your upgrade.

## Portals Web Plugin 0.9.x → 0.10.0

- Portals Web Plugin `0.10.0` is compatible with Portals for Android versions `0.10.x` and Portals for iOS versions `0.11.x`.
Expand Down
Loading