Initial Commit

This commit is contained in:
Shibo Lyu 2023-08-31 22:16:18 +08:00
commit 68741ad06d
5 changed files with 53 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

23
Package.swift Normal file
View file

@ -0,0 +1,23 @@
// swift-tools-version: 5.9
// 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"]),
]
)

View file

@ -0,0 +1,2 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book

View file

@ -0,0 +1,12 @@
import XCTest
@testable import TypedAppStorage
final class TypedAppStorageTests: XCTestCase {
func testExample() throws {
// XCTest Documentation
// https://developer.apple.com/documentation/xctest
// Defining Test Cases and Test Methods
// https://developer.apple.com/documentation/xctest/defining_test_cases_and_test_methods
}
}