From 453187e1484befa0212da7aa85692d76e3342025 Mon Sep 17 00:00:00 2001 From: Flavio Mattos Date: Wed, 18 May 2022 14:17:07 -0700 Subject: [PATCH] feature/DTONBWTWO-702 release beta 17 (#327) Beta 17 release --- CHANGELOG.md | 5 +- Cartfile | 5 +- Common/CurrencyFormatter.swift | 6 +- Common/Sources/Helper/CurrencyFormatter.swift | 4 +- Common/Tests/Extensions/StringTests.swift | 3 +- HyperwalletUISDK.podspec | 8 +- HyperwalletUISDK.xcodeproj/project.pbxproj | 144 +++++++++++------- README.md | 12 +- 8 files changed, 111 insertions(+), 76 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bfb8754..9900f6de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ Changelog ========= +[1.0.0-beta17](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta17) +------------------- +- iOS upgrade to version 13 + [1.0.0-beta16](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta16) ------------------- - Fixed currency formatting issues @@ -7,7 +11,6 @@ Changelog - Fixed memory leaks - Fixed no fee display issue - [1.0.0-beta15](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta15) ------------------- - Fixed frameworks issue after upgrade to Xcode 12 diff --git a/Cartfile b/Cartfile index 2df5286a..90b2c06f 100644 --- a/Cartfile +++ b/Cartfile @@ -1,3 +1,2 @@ -github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta14" -github "hyperwallet/hyperwallet-ios-insight" "1.0.0-beta04" - +github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta16" +github "hyperwallet/hyperwallet-ios-insight" "1.0.0-beta05" diff --git a/Common/CurrencyFormatter.swift b/Common/CurrencyFormatter.swift index aae8b437..f4d1ed56 100644 --- a/Common/CurrencyFormatter.swift +++ b/Common/CurrencyFormatter.swift @@ -81,8 +81,9 @@ class CurrencyFormatterTests: XCTestCase { ("Vietnam Currency", "1000000", "VND", "1.000.000,00") ] cases.forEach { + let expected = $3.replacingOccurrences(of: "\u{200F}", with: "", options: NSString.CompareOptions.literal, range: nil) XCTAssertEqual(CurrencyFormatter.formatStringAmount($1, with: $2), - $3, + expected, "\($0) \($2) test case - currency should be equal to \($3)") } } @@ -147,9 +148,10 @@ class CurrencyFormatterTests: XCTestCase { ("Vietnam Currency", "1000000", "VND", "1.000.000,00") ] cases.forEach { + let expected = $3.replacingOccurrences(of: "\u{200F}", with: "", options: NSString.CompareOptions.literal, range: nil) let doubleAmount = NSString(string: $1).doubleValue XCTAssertEqual(CurrencyFormatter.formatDoubleAmount(doubleAmount, with: $2), - $3, + expected, "\($0) test case - currency should be equal to \($3)") } } diff --git a/Common/Sources/Helper/CurrencyFormatter.swift b/Common/Sources/Helper/CurrencyFormatter.swift index 574852dd..a772fa86 100644 --- a/Common/Sources/Helper/CurrencyFormatter.swift +++ b/Common/Sources/Helper/CurrencyFormatter.swift @@ -52,7 +52,7 @@ public struct CurrencyFormatter { formatter.currencySymbol = "" if let amount = formatter.string(from: NSNumber(value: amount)) { - return amount.trimmingCharacters(in: .whitespaces) + return amount.replacingOccurrences(of: "\u{200F}", with: "", options: NSString.CompareOptions.literal, range: nil).trimmingCharacters(in: .whitespaces) } } return "\(amount)" @@ -92,7 +92,7 @@ public struct CurrencyFormatter { formatter.currencyCode = currencyCode formatter.locale = getLocaleIdentifer(for: currencyCode) formatter.currencySymbol = "" - return formatter.string(for: number)?.trimmingCharacters(in: .whitespaces) ?? amount + return formatter.string(for: number)?.replacingOccurrences(of: "\u{200F}", with: "", options: NSString.CompareOptions.literal, range: nil).trimmingCharacters(in: .whitespaces) ?? amount } else { return amount } diff --git a/Common/Tests/Extensions/StringTests.swift b/Common/Tests/Extensions/StringTests.swift index e0c58b3d..7725583f 100644 --- a/Common/Tests/Extensions/StringTests.swift +++ b/Common/Tests/Extensions/StringTests.swift @@ -81,7 +81,8 @@ class StringTests: XCTestCase { ("Vietnam Currency", "1000000", "VND", "₫1.000.000,00") ] cases.forEach { - XCTAssertEqual($1.formatToCurrency(with: $2), $3, "\($0) test case - currency should be equal to \($3)") + let expected = $3.replacingOccurrences(of: "\u{200F}", with: "", options: NSString.CompareOptions.literal, range: nil) + XCTAssertEqual($1.formatToCurrency(with: $2), expected, "\($0) test case - currency should be equal to \($3)") } } } diff --git a/HyperwalletUISDK.podspec b/HyperwalletUISDK.podspec index 7a056fff..29b9968d 100644 --- a/HyperwalletUISDK.podspec +++ b/HyperwalletUISDK.podspec @@ -1,23 +1,23 @@ Pod::Spec.new do |spec| spec.name = 'HyperwalletUISDK' - spec.version = '1.0.0-beta16' + spec.version = '1.0.0-beta17' spec.summary = 'Hyperwallet UI SDK for iOS to integrate with Hyperwallet Platform' spec.homepage = 'https://github.com/hyperwallet/hyperwallet-ios-ui-sdk' spec.license = { :type => 'MIT', :file => 'LICENSE' } spec.author = { 'Hyperwallet Systems Inc' => 'devsupport@hyperwallet.com' } spec.platform = :ios - spec.ios.deployment_target = '10.0' + spec.ios.deployment_target = '13.0' spec.source = { :git => 'https://github.com/hyperwallet/hyperwallet-ios-ui-sdk.git', :tag => "#{spec.version}"} spec.requires_arc = true spec.swift_version = '5.0' - spec.dependency 'HyperwalletSDK', '1.0.0-beta14' + spec.dependency 'HyperwalletSDK', '1.0.0-beta16' spec.default_subspec = 'TransferMethod', 'Receipt', 'Transfer' spec.subspec "Common" do |common| common.resources = ['Common/Sources/Resources/*', 'Common/**/*.xib', 'Common/**/*.strings'] common.source_files = "Common/Sources/**/*.{swift,h}" - common.dependency 'Insights', '1.0.0-beta04' + common.dependency 'Insights', '1.0.0-beta05' end spec.subspec "TransferMethodRepository" do |transferMethodRepository| diff --git a/HyperwalletUISDK.xcodeproj/project.pbxproj b/HyperwalletUISDK.xcodeproj/project.pbxproj index 046c7ace..a50ab73f 100644 --- a/HyperwalletUISDK.xcodeproj/project.pbxproj +++ b/HyperwalletUISDK.xcodeproj/project.pbxproj @@ -4474,6 +4474,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4485,7 +4486,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4508,6 +4509,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4519,7 +4521,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4541,6 +4543,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4552,7 +4555,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4577,7 +4580,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4600,7 +4603,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4623,7 +4626,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4643,6 +4646,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; @@ -4654,7 +4658,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Transfer/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4678,6 +4682,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; @@ -4689,7 +4694,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Transfer/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4712,6 +4717,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; @@ -4723,7 +4729,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Transfer/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4748,7 +4754,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Transfer/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4771,7 +4777,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Transfer/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4794,7 +4800,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Transfer/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4814,6 +4820,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4824,7 +4831,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = ReceiptRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4847,6 +4854,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4857,7 +4865,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = ReceiptRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4879,6 +4887,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4889,7 +4898,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = ReceiptRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4912,7 +4921,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = ReceiptRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4934,7 +4943,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = ReceiptRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4956,7 +4965,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = ReceiptRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -4976,6 +4985,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -4987,7 +4997,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = UserRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5009,6 +5019,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5020,7 +5031,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = UserRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5041,6 +5052,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5052,7 +5064,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = UserRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5076,7 +5088,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = UserRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5097,7 +5109,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = UserRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5118,7 +5130,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = UserRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5253,6 +5265,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5264,7 +5277,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Common/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5286,6 +5299,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5297,7 +5311,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Common/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5318,6 +5332,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5329,7 +5344,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Common/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5352,7 +5367,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Common/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5374,7 +5389,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Common/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5396,7 +5411,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Common/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5416,6 +5431,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5426,7 +5442,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethod/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5448,6 +5464,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5458,7 +5475,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethod/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5479,6 +5496,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5489,7 +5507,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethod/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5513,7 +5531,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethod/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5536,7 +5554,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethod/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5559,7 +5577,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethod/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5580,6 +5598,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_SEARCH_USER_PATHS = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; @@ -5629,7 +5648,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -5704,6 +5723,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5714,7 +5734,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Receipt/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5737,6 +5757,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5747,7 +5768,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Receipt/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5769,6 +5790,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5779,7 +5801,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Receipt/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5804,7 +5826,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Receipt/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5827,7 +5849,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Receipt/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5850,7 +5872,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = Receipt/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5870,6 +5892,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5881,7 +5904,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethodRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5903,6 +5926,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5914,7 +5938,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethodRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5935,6 +5959,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CODE_SIGN_IDENTITY = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; @@ -5946,7 +5971,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethodRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5970,7 +5995,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethodRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -5993,7 +6018,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethodRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6016,7 +6041,7 @@ DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = TransferMethodRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6037,6 +6062,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_SEARCH_USER_PATHS = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; @@ -6086,7 +6112,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -6104,6 +6130,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ALWAYS_SEARCH_USER_PATHS = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; @@ -6147,7 +6174,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; @@ -6164,6 +6191,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CODE_SIGN_IDENTITY = "Apple Development"; @@ -6177,7 +6205,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = BalanceRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6199,6 +6227,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CODE_SIGN_IDENTITY = "Apple Development"; @@ -6212,7 +6241,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = BalanceRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6233,6 +6262,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CODE_SIGN_IDENTITY = "Apple Development"; @@ -6246,7 +6276,7 @@ FRAMEWORK_SEARCH_PATHS = ""; INFOPLIST_FILE = BalanceRepository/Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6269,7 +6299,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CODE_SIGN_STYLE = Automatic; INFOPLIST_FILE = BalanceRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6289,7 +6319,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CODE_SIGN_STYLE = Automatic; INFOPLIST_FILE = BalanceRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -6309,7 +6339,7 @@ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CODE_SIGN_STYLE = Automatic; INFOPLIST_FILE = BalanceRepository/Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/README.md b/README.md index 041afc75..7fb650d5 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Note that this SDK is geared towards those who need both backend data and UI fea ## Prerequisites * A Hyperwallet merchant account * Set Up your server to manage the user's authentication process on the Hyperwallet platform. See the [Authentication](#Authentication) section for more information. -* iOS 10.0+ +* iOS 13.0+ * Xcode 10.2+ * Swift 5.0 @@ -34,7 +34,7 @@ Adding one or more of these frameworks allows users to explore the particular fu ### Carthage Specify it in your Cartfile: ```ogdl -github "hyperwallet/hyperwallet-ios-ui-sdk" "1.0.0-beta16" +github "hyperwallet/hyperwallet-ios-ui-sdk" "1.0.0-beta17" ``` Add desired modules using the `Linked Frameworks and Libraries` option to make them available in the app. Use `import ` to add the dependency within a file @@ -42,13 +42,13 @@ Use `import ` to add the dependency within a file ### CocoaPods - Install a specific framework (install one or more frameworks based on your requirement) ```ruby -pod "HyperwalletUISDK/TransferMethod", "1.0.0-beta16" -pod "HyperwalletUISDK/Transfer", "1.0.0-beta16" -pod "HyperwalletUISDK/Receipt", "1.0.0-beta16" +pod "HyperwalletUISDK/TransferMethod", "1.0.0-beta17" +pod "HyperwalletUISDK/Transfer", "1.0.0-beta17" +pod "HyperwalletUISDK/Receipt", "1.0.0-beta17" ``` - To install all available modules (TransferMethod, Transfer, Receipt) ```ruby -pod 'HyperwalletUISDK', '~> 1.0.0-beta16' +pod 'HyperwalletUISDK', '~> 1.0.0-beta17' ``` Use `import HyperwalletUISDK` to add the dependency within a file.