Skip to content

Commit a37d419

Browse files
authored
feat: Capacitor 7 Upgrades (#291)
1 parent 21fd18d commit a37d419

File tree

10 files changed

+122
-13
lines changed

10 files changed

+122
-13
lines changed

lerna.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"capacitorVersion": "6.0.0",
2+
"capacitorVersion": "7.0.0",
33
"iosMinVersion": "13.0",
4-
"androidMinSdk": "22",
4+
"androidMinSdk": "23",
55
"rnMinVersion": "0.74.2",
66
"androidLiveUpdatesVersion": "0.5.5",
7-
"rnVersion": "0.7.0",
8-
"iosVersion": "0.11.0",
9-
"androidVersion": "0.10.3",
7+
"rnVersion": "0.7.1",
8+
"iosVersion": "0.12.0",
9+
"androidVersion": "0.12.0",
1010
"cliVersion": "0.3.1",
11-
"version": "0.10.0"
11+
"version": "0.12.0"
1212
}

plugin/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@
3737
"prepublishOnly": "npm run build"
3838
},
3939
"devDependencies": {
40-
"@capacitor/core": "^6.0.0",
40+
"@capacitor/core": "^7.0.0",
4141
"@capacitor/docgen": "^0.0.10",
42-
"@ionic/eslint-config": "^0.3.0",
42+
"@ionic/eslint-config": "^0.4.0",
4343
"@ionic/prettier-config": "^1.0.1",
44-
"@ionic/swiftlint-config": "^1.1.2",
44+
"@ionic/swiftlint-config": "^2.0.0",
4545
"@rollup/plugin-node-resolve": "^13.0.4",
46-
"eslint": "^7.11.0",
46+
"eslint": "^8.57.0",
4747
"prettier": "~2.2.0",
4848
"prettier-plugin-java": "~1.0.0",
49-
"rimraf": "^3.0.2",
49+
"rimraf": "^6.0.1",
5050
"rollup": "^2.32.0",
51-
"swiftlint": "^1.0.1",
51+
"swiftlint": "^2.0.0",
5252
"typescript": "~5.0.2"
5353
},
5454
"peerDependencies": {
55-
"@capacitor/core": "^6.0.0"
55+
"@capacitor/core": ">=7.0.0"
5656
},
5757
"prettier": "@ionic/prettier-config",
5858
"swiftlint": "@ionic/swiftlint-config",

