Skip to content

Commit

Permalink
SPM compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bainfu committed Sep 14, 2021
1 parent 05a2451 commit 8e4a424
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

.DS_Store

## Build generated
build/
DerivedData/
Expand Down
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions AcceptSDKTests/FingerPrintTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import XCTest
@testable import AcceptSDK

class FingerPrintTests: XCTestCase {

Expand Down
1 change: 1 addition & 0 deletions AcceptSDKTests/MerchantAuthenticationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import XCTest
@testable import AcceptSDK

class MerchantAuthenticationTests: XCTestCase {

Expand Down
1 change: 1 addition & 0 deletions AcceptSDKTests/TokenDataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import XCTest
@testable import AcceptSDK

class TokenDataTests: XCTestCase {

Expand Down
1 change: 1 addition & 0 deletions AcceptSDKTests/WebCheckOutDataTypeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import XCTest
@testable import AcceptSDK

class WebCheckOutDataTypeTests: XCTestCase {

Expand Down
34 changes: 34 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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"]),
]
)

0 comments on commit 8e4a424

Please sign in to comment.