Skip to content

Commit ee56832

Browse files
authored
fix: declare support for react-native-macos/-windows 0.77 (#2387)
1 parent 30f14bd commit ee56832

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
"@expo/config-plugins": ">=5.0",
103103
"react": "18.1 - 19.0",
104104
"react-native": "0.70 - 0.77 || >=0.78.0-0 <0.78.0",
105-
"react-native-macos": "^0.0.0-0 || 0.71 - 0.76",
106-
"react-native-windows": "^0.0.0-0 || 0.70 - 0.76"
105+
"react-native-macos": "^0.0.0-0 || 0.71 - 0.77",
106+
"react-native-windows": "^0.0.0-0 || 0.70 - 0.77"
107107
},
108108
"peerDependenciesMeta": {
109109
"@callstack/react-native-visionos": {

windows/test-app.mjs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,17 @@ export async function generateSolution(destPath, options, fs = nodefs) {
245245
}
246246

247247
if (info.useExperimentalNuGet) {
248-
// In 0.70, the template was renamed from `NuGet.Config` to `NuGet_Config`
249-
const nugetConfigPath0_70 = path.join(
250-
rnWindowsPath,
251-
"template",
252-
"shared-app",
253-
"proj",
254-
"NuGet_Config"
255-
);
256-
const nugetConfigPath = fs.existsSync(nugetConfigPath0_70)
257-
? nugetConfigPath0_70
248+
const nugetConfigTemplatePath = info.useFabric
249+
? path.join(rnWindowsPath, "templates", "cpp-app", "NuGet_Config")
250+
: path.join(
251+
rnWindowsPath,
252+
"template",
253+
"shared-app",
254+
"proj",
255+
"NuGet_Config"
256+
);
257+
const nugetConfigPath = fs.existsSync(nugetConfigTemplatePath)
258+
? nugetConfigTemplatePath
258259
: null;
259260
if (nugetConfigPath) {
260261
const nugetConfigDest = path.join(destPath, "NuGet.Config");
@@ -263,8 +264,10 @@ export async function generateSolution(destPath, options, fs = nodefs) {
263264
copyTasks.push(fs.promises.cp(nugetConfigDest, nugetConfigCopy));
264265
} else {
265266
const template = readTextFile(nugetConfigPath, fs);
266-
const nuGetADOFeed = info.version.startsWith("0.0.0-");
267-
const nugetConfig = mustache.render(template, { nuGetADOFeed });
267+
const nugetConfig = mustache.render(template, {
268+
addReactNativePublicAdoFeed: true,
269+
nuGetADOFeed: info.version.startsWith("0.0.0-"),
270+
});
268271
copyTasks.push(
269272
writeTextFile(nugetConfigDest, nugetConfig, fs.promises),
270273
writeTextFile(nugetConfigCopy, nugetConfig, fs.promises)

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12059,8 +12059,8 @@ __metadata:
1205912059
"@expo/config-plugins": ">=5.0"
1206012060
react: 18.1 - 19.0
1206112061
react-native: 0.70 - 0.77 || >=0.78.0-0 <0.78.0
12062-
react-native-macos: ^0.0.0-0 || 0.71 - 0.76
12063-
react-native-windows: ^0.0.0-0 || 0.70 - 0.76
12062+
react-native-macos: ^0.0.0-0 || 0.71 - 0.77
12063+
react-native-windows: ^0.0.0-0 || 0.70 - 0.77
1206412064
peerDependenciesMeta:
1206512065
"@callstack/react-native-visionos":
1206612066
optional: true

0 commit comments

Comments
 (0)