scripts/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/docs/for-android/changelog.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
[
2+
{
3+
"productTitle": "Portals Android",
4+
"pageUrl": "https://ionic.io/docs/portals/for-android/changelog",
5+
"repo": "ionic-team/ionic-portals-android",
6+
"mdBody": "### What's Changed\n* **feat!**: Capacitor 7 Upgrade ([#74](https://github.com/ionic-team/ionic-portals-android/pull/74))\n\n",
7+
"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",
8+
"name": "0.12.0",
9+
"raw_published_at": "2025-01-20T20:31:23Z",
10+
"published_at": "January 20 2025",
11+
"tag_name": "0.12.0",
12+
"type": "minor",
13+
"version": "0.12.0"
14+
},
15+
{
16+
"productTitle": "Portals Android",
17+
"pageUrl": "https://ionic.io/docs/portals/for-android/changelog",
18+
"repo": "ionic-team/ionic-portals-android",
19+
"mdBody": "### What's Changed\n* **feat**: Capacitor v6.* Update ([#75](https://github.com/ionic-team/ionic-portals-android/pull/75))\n\n\n",
20+
"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",
21+
"name": "0.10.3",
22+
"raw_published_at": "2025-01-10T22:03:17Z",
23+
"published_at": "January 10 2025",
24+
"tag_name": "0.10.3",
25+
"type": "patch",
26+
"version": "0.10.3"
27+
},
228
{
329
"productTitle": "Portals Android",
430
"pageUrl": "https://ionic.io/docs/portals/for-android/changelog",

website/docs/for-android/upgrade-guides.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ import CodeBlock from '@theme/CodeBlock';
99

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

12+
## Portals for Android 0.10.0 → 0.12.0
13+
14+
- Portals for Android version `0.12.0` is compatible with Portals Web Plugin version `0.12.x`.
15+
16+
:::note
17+
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.
18+
:::
19+
20+
:::caution
21+
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.
22+
:::
23+
24+
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.
25+
1226
## Portals for Android 0.9.0 → 0.10.0
1327

1428
- Portals for Android version `0.10.0` is compatible with Portals Web Plugin version `0.10.x`.

website/docs/for-android/version-matrix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ For more information refer to the Gradle documentation pages:
7676

7777
| Android SDK | Web Plugin Version | Compiled Capacitor Version | Compatible Capacitor Versions | Compatible Live Updates Versions | Portals CLI |
7878
| :---------: | :----------------: | :------------------------: | :---------------------------: | :------------------------------: | :---------: |
79+
| 0.12.0 | 0.12.0 | 7.0.+ | 7.0.+ | 0.5.+ | 0.3.+ |
7980
| 0.10.3 | 0.10.0 | 6.+ | 6.+ | 0.5.+ | 0.3.+ |
8081
| 0.10.2 | 0.10.0 | 6.0.+ | 6.0.+ | 0.5.+ | 0.3.+ |
8182
| 0.10.1 | 0.10.0 | 6.0.+ | 6.0.+ | 0.5.+ | 0.3.+ |

website/docs/for-ios/changelog.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
[
2+
{
3+
"productTitle": "Portals iOS",
4+
"pageUrl": "https://ionic.io/docs/portals/for-ios/changelog",
5+
"repo": "ionic-team/ionic-portals-ios",
6+
"mdBody": "### What's Changed\n* **feat!**: BREAKING update to Capacitor 7 ([#90](https://github.com/ionic-team/ionic-portals-ios/pull/90))\n\n",
7+
"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",
8+
"name": "0.12.0",
9+
"raw_published_at": "2025-01-20T19:54:34Z",
10+
"published_at": "January 20 2025",
11+
"tag_name": "0.12.0",
12+
"type": "minor",
13+
"version": "0.12.0"
14+
},
15+
{
16+
"productTitle": "Portals iOS",
17+
"pageUrl": "https://ionic.io/docs/portals/for-ios/changelog",
18+
"repo": "ionic-team/ionic-portals-ios",
19+
"mdBody": "### What's Changed\n* **fix**: webview was being added to the view hierarchy regardless of the result of the registration check\n\n",
20+
"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",
21+
"name": "0.11.1",
22+
"raw_published_at": "2024-12-06T18:18:32Z",
23+
"published_at": "December 6 2024",
24+
"tag_name": "0.11.1",
25+
"type": "patch",
26+
"version": "0.11.1"
27+
},
228
{
329
"productTitle": "Portals iOS",
430
"pageUrl": "https://ionic.io/docs/portals/for-ios/changelog",

website/docs/for-ios/upgrade-guides.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ sidebar_label: Upgrade Guides
66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88

9+
## Portals for iOS 0.11.x → 0.12.0
10+
11+
- Portals for iOS version `0.12.0` is compatible with Portals Web Plugin version `0.12.x`.
12+
13+
:::caution
14+
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.
15+
:::
16+
17+
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.
18+
19+
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.
20+
921
## Portals for iOS 0.10.x → 0.11.0
1022

1123
- Portals for iOS version `0.11.0` is compatible with Portals Web Plugin version `0.10.x`.

website/docs/for-react-native/changelog.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
[
2+
{
3+
"productTitle": "Portals React Native",
4+
"pageUrl": "https://ionic.io/docs/portals/for-react-native/changelog",
5+
"repo": "ionic-team/ionic-portals-react-native",
6+
"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",
7+
"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",
8+
"name": "0.7.1",
9+
"raw_published_at": "2025-01-16T17:43:21Z",
10+
"published_at": "January 16 2025",
11+
"tag_name": "0.7.1",
12+
"type": "patch",
13+
"version": "0.7.1"
14+
},
215
{
316
"productTitle": "Portals React Native",
417
"pageUrl": "https://ionic.io/docs/portals/for-react-native/changelog",

website/docs/for-web/upgrade-guides.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ sidebar_label: Upgrade Guides
66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88

9+
## Portals Web Plugin 0.10.x → 0.12.0
10+
11+
- Portals Web Plugin `0.12.0` is compatible with Portals for Android versions `0.12.x` and Portals for iOS versions `0.12.x`.
12+
13+
:::note
14+
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.
15+
:::
16+
17+
:::caution
18+
Portals Web Plugin `0.12.0` is a notable update that requires Capacitor 7.
19+
Care should be taken to update dependencies across your web content and native apps to ensure compatibility.
20+
:::
21+
22+
First review the [Capacitor 7 Update Guide](https://capacitorjs.com/docs/updating/7-0) for an overview of necessary changes.
23+
Some will not be relevant for Portals apps, but this will be a useful reference in case you encounter issues with your upgrade.
24+
925
## Portals Web Plugin 0.9.x → 0.10.0
1026

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

0 commit comments

Comments
 (0)