mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-04-17 12:17:30 +00:00
46 lines
1.2 KiB
Swift
46 lines
1.2 KiB
Swift
// swift-tools-version: 6.2
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "GradientLoadingBar",
|
|
platforms: [.iOS(.v26)],
|
|
products: [
|
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
|
.library(
|
|
name: "GradientLoadingBar",
|
|
targets: ["GradientLoadingBar"],
|
|
),
|
|
],
|
|
dependencies: [
|
|
.package(
|
|
url: "https://github.com/pointfreeco/swift-snapshot-testing",
|
|
from: "1.12.0",
|
|
),
|
|
],
|
|
targets: [
|
|
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
|
// Targets can depend on other targets in this package and products from dependencies.
|
|
.target(
|
|
name: "GradientLoadingBar",
|
|
),
|
|
.testTarget(
|
|
name: "GradientLoadingBarTests",
|
|
dependencies: [
|
|
"GradientLoadingBar",
|
|
.product(
|
|
name: "SnapshotTesting",
|
|
package: "swift-snapshot-testing",
|
|
),
|
|
],
|
|
exclude: [
|
|
"SnapshotTests/README.md",
|
|
],
|
|
resources: [
|
|
.copy("SnapshotTests/__Snapshots__"),
|
|
],
|
|
),
|
|
],
|
|
)
|