This PR contains the work done to address the issue #11, related to setting up DocC documentation in this project. To provide further details about the work done: - [x] created the documentation catalog for the project in Xcode; - [x] added the `Swift-DocC-Plugin` dependency to the `Package` file; - [x] implemented documentation preview, generation and cleanup workflows in the `Makefile` file; - [x] generated documentation for Xcode and Github pages; - [x] added the package logo assets to the project; - [x] integrated the package logo assets to the `README` file, with support for both light and dark color schemes; - [x] added the `.env` file to the `.gitignore` file. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: #13
43 lines
1.0 KiB
Swift
43 lines
1.0 KiB
Swift
// swift-tools-version: 5.8
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "AmiiboService",
|
|
platforms: [
|
|
.iOS(.v13),
|
|
.macOS(.v10_15),
|
|
.tvOS(.v13),
|
|
.watchOS(.v8)
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "AmiiboService",
|
|
targets: [
|
|
"AmiiboService"
|
|
]
|
|
),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/rock-n-code/swift-libs.git", from: "0.1.0"),
|
|
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.1.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "AmiiboService",
|
|
dependencies: [
|
|
.product(name: "SwiftLibs", package: "swift-libs")
|
|
],
|
|
path: "Sources"
|
|
),
|
|
.testTarget(
|
|
name: "AmiiboServiceTests",
|
|
dependencies: [
|
|
"AmiiboService",
|
|
.product(name: "SwiftLibs", package: "swift-libs")
|
|
],
|
|
path: "Tests"
|
|
),
|
|
]
|
|
)
|