Skip to content

Commit

Permalink
feat(windows): Add WebView2 UWP Desktop support (react-native-webview…
Browse files Browse the repository at this point in the history
…#2419)

* feat(windows): Add WebView2 UWP Desktop support

* remove expired cert

* deploy from layout in ci
  • Loading branch information
asklar authored Mar 28, 2022
1 parent a7d2c66 commit 5fb7b0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
run: yarn windows --release --no-packager --no-deploy --logging

# Workaround for a bug in package searching during deploy.
# The deploy script only searches windows/{*/bin/x64/Release,Release/*}, but the build step above placed the pakcages at windows/x64/Release.
# The deploy script only searches windows/{*/bin/x64/Release,Release/*}, but the build step above placed the packages at windows/x64/Release.
# Copy the packages to Windows/Release before deploying.
- name: Deploy
shell: powershell
run: |
Copy-Item -Path example\windows\x64\Release -Recurse -Destination example\windows\
npx react-native run-windows --arch x64 --release --root example --logging --no-build --no-packager
npx react-native run-windows --arch x64 --release --root example --logging --no-build --no-packager --deploy-from-layout
- name: Start Appium server
shell: powershell
Expand Down
4 changes: 1 addition & 3 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
]
},
"windows": {
"appxManifest": "windows/Package.appxmanifest",
"certificateKeyFile": "windows/WebViewWindows_TemporaryKey.pfx",
"certificateThumbprint": "1DA6E34911B18C433FE3E543D0429FC808468C89"
"appxManifest": "windows/Package.appxmanifest"
}
}
Binary file removed example/windows/WebViewWindows_TemporaryKey.pfx
Binary file not shown.
1 change: 1 addition & 0 deletions windows/ReactNativeWebView/ReactNativeWebView.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
<None Include="packages.config" />
<None Include="ReactNativeWebView.def" />
</ItemGroup>

<ItemGroup>
<None Include="PropertySheet.props" />
</ItemGroup>
Expand Down

0 comments on commit 5fb7b0c

Please sign in to comment.