From bedc959b1e7a06c0c8ff47396be299260dff363f Mon Sep 17 00:00:00 2001 From: bingbong Date: Wed, 1 Sep 2021 10:23:34 +0900 Subject: [PATCH] init spm --- Package.swift | 28 +++++++++++++++++++ Sources/iamport-ios/iamport_ios.swift | 3 ++ Tests/iamport-iosTests/iamport_iosTests.swift | 11 ++++++++ 3 files changed, 42 insertions(+) create mode 100644 Package.swift create mode 100644 Sources/iamport-ios/iamport_ios.swift create mode 100644 Tests/iamport-iosTests/iamport_iosTests.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..9780e5e --- /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: "iamport-ios", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "iamport-ios", + targets: ["iamport-ios"]), + ], + 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: "iamport-ios", + dependencies: []), + .testTarget( + name: "iamport-iosTests", + dependencies: ["iamport-ios"]), + ] +) diff --git a/Sources/iamport-ios/iamport_ios.swift b/Sources/iamport-ios/iamport_ios.swift new file mode 100644 index 0000000..bbc2961 --- /dev/null +++ b/Sources/iamport-ios/iamport_ios.swift @@ -0,0 +1,3 @@ +struct iamport_ios { + var text = "Hello, World!" +} diff --git a/Tests/iamport-iosTests/iamport_iosTests.swift b/Tests/iamport-iosTests/iamport_iosTests.swift new file mode 100644 index 0000000..e00e7b9 --- /dev/null +++ b/Tests/iamport-iosTests/iamport_iosTests.swift @@ -0,0 +1,11 @@ + import XCTest + @testable import iamport_ios + + final class iamport_iosTests: 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(iamport_ios().text, "Hello, World!") + } + }