Remove outdated warning

This commit is contained in:
david-swift 2025-02-08 13:37:29 +01:00
parent 4fe2fa0565
commit 756b80f2e7
4 changed files with 28 additions and 14 deletions

24
Package.resolved Normal file
View File

@ -0,0 +1,24 @@
{
"originHash" : "9916c12584277db02730853cc148cd3379d30d013ee91b8054b4d7daa2fd9788",
"pins" : [
{
"identity" : "swift-cwinrt",
"kind" : "remoteSourceControl",
"location" : "https://git.aparoksha.dev/winui-swift/swift-cwinrt",
"state" : {
"branch" : "main",
"revision" : "3e3d5a0270ebe8fb0bc738d24d4786a6cd0621eb"
}
},
{
"identity" : "swift-windowsfoundation",
"kind" : "remoteSourceControl",
"location" : "https://git.aparoksha.dev/winui-swift/swift-windowsfoundation",
"state" : {
"branch" : "main",
"revision" : "dbe14563b6bb0eb9c761d8aff7f465afddf185f9"
}
}
],
"version" : 3
}

View File

@ -8,8 +8,8 @@ let package = Package(
.library(name: "UWP", type: .dynamic, targets: ["UWP"]),
],
dependencies: [
.package(url: "https://github.com/thebrowsercompany/swift-cwinrt", branch: "main"),
.package(url: "https://github.com/thebrowsercompany/swift-windowsfoundation", branch: "main"),
.package(url: "https://git.aparoksha.dev/winui-swift/swift-cwinrt", branch: "main"),
.package(url: "https://git.aparoksha.dev/winui-swift/swift-windowsfoundation", branch: "main"),
],
targets: [
.target(

View File

@ -1,15 +1,9 @@
# swift-uwp
> [!WARNING]
> This project contains an outdated snapshot of a subset of WinRT projections generated with [swift-winrt](https://github.com/thebrowsercompany/swift-winrt), provided for illustration purposes. To use WinRT APIs in your Swift project, we recommend using [swift-winrt](https://github.com/thebrowsercompany/swift-winrt) directly to generate your own projections.
This is based on [thebrowsercompany/swift-uwp](https://github.com/thebrowsercompany/swift-uwp).
Swift Language Bindings for UWP APIs
These APIs are intendened to be used in conjuction with the following projects:
- [swift-winui](https://github.com/thebrowsercompany/swift-winui)
- [swift-windowsappsdk](https://github.com/thebrowsercompany/swift-windowsappsdk)
- [swift-win2d](https://github.com/thebrowsercompany/swift-win2d)
## APIs
These projections contains a subset of APIs as part of the UWP platform. The list of full namespaces is available here for reference: https://learn.microsoft.com/en-us/uwp/api/
@ -21,10 +15,6 @@ The bindings are generated from WinMD files, found in NuGet packages on Nuget.or
1. projections.json - this specifies the project/packages and which apis to include in the projection
2. generate-bindings.ps1 - this file reads `projections.json` and generates the appropriate bindings.
## Filing Issues
Please file any issues you have with this repository on https://github.com/thebrowsercompany/swift-winrt
## Known Issues and Limitations
- The developer experience for consuming WinRT APIs from Swift is a work in progress. Due to current limitations, not all APIs can be generated as this causes export limit issues.

View File

@ -43,6 +43,6 @@
"exclude": [
"Windows.Devices.Enumeration.Panel",
"Windows.Management.Deployment.PackageStatus",
"Windows.ApplicationModel.Core.CoreApplication",
"Windows.ApplicationModel.Core.CoreApplication"
]
}