Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions samples/Calculator/cppwinrt/NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
<add key="Nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration>
3 changes: 3 additions & 0 deletions samples/Calculator/cppwinrt/jest.config.windows.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = {};

module.exports = require('@rnx-kit/jest-preset')('windows', config);
33 changes: 17 additions & 16 deletions samples/Calculator/cppwinrt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,31 @@
"windows": "npx @react-native-community/cli run-windows"
},
"dependencies": {
"react": "19.0.0",
"react-native": "0.79.3",
"react-native-windows": "0.79.0"
"@react-native/new-app-screen": "0.80.0",
"react": "19.1.0",
"react-native": "0.80.0",
"react-native-windows": "0.80.0-preview.8"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "18.0.0",
"@react-native-community/cli-platform-android": "18.0.0",
"@react-native-community/cli-platform-ios": "18.0.0",
"@react-native/babel-preset": "0.79.3",
"@react-native/eslint-config": "0.79.3",
"@react-native/metro-config": "0.79.3",
"@react-native/typescript-config": "0.79.3",
"@react-native-community/cli": "19.1.1",
"@react-native-community/cli-platform-android": "19.1.1",
"@react-native-community/cli-platform-ios": "19.1.1",
"@react-native/babel-preset": "0.80.0",
"@react-native/eslint-config": "0.80.0",
"@react-native/metro-config": "0.80.0",
"@react-native/typescript-config": "0.80.0",
"@types/jest": "^29.5.13",
"@types/react": "^19.0.0",
"@types/react-test-renderer": "^19.0.0",
"@types/react": "^19.1.0",
"@types/react-test-renderer": "^19.1.0",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "19.0.0",
"react-test-renderer": "19.1.0",
"typescript": "5.0.4",
"metro-config": "^0.82.4"
"metro-config": "^0.82.5"
},
"engines": {
"node": ">=18"
Expand All @@ -43,7 +44,7 @@
"init-windows": {
"name": "Calculator",
"namespace": "Calculator",
"template": "old/uwp-cpp-app"
"template": "cpp-app"
}
}
}
}
53 changes: 1 addition & 52 deletions samples/Calculator/cppwinrt/windows/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,59 +34,8 @@ ipch/
[Dd]ebug*/
[Rr]elease*/
Ankh.NoLoad

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

#MonoDevelop
*.pidb
*.userprefs

#Tooling
_ReSharper*/
*.resharper
[Tt]est[Rr]esult*
*.sass-cache

#Project files
[Bb]uild/

#Subversion files
.svn

# Office Temp Files
~$*

# vim Temp Files
*~

#NuGet
packages/
*.nupkg

#ncrunch
*ncrunch*
*crunch*.local.xml

# visual studio database projects
*.dbmdl

#Test files
*.testsettings

#Other files
*.DotSettings
.vs/
*project.lock.json
# Visual C++ cache files

#Files generated by the VS build
**/Generated Files/**

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
<PropertyGroup>
<ProjectGuid>{e4014710-2bfd-4766-8c3b-35caf64f0610}</ProjectGuid>
<ProjectGuid>{b0cb89b9-5bfa-47f6-a7cc-0005d7c4cc6f}</ProjectGuid>
<DefaultLanguage>en-US</DefaultLanguage>
<EntryPointProjectUniqueName>..\CalculatorFabric\CalculatorFabric.vcxproj</EntryPointProjectUniqueName>
<EntryPointProjectUniqueName>..\Calculator\Calculator.vcxproj</EntryPointProjectUniqueName>
<DebuggerType>NativeOnly</DebuggerType>
<BackgroundTaskDebugEngines>NativeOnly</BackgroundTaskDebugEngines>
</PropertyGroup>
Expand Down Expand Up @@ -60,7 +60,7 @@
<Content Include="Images\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CalculatorFabric\CalculatorFabric.vcxproj">
<ProjectReference Include="..\Calculator\Calculator.vcxproj">
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
</ProjectReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
IgnorableNamespaces="uap rescap">

<Identity
Name="CalculatorFabric"
Publisher="CN=React Native Windows Sample"
Name="Calculator"
Publisher="CN=anuverma"
Version="1.0.0.0" />

<Properties>
<DisplayName>CalculatorFabric</DisplayName>
<PublisherDisplayName>CN=React Native Windows Sample</PublisherDisplayName>
<DisplayName>Calculator</DisplayName>
<PublisherDisplayName>anuverma</PublisherDisplayName>
<Logo>Images\StoreLogo.png</Logo>
</Properties>

Expand All @@ -31,8 +31,8 @@
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="CalculatorFabric"
Description="CalculatorFabric"
DisplayName="Calculator"
Description="Calculator"
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,34 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"boost": {
"type": "Transitive",
"resolved": "1.83.0",
"contentHash": "cy53VNMzysEMvhBixDe8ujPk67Fcj3v6FPHQnH91NYJNLHpc6jxa2xq9ruCaaJjE4M3YrGSHDi4uUSTGBWw6EQ=="
},
"Microsoft.JavaScript.Hermes": {
"type": "Transitive",
"resolved": "0.0.0-2507.21007-eda7aef6",
"contentHash": "3oyJXoPaayrtWSjBgnLFfVBrNcnvB3EJ1r2/K0yz9exmmESTTzWaCh8JlhX7fsjtMv/LpQxJOctHP0Ng2k8spQ=="
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.ReactNative.Cxx": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "xnDJDkoMIxTXVBH9wAnstJWgNUkwpt7hBG8iGQkQawY5yxWwFd73RjfN28rx+lroQp1oPIu/XfAht0Jhjl17VA==",
"dependencies": {
"Microsoft.ReactNative": "0.80.0-preview.8"
}
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -22,8 +50,16 @@
"resolved": "10.0.22621.756",
"contentHash": "7ZL2sFSioYm1Ry067Kw1hg0SCcW5kuVezC2SwjGbcPE61Nn+gTbH86T73G3LcEOVj0S3IZzNuE/29gZvOLS7VA=="
},
"calculatorfabric": {
"type": "Project"
"calculator": {
"type": "Project",
"dependencies": {
"Microsoft.JavaScript.Hermes": "[0.0.0-2507.21007-eda7aef6, )",
"Microsoft.ReactNative": "[0.80.0-preview.8, )",
"Microsoft.ReactNative.Cxx": "[0.80.0-preview.8, )",
"Microsoft.VCRTForwarders.140": "[1.0.2-rc, )",
"Microsoft.WindowsAppSDK": "[1.7.250401001, )",
"boost": "[1.83.0, )"
}
}
},
"UAP,Version=v10.0.17763/win10-arm": {
Expand All @@ -37,6 +73,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -54,6 +100,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -71,6 +127,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -88,6 +154,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -105,6 +181,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -122,6 +208,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand All @@ -139,6 +235,16 @@
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
}
},
"Microsoft.ReactNative": {
"type": "Transitive",
"resolved": "0.80.0-preview.8",
"contentHash": "YbN4cKio45ngm0e5wjYjx9vRPmpWJ3lM2WdOAKfj+v42PzwCBVVAMIIOp0g2AscP6W8X6sj4jO3If6Csn8rTfA=="
},
"Microsoft.VCRTForwarders.140": {
"type": "Transitive",
"resolved": "1.0.2-rc",
"contentHash": "/r+sjtEeCIGyDhobIZ5hSmYhC/dSyGZxf1SxYJpElUhB0LMCktOMFs9gXrauXypIFECpVynNyVjAmJt6hjJ5oQ=="
},
"Microsoft.Web.WebView2": {
"type": "Transitive",
"resolved": "1.0.2903.40",
Expand Down
Loading
Loading