From 6141c05deb663461fad50bbfd89131f41a0b5177 Mon Sep 17 00:00:00 2001 From: prempador Date: Thu, 23 Apr 2020 15:46:39 +0200 Subject: [PATCH 1/3] bump to v1.1.400 --- Cartfile | 2 +- FiskalySDK.xcodeproj/project.pbxproj | 4 ++-- FiskalySDK/FiskalyHttpClient.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cartfile b/Cartfile index 7544cf1..765b226 100644 --- a/Cartfile +++ b/Cartfile @@ -1 +1 @@ -binary "https://storage.googleapis.com/fiskaly-cdn/clients/com.fiskaly.client-ios-all-v1.1.300.carthage.json" == 1.1.300 \ No newline at end of file +binary "https://storage.googleapis.com/fiskaly-cdn/clients/com.fiskaly.client-ios-all-v1.1.400.carthage.json" == 1.1.400 diff --git a/FiskalySDK.xcodeproj/project.pbxproj b/FiskalySDK.xcodeproj/project.pbxproj index fb161f5..2c88b0f 100644 --- a/FiskalySDK.xcodeproj/project.pbxproj +++ b/FiskalySDK.xcodeproj/project.pbxproj @@ -407,7 +407,7 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = staticlib; - MARKETING_VERSION = 1.1.301; + MARKETING_VERSION = 1.1.400; PRODUCT_BUNDLE_IDENTIFIER = com.fiskaly.FiskalySDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -442,7 +442,7 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = staticlib; - MARKETING_VERSION = 1.1.301; + MARKETING_VERSION = 1.1.400; PRODUCT_BUNDLE_IDENTIFIER = com.fiskaly.FiskalySDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/FiskalySDK/FiskalyHttpClient.swift b/FiskalySDK/FiskalyHttpClient.swift index ed43ac2..e2a512c 100644 --- a/FiskalySDK/FiskalyHttpClient.swift +++ b/FiskalySDK/FiskalyHttpClient.swift @@ -24,7 +24,7 @@ public class FiskalyHttpClient { "api_key": apiKey, "api_secret": apiSecret, "base_url": baseUrl, - "sdk_version": "iOS SDK 1.1.301" + "sdk_version": "iOS SDK 1.1.400" ] let request = JsonRpcRequest(method: "create-context", params: contextRequestParams) From 6ac4f86b9f0757662d244bc4125dd7f2038401d3 Mon Sep 17 00:00:00 2001 From: prempador Date: Thu, 23 Apr 2020 15:47:10 +0200 Subject: [PATCH 2/3] adapt to changes from v1.1.400 --- FiskalySDK/Results.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/FiskalySDK/Results.swift b/FiskalySDK/Results.swift index 158bc18..37e7896 100644 --- a/FiskalySDK/Results.swift +++ b/FiskalySDK/Results.swift @@ -25,7 +25,6 @@ public class ClientVersion : Codable { public class SMAERSVersion : Codable { public var version: String - public var commit_hash: String } /* From 27e53982dfa01a0ba1f02abe912bf6d1e44c2a3a Mon Sep 17 00:00:00 2001 From: prempador Date: Thu, 23 Apr 2020 16:35:08 +0200 Subject: [PATCH 3/3] update test --- FiskalySDKTests/FiskalySDKTests.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/FiskalySDKTests/FiskalySDKTests.swift b/FiskalySDKTests/FiskalySDKTests.swift index a4a11d5..bd0d704 100644 --- a/FiskalySDKTests/FiskalySDKTests.swift +++ b/FiskalySDKTests/FiskalySDKTests.swift @@ -40,7 +40,6 @@ class FiskalySDKTests: XCTestCase { XCTAssertNotEqual(response.client.source_hash, "") XCTAssertNotEqual(response.client.commit_hash, "") XCTAssertNotEqual(response.smaers.version, "") - XCTAssertNotEqual(response.smaers.commit_hash, "") break; case .failure(let error): print("JsonRpcError: \(error.code) \(error.message)")