Skip to content

Commit

Permalink
Release 1.0.0-beta13 (#115)
Browse files Browse the repository at this point in the history
- Fixed Xcode 12 issue
  • Loading branch information
jsaini-hw authored Mar 30, 2021
1 parent 52e631d commit d2b0ab6
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 74 deletions.
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ identifier_name:
error: 100
opt_in_rules: # some rules are only opt-in
- first_where
- unused_private_declaration
- empty_count
- empty_string
- empty_xctest_method
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ before_install:
- xcrun simctl list
# Update the brew and build dependencies tools
- brew update && brew upgrade carthage
- carthage update --platform ios --use-xcframeworks --cache-builds --no-use-binaries
- carthage update --platform ios --cache-builds --use-xcframeworks --no-use-binaries
- gem i slather
# Force to update the Swiftlint to the last stable version
- brew outdated swiftlint || brew upgrade swiftlint
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

[1.0.0-beta13](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta13)
-------------------
- Fixed Xcode 12 issue

[1.0.0-beta12](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta12)
-------------------
- Added support for iOS 14
Expand All @@ -11,14 +15,12 @@ Changelog
- Support update transfer method
- Enhancements


[1.0.0-beta10](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta10)
-------------------
- Added Venmo as a Transfer method
- Added support for List Prepaid Card Balances
- Enhancements


[1.0.0-beta09](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta09)
-------------------
- Increased API response timeout
Expand Down
2 changes: 1 addition & 1 deletion HyperwalletSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'HyperwalletSDK'
spec.version = '1.0.0-beta12'
spec.version = '1.0.0-beta13'
spec.summary = 'Hyperwallet Core SDK for iOS to integrate with Hyperwallet Platform'
spec.homepage = 'https://github.com/hyperwallet/hyperwallet-ios-sdk'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
24 changes: 2 additions & 22 deletions HyperwalletSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
980B9AE7251C0A2400653D1C /* PrepaidCardResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = 980B9AE5251C052600653D1C /* PrepaidCardResponse.json */; };
980C15DB2273BF91004C60D6 /* CHANGELOG.md in Resources */ = {isa = PBXBuildFile; fileRef = 980C15DA2273BF91004C60D6 /* CHANGELOG.md */; };
980C15F12273D1FA004C60D6 /* ListBankCardResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = DBCA37A6225D6D1700CD4137 /* ListBankCardResponse.json */; };
980E79402613B68E00F0834B /* Hippolyte.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD8C499225E014E30062A440 /* Hippolyte.xcframework */; };
98101DC42238A2F000BA04CA /* HyperwalletSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 98101DBA2238A2F000BA04CA /* HyperwalletSDK.framework */; };
B062E353E292414C07C70355 /* HyperwalletPaperCheckTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B062EB9A428EB097C6B5B4FC /* HyperwalletPaperCheckTests.swift */; };
B062E601D8A9A6E7FCC498F7 /* PaperCheckErrorResponseWithMissingStateProvince.json in Resources */ = {isa = PBXBuildFile; fileRef = B062EC1CDD525FA26E0A7ED3 /* PaperCheckErrorResponseWithMissingStateProvince.json */; };
Expand Down Expand Up @@ -100,7 +101,6 @@
DB1A0422225D571B0080C8D6 /* AuthenticationTokenGeneratorMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB1A0420225D571A0080C8D6 /* AuthenticationTokenGeneratorMock.swift */; };
DB1A0423225D571B0080C8D6 /* AuthenticationProviderMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB1A0421225D571B0080C8D6 /* AuthenticationProviderMock.swift */; };
DB2A3B092261D2DC0049F891 /* HyperwalletSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = DB2A3B082261D2DC0049F891 /* HyperwalletSDK.h */; settings = {ATTRIBUTES = (Public, ); }; };
DB2A3B0E2261D4260049F891 /* Hippolyte.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB2A3B0D2261D4260049F891 /* Hippolyte.framework */; };
DB3151CF22780AA300FC9F8E /* UserIndividualResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = DB3151CE22780AA300FC9F8E /* UserIndividualResponse.json */; };
DB45190F22DD00A00022BD1F /* HyperwalletTransferMethodConfigurationFieldQueryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB45190E22DD00A00022BD1F /* HyperwalletTransferMethodConfigurationFieldQueryTests.swift */; };
DB764E91227833E10053BB91 /* UserBusinessResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = DB764E8F22782D890053BB91 /* UserBusinessResponse.json */; };
Expand Down Expand Up @@ -143,8 +143,6 @@
FD536D072579F98B0056DC2D /* HyperwalletTransferMethodUpdateConfigurationQueries.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD536D062579F98B0056DC2D /* HyperwalletTransferMethodUpdateConfigurationQueries.swift */; };
FD536D09257A3C610056DC2D /* HyperwalletTransferMethodUpdateConfigurationField.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD536D08257A3C610056DC2D /* HyperwalletTransferMethodUpdateConfigurationField.swift */; };
FD536D0C257A60CE0056DC2D /* HyperwalletTransferMethodUpdateConfigurationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD536D0A257A60920056DC2D /* HyperwalletTransferMethodUpdateConfigurationTests.swift */; };
FD8C499325E014E30062A440 /* Hippolyte.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD8C499225E014E30062A440 /* Hippolyte.xcframework */; };
FD8C499425E014E30062A440 /* Hippolyte.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FD8C499225E014E30062A440 /* Hippolyte.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
FDD2F4CF2580AFB0008E4CFC /* TransferMethodUpdateConfigurationFieldsPaypalResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = FDD2F4CE2580AFB0008E4CFC /* TransferMethodUpdateConfigurationFieldsPaypalResponse.json */; };
FDD2F4D12580B1D0008E4CFC /* TransferMethodUpdateConfigurationFieldsBankCardResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = FDD2F4D02580B1D0008E4CFC /* TransferMethodUpdateConfigurationFieldsBankCardResponse.json */; };
FDF2E7A6257E06D600589076 /* TransferMethodUpdateConfigurationFieldsResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = FDF2E7A5257E06D600589076 /* TransferMethodUpdateConfigurationFieldsResponse.json */; };
Expand All @@ -161,20 +159,6 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
FD8C499525E014E30062A440 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
FD8C499425E014E30062A440 /* Hippolyte.xcframework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
0733FE082277C191000FB92A /* HyperwalletPayPalAccount.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HyperwalletPayPalAccount.swift; sourceTree = "<group>"; };
0733FE2A2277C743000FB92A /* HyperwalletPayPalAccountTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HyperwalletPayPalAccountTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -322,15 +306,14 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
FD8C499325E014E30062A440 /* Hippolyte.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
98101DC02238A2F000BA04CA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
DB2A3B0E2261D4260049F891 /* Hippolyte.framework in Frameworks */,
980E79402613B68E00F0834B /* Hippolyte.xcframework in Frameworks */,
98101DC42238A2F000BA04CA /* HyperwalletSDK.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -738,7 +721,6 @@
98101DB72238A2F000BA04CA /* Frameworks */,
98101DB82238A2F000BA04CA /* Resources */,
DBCA37C3225E52DA00CD4137 /* Swiftlint */,
FD8C499525E014E30062A440 /* Embed Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -1210,7 +1192,6 @@
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
"$(PROJECT_DIR)/Carthage/Build/iOS",
);
PRODUCT_BUNDLE_IDENTIFIER = com.hyperwallet.ios.HyperwalletSDKTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1238,7 +1219,6 @@
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
"$(PROJECT_DIR)/Carthage/Build/iOS",
);
PRODUCT_BUNDLE_IDENTIFIER = com.hyperwallet.ios.HyperwalletSDKTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Use [Carthage](https://github.com/Carthage/Carthage) or [CocoaPods](https://coco
### Carthage
Specify it in your Cartfile:
```ogdl
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta12"
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta13"
```

### CocoaPods
Specify it in your Podfile:
```ruby
pod 'HyperwalletSDK', '~> 1.0.0-beta12'
pod 'HyperwalletSDK', '~> 1.0.0-beta13'
```

## Initialization
Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>TAG_VERSION</key>
<string>1.0.0-beta12</string>
<string>1.0.0-beta13</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Tests/AnyCodableTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testable import HyperwalletSDK
import XCTest

//swiftlint:disable force_cast force_try
// swiftlint:disable force_cast force_try
class AnyCodableTests: XCTestCase {
func testEncode() {
// Given
Expand Down
3 changes: 2 additions & 1 deletion Tests/Balance/HyperwalletBalanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class HyperwalletBalanceTests: XCTestCase {
var userBalanceList: HyperwalletPageList<HyperwalletBalance>?
var errorResponse: HyperwalletErrorType?

//When
// When
Hyperwallet.shared.listUserBalances { (result, error) in
userBalanceList = result
errorResponse = error
Expand All @@ -93,6 +93,7 @@ class HyperwalletBalanceTests: XCTestCase {
}
}

// swiftlint:disable empty_xctest_method
override static var defaultTestSuite: XCTestSuite {
let testSuite = XCTestSuite(name: String(describing: self))
let testParameters = getTestParameters()
Expand Down
3 changes: 2 additions & 1 deletion Tests/Balance/HyperwalletPrepaidCardBalanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class HyperwalletPrepaidCardBalanceTests: XCTestCase {
var prepaidCardBalanceList: HyperwalletPageList<HyperwalletBalance>?
var errorResponse: HyperwalletErrorType?

//When
// When
Hyperwallet.shared.listPrepaidCardBalances(prepaidCardToken: "trm-1234") { (result, error) in
prepaidCardBalanceList = result
errorResponse = error
Expand All @@ -94,6 +94,7 @@ class HyperwalletPrepaidCardBalanceTests: XCTestCase {
}
}

// swiftlint:disable empty_xctest_method
override static var defaultTestSuite: XCTestSuite {
let testSuite = XCTestSuite(name: String(describing: self))
let testParameters = getTestParameters()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Hippolyte
@testable import HyperwalletSDK
import XCTest

//swiftlint:disable multiline_arguments
// swiftlint:disable multiline_arguments
class HyperwalletTransferMethodConfigurationTests: XCTestCase {
override func setUp() {
Hyperwallet.setup(HyperwalletTestHelper.authenticationProvider)
Expand All @@ -14,7 +14,7 @@ class HyperwalletTransferMethodConfigurationTests: XCTestCase {
}
}

//swiftlint:disable function_body_length
// swiftlint:disable function_body_length
func testRetrieveTransferMethodConfigurationKeys_success() {
// Given
let request = setUpTransferMethodConfigurationRequest("TransferMethodConfigurationKeysResponse")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class HyperwalletTransferMethodUpdateConfigurationTests: XCTestCase {
}
}

//swiftlint:disable function_body_length
// swiftlint:disable function_body_length
func testRetrieveTransferMethodUpdateConfigurationFields_bankAccount() {
// Given
let request = setUpTransferMethodUpdateConfigurationRequest("TransferMethodUpdateConfigurationFieldsResponse")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testable import HyperwalletSDK
import XCTest

//swiftlint:disable force_try
// swiftlint:disable force_try
class TransferMethodConfigurationFieldResultTests: XCTestCase {
var transferMethodConfigurationField: TransferMethodConfigurationField!
var fieldResult: TransferMethodConfigurationFieldResult!
Expand Down
22 changes: 1 addition & 21 deletions Tests/GraphQL/TransferMethodConfigurationKeyResultTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testable import HyperwalletSDK
import XCTest

//swiftlint:disable force_try
// swiftlint:disable force_try
class TransferMethodConfigurationKeyResultTests: XCTestCase {
var transferMethodConfigurationKey: TransferMethodConfigurationKey!
var keyResult: TransferMethodConfigurationKeyResult!
Expand All @@ -12,26 +12,6 @@ class TransferMethodConfigurationKeyResultTests: XCTestCase {
keyResult = TransferMethodConfigurationKeyResult(transferMethodConfigurationKey.countries?.nodes)
}

func testPerformanceCountries() {
self.measure {
_ = keyResult.countries()
}
}

func testPerformanceUSCurrencies() {
self.measure {
_ = keyResult.currencies(from: keyResult.countries()?.first?.code ?? "")
}
}

func testPerformanceTransferMethods() {
self.measure {
let country = keyResult.countries()?.first
_ = keyResult.transferMethodTypes(countryCode: country?.code ?? "",
currencyCode: country?.currencies?.nodes?.first?.code ?? "")
}
}

func testCountries_success() {
let countries = keyResult.countries()
XCTAssertEqual(countries?.count, 4)
Expand Down
6 changes: 3 additions & 3 deletions Tests/HTTPTransactionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class HTTPTransactionTests: XCTestCase {
// Given
var hasRequestTransactionPerformed = false
// When - an API call request is made
let completionHandler = {(data: [String: String]?, error: HyperwalletErrorType?) -> Void in
let completionHandler = {(_: [String: String]?, _: HyperwalletErrorType?) -> Void in
hasRequestTransactionPerformed = true
}
transaction.performRest(httpMethod: .get,
Expand Down Expand Up @@ -71,7 +71,7 @@ class HTTPTransactionTests: XCTestCase {
var queryParamsDictionary: [String: String]?
var urlValueComponents: URLComponents?
// When
let completionHandler = { (data: [String: String]?, error: HyperwalletErrorType?) -> Void in }
let completionHandler = { (_: [String: String]?, _: HyperwalletErrorType?) -> Void in }
transaction.performRest(httpMethod: .get,
urlPath: "users/%@/bank-accounts",
payload: "",
Expand Down Expand Up @@ -122,7 +122,7 @@ class HTTPTransactionTests: XCTestCase {
transferMethodType: "BANK_ACCOUNT",
profile: "INDIVIDUAL")
// When - an API call request is made
let completionHandler = { (data: [String: String]?, error: HyperwalletErrorType?) -> Void in }
let completionHandler = { (_: [String: String]?, _: HyperwalletErrorType?) -> Void in }

transaction.performGraphQl(request, completionHandler: completionHandler)

Expand Down
2 changes: 1 addition & 1 deletion Tests/Receipt/HyperwalletReceiptTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class HyperwalletReceiptTests: XCTestCase {
}
}

//swiftlint:disable function_body_length
// swiftlint:disable function_body_length
func testListUserReceipts_success() {
// Given
let expectation = self.expectation(description: "List User Receipts completed")
Expand Down
2 changes: 1 addition & 1 deletion Tests/TransactionTypeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TransactionTypeTests: XCTestCase {
XCTAssertEqual(authorizationValue, "Bearer \(authenticationToken)", "The Bearer token should be equals")
}

//swiftlint:disable force_cast
// swiftlint:disable force_cast
func testCreateRestRequest_invalidURL() {
let transactionType: TransactionType = .rest
let configuration = Configuration(createOn: 0,
Expand Down
Loading

0 comments on commit d2b0ab6

Please sign in to comment.