swift-atproto is a atproto library.
Add the SwiftAtproto
as a dependency:
let package = Package(
// name, platforms, products, etc.
dependencies: [
// other dependencies
.package(url: "https://github.com/nnabeyang/swift-atproto", from: "0.11.1"),
],
targets: [
.executableTarget(name: "<executable-target-name>", dependencies: [
// other dependencies
.product(name: "SwiftAtproto", package: "swift-atproto"),
]),
// other targets
]
)
Add the following to your Podfile:
pod 'SwiftAtproto'
Code generation is done as follows:
swift package plugin --allow-writing-to-package-directory swift-atproto \
--outdir <OUTPUT_DIR> \
/path/to/bluesky-social/atproto/lexicons
swift-atproto is published under the MIT License, see LICENSE.