-
Discover and curate Swift Packages using Collections
Whether you're curating packages for your team, for education purposes, or to share with other developers, Swift Package Collections can help you discover, explore and import new packages into your project. Discover improvements in the Swift Package workflow using Collections, and learn how you can curate, create, sign, and share your own Swift Package Collections.
Ressources
Vidéos connexes
WWDC21
WWDC19
-
Rechercher dans cette vidéo…
-
-
7:00 - Simple collection
{ "name": "WWDC21 Demo Collection", "overview": "Packages to be used in our demo app", "keywords": ["wwdc21"], "author": { "name": "Boris Buegling" } "packages": [ { "url": "https://github.com/apple/swift-format" }, { "url": "https://github.com/Alamofire/Alamofire" } ], } -
7:17 - Complex collection
{ "name": "WWDC21 Demo Collection", "overview": "Packages to be used in our demo app", "keywords": ["wwdc21"], "packages": [ { "url": "https://github.com/apple/swift-format", "summary": "Formatting technology for Swift source code.", "keywords": [“formatting”, "swift"], "versions": ["0.50400.0", "0.50300.0"], "excludedProducts": ["SwiftFormatConfiguration"], "readmeURL": "https://github.com/apple/swift-format/blob/main/README.md" }, { "url": "https://github.com/Alamofire/Alamofire" } ], "author": { "name": "Boris Buegling" } } -
8:46 - Generating a collection
package-collection-generate --verbose input.json collection.json --auth-token -
9:30 - Signing a collection
package-collection-sign collection.json collection-signed.json developer-key.pem developer-cert.cer -
10:15 - Adding a collection
swift package-collection add -
10:34 - Inspecting an entire collection
swift package-collection describe -
11:11 - Viewing metadata of the swift-format package
swift package-collection describe https://github.com/apple/swift-format -
13:07 - ReadMe Request
import Alamofire struct ContentView: View { let readMeURL = "https://raw.githubusercontent.com/apple/swift/main/README.md" var body: some View { Button("Click me!") { AF.request(readMeURL).response { response in debugPrint(response) } } } }
-