Compare commits
2 Commits
tristan/ou
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 756b80f2e7 | |||
|
|
4fe2fa0565 |
24
Package.resolved
Normal file
24
Package.resolved
Normal 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
|
||||||
|
}
|
||||||
@ -8,8 +8,8 @@ let package = Package(
|
|||||||
.library(name: "UWP", type: .dynamic, targets: ["UWP"]),
|
.library(name: "UWP", type: .dynamic, targets: ["UWP"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/thebrowsercompany/swift-cwinrt", branch: "main"),
|
.package(url: "https://git.aparoksha.dev/winui-swift/swift-cwinrt", branch: "main"),
|
||||||
.package(url: "https://github.com/thebrowsercompany/swift-windowsfoundation", branch: "main"),
|
.package(url: "https://git.aparoksha.dev/winui-swift/swift-windowsfoundation", branch: "main"),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
|
|||||||
12
README.md
12
README.md
@ -1,10 +1,8 @@
|
|||||||
# swift-uwp
|
# swift-uwp
|
||||||
Swift Language Bindings for UWP APIs
|
|
||||||
|
|
||||||
These APIs are intendened to be used in conjuction with the following projects:
|
This is based on [thebrowsercompany/swift-uwp](https://github.com/thebrowsercompany/swift-uwp).
|
||||||
- [swift-winui](https://github.com/thebrowsercompany/swift-winui)
|
|
||||||
- [swift-windowsappsdk](https://github.com/thebrowsercompany/swift-windowsappsdk)
|
Swift Language Bindings for UWP APIs
|
||||||
- [swift-win2d](https://github.com/thebrowsercompany/swift-win2d)
|
|
||||||
|
|
||||||
## APIs
|
## 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/
|
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/
|
||||||
@ -17,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
|
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.
|
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
|
## 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.
|
- 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.
|
||||||
|
|
||||||
|
|||||||
@ -43,6 +43,6 @@
|
|||||||
"exclude": [
|
"exclude": [
|
||||||
"Windows.Devices.Enumeration.Panel",
|
"Windows.Devices.Enumeration.Panel",
|
||||||
"Windows.Management.Deployment.PackageStatus",
|
"Windows.Management.Deployment.PackageStatus",
|
||||||
"Windows.ApplicationModel.Core.CoreApplication",
|
"Windows.ApplicationModel.Core.CoreApplication"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user