Skip to content

Commit

Permalink
feat(align-deps): Add core-visionos
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Apr 5, 2024
1 parent 54fca8b commit 24f642c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
13 changes: 7 additions & 6 deletions docsite/docs/architecture/dependency-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,13 @@ directly to a package:
`dep-check` also defines a set of **core** capabilities. These are capabilities
that provide platform support, and are currently defined in the below table:

| Capability | Platform | Package |
| :----------- | :------- | :------------------- |
| core-android | Android | react-native |
| core-ios | iOS | react-native |
| core-macos | macOS | react-native-macos |
| core-windows | Windows | react-native-windows |
| Capability | Platform | Package |
| :------------ | :------- | :------------------------------- |
| core-android | Android | react-native |
| core-ios | iOS | react-native |
| core-macos | macOS | react-native-macos |
| core-visionos | visionOS | @callstack/react-native-visionos |
| core-windows | Windows | react-native-windows |

With generic names, we are more resilient against module renames since we can
recommend the old name in one version, and the new name in the next. We could
Expand Down
1 change: 1 addition & 0 deletions docsite/docs/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Meta capabilities let you group capabilities together:
"core-android",
"core-ios",
"core-macos",
"core-visionos",
"core-windows",
],
},
Expand Down
5 changes: 5 additions & 0 deletions packages/align-deps/scripts/update-profile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ export const profile: Profile = {
version: "^${targetVersion}.0",
capabilities: ["react"],
},
"core-visionos": {
name: "@callstack/react-native-visionos",
version: "^${targetVersion}.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^${targetVersion}.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export const profile: Profile = {
version: "^0.73.0",
capabilities: ["react"],
},
"core-visionos": {
name: "@callstack/react-native-visionos",
version: "^0.73.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.73.0",
Expand Down Expand Up @@ -110,7 +115,7 @@ export const profile: Profile = {
},
netinfo: {
name: "@react-native-community/netinfo",
version: "^11.0.1",
version: "^11.3.1",
},
"safe-area": {
name: "react-native-safe-area-context",
Expand All @@ -126,7 +131,7 @@ export const profile: Profile = {
},
svg: {
name: "react-native-svg",
version: "^14.0.0",
version: "^15.0.0",
},
"test-app": {
name: "react-native-test-app",
Expand Down
1 change: 1 addition & 0 deletions packages/config/src/kitConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type Capability =
| "core-android"
| "core-ios"
| "core-macos"
| "core-visionos"
| "core-windows"
| "core/metro-config"
| "animation"
Expand Down
1 change: 1 addition & 0 deletions packages/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@
"core-android",
"core-ios",
"core-macos",
"core-visionos",
"core-windows",
"core/testing",
"babel-preset-react-native",
Expand Down

0 comments on commit 24f642c

Please sign in to comment.