Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcrich23/packagekit
Get the swift packages in your xcode project in real time.
https://github.com/mcrich23/packagekit
Last synced: about 1 month ago
JSON representation
Get the swift packages in your xcode project in real time.
- Host: GitHub
- URL: https://github.com/mcrich23/packagekit
- Owner: Mcrich23
- License: mit
- Created: 2023-10-27T01:39:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-12T19:13:49.000Z (11 months ago)
- Last Synced: 2024-10-30T17:24:26.266Z (about 2 months ago)
- Language: Swift
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# PackageKit
A SPM package to get all the information about other SPM packages.
## Installation
The preferred way of installing PackageKit is via the [Swift Package Manager](https://swift.org/package-manager/).
1. In Xcode, open your project and navigate to **File** → **Add Package Dependencies...**
2. Paste the repository URL (`https://github.com/Mcrich23/PackageKit`) and click **Next**.
3. Click **Add Package**.
4. Click **Add Package** again.## Usage
**Disclaimer**: You must copy `Package.resolved` to the app or specify the path otherwise to use PackageKit.### Getting the packages in your project
Run `PackageKit.getPackages()`
#### Example:
```
import SwiftUI
import PackageKitstruct ContentView: View {
var body: some View {
Text("Hello World!")
.onAppear {
let packages = PackageKit.getPackages()
print(packages)
}
}
}
```
## Limitations
Right now, PackageKit only supports Github Swift Packages, but more git hosting software support is in the near future.