Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Swift package manifest #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DerivedData/
*.perspectivev3
!default.perspectivev3
xcuserdata/
.swiftpm/

## Other
*.moved-aside
Expand Down
12 changes: 1 addition & 11 deletions AcceptSDKTests/FingerPrintTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,10 @@
// Copyright © 2016 Ramamurthy, Rakesh Ramamurthy. All rights reserved.
//

@testable import AcceptSDK
import XCTest

class FingerPrintTests: XCTestCase {

override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}

override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}

func testEmptyTimestampReturnsFalse() {
let request = getValidFingerprintRequest()
request.timestamp = ""
Expand Down
10 changes: 1 addition & 9 deletions AcceptSDKTests/MerchantAuthenticationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,10 @@
// Copyright © 2016 Ramamurthy, Rakesh Ramamurthy. All rights reserved.
//

@testable import AcceptSDK
import XCTest

class MerchantAuthenticationTests: XCTestCase {

override func setUp() {
super.setUp()
}

override func tearDown() {
super.tearDown()
}

func testValidateNameReturnsFalseWhenEmptyString() {
let request = getValidMerchantAuthentication()
request.name = ""
Expand Down
11 changes: 1 addition & 10 deletions AcceptSDKTests/TokenDataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@
// Copyright © 2016 Ramamurthy, Rakesh Ramamurthy. All rights reserved.
//

import Foundation
@testable import AcceptSDK
import XCTest

class TokenDataTests: XCTestCase {

override func setUp() {
super.setUp()

}

override func tearDown() {
}

func testCreditCardValidationFailsWhenEmpty() {
let request = Token()
request.cardNumber = ""
Expand Down
10 changes: 1 addition & 9 deletions AcceptSDKTests/WebCheckOutDataTypeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,10 @@
// Copyright © 2016 Ramamurthy, Rakesh Ramamurthy. All rights reserved.
//

@testable import AcceptSDK
import XCTest

class WebCheckOutDataTypeTests: XCTestCase {

override func setUp() {
super.setUp()
}

override func tearDown() {
super.tearDown()
}

func testTypeInitializesToTokenString() {
let request = WebCheckOutDataType()

Expand Down
27 changes: 27 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// swift-tools-version:5.0

import PackageDescription

let package = Package(
name: "AcceptSDK",
platforms: [
.iOS(.v8),
],
products: [
.library(
name: "AcceptSDK",
targets: ["AcceptSDK"]
),
],
targets: [
.target(
name: "AcceptSDK",
path: "AcceptSDK"
),
.testTarget(
name: "AcceptSDKTests",
dependencies: ["AcceptSDK"],
path: "AcceptSDKTests"
),
]
)