This commit is contained in:
Shibo Lyu 2023-09-01 00:04:39 +08:00
parent 68741ad06d
commit 2c5ce337e8
6 changed files with 254 additions and 27 deletions

View file

@ -1,23 +1,30 @@
// swift-tools-version: 5.9
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "TypedAppStorage",
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "TypedAppStorage",
targets: ["TypedAppStorage"]),
],
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: "TypedAppStorage"),
.testTarget(
name: "TypedAppStorageTests",
dependencies: ["TypedAppStorage"]),
]
name: "TypedAppStorage",
platforms: [
.iOS(.v14),
.macOS(.v11),
.macCatalyst(.v14),
.tvOS(.v14),
.watchOS(.v7)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "TypedAppStorage",
targets: ["TypedAppStorage"]),
],
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: "TypedAppStorage"),
.testTarget(
name: "TypedAppStorageTests",
dependencies: ["TypedAppStorage"]),
]
)