From d2f0b4162307039e44709258cdb0432273d9028d Mon Sep 17 00:00:00 2001 From: LEE <18611401994@163.com> Date: Thu, 2 Sep 2021 17:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0SPM=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contents.xcworkspacedata | 7 +++++ AutoInch.xcworkspace/contents.xcworkspacedata | 10 +++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++ Package.swift | 28 +++++++++++++++++++ Tests/AutoInchTests/AutoInchTests.swift | 11 ++++++++ 5 files changed, 64 insertions(+) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 AutoInch.xcworkspace/contents.xcworkspacedata create mode 100644 AutoInch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Package.swift create mode 100644 Tests/AutoInchTests/AutoInchTests.swift diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/AutoInch.xcworkspace/contents.xcworkspacedata b/AutoInch.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..f517c86 --- /dev/null +++ b/AutoInch.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/AutoInch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/AutoInch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/AutoInch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..88cfe44 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "AutoInch", + platforms: [.iOS(.v9)], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "AutoInch", + targets: ["AutoInch"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "AutoInch", + dependencies: [], + path: "Sources" + ) + ] +) diff --git a/Tests/AutoInchTests/AutoInchTests.swift b/Tests/AutoInchTests/AutoInchTests.swift new file mode 100644 index 0000000..0342163 --- /dev/null +++ b/Tests/AutoInchTests/AutoInchTests.swift @@ -0,0 +1,11 @@ + import XCTest + @testable import AutoInch + + final class AutoInchTests: XCTestCase { + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + XCTAssertEqual(AutoInch().text, "Hello, World!") + } + }