diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..6634f25 --- /dev/null +++ b/Package.resolved @@ -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 +} \ No newline at end of file diff --git a/Package.swift b/Package.swift index ef9ab1c..79cd505 100644 --- a/Package.swift +++ b/Package.swift @@ -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( diff --git a/README.md b/README.md index b86f0bc..07440c2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/projections.json b/projections.json index 5c6330f..968516b 100644 --- a/projections.json +++ b/projections.json @@ -43,6 +43,6 @@ "exclude": [ "Windows.Devices.Enumeration.Panel", "Windows.Management.Deployment.PackageStatus", - "Windows.ApplicationModel.Core.CoreApplication", + "Windows.ApplicationModel.Core.CoreApplication" ] }