diff --git a/.gitignore b/.gitignore index 86f21d8..98d5e31 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ # # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore +.DS_Store + ## Build generated build/ DerivedData/ 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/AcceptSDKTests/FingerPrintTests.swift b/AcceptSDKTests/FingerPrintTests.swift index 05d002b..48effb8 100644 --- a/AcceptSDKTests/FingerPrintTests.swift +++ b/AcceptSDKTests/FingerPrintTests.swift @@ -7,6 +7,7 @@ // import XCTest +@testable import AcceptSDK class FingerPrintTests: XCTestCase { diff --git a/AcceptSDKTests/MerchantAuthenticationTests.swift b/AcceptSDKTests/MerchantAuthenticationTests.swift index e0e87c6..2ebbe3b 100644 --- a/AcceptSDKTests/MerchantAuthenticationTests.swift +++ b/AcceptSDKTests/MerchantAuthenticationTests.swift @@ -7,6 +7,7 @@ // import XCTest +@testable import AcceptSDK class MerchantAuthenticationTests: XCTestCase { diff --git a/AcceptSDKTests/TokenDataTests.swift b/AcceptSDKTests/TokenDataTests.swift index e681eb7..4fb09ed 100644 --- a/AcceptSDKTests/TokenDataTests.swift +++ b/AcceptSDKTests/TokenDataTests.swift @@ -8,6 +8,7 @@ import Foundation import XCTest +@testable import AcceptSDK class TokenDataTests: XCTestCase { diff --git a/AcceptSDKTests/WebCheckOutDataTypeTests.swift b/AcceptSDKTests/WebCheckOutDataTypeTests.swift index dedb7fe..07ba789 100644 --- a/AcceptSDKTests/WebCheckOutDataTypeTests.swift +++ b/AcceptSDKTests/WebCheckOutDataTypeTests.swift @@ -7,6 +7,7 @@ // import XCTest +@testable import AcceptSDK class WebCheckOutDataTypeTests: XCTestCase { diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..1b2af44 --- /dev/null +++ b/Package.swift @@ -0,0 +1,34 @@ +// 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: "AcceptSDK", + platforms: [.iOS(.v9)], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "AcceptSDK", + targets: ["AcceptSDK"]), + ], + 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: "AcceptSDK", + dependencies: [], + path: "AcceptSDK", + exclude: ["Info.plist", "AcceptSDK.h"] + ), + .testTarget( + name: "AcceptSDKTests", + dependencies: ["AcceptSDK"], + path: "AcceptSDKTests", + exclude: ["Info.plist"]), + ] +)