Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit c8059f6

Browse files
IngenicoEPaymentsjenkins
authored andcommitted
Release 2.3.1.
1 parent cdb076f commit c8059f6

File tree

10 files changed

+26
-22
lines changed

10 files changed

+26
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ xcuserdata/
2121
*.moved-aside
2222
*.xcuserstate
2323
*.DS_store
24+
.idea/
2425

2526
## Obj-C/Swift specific
2627
*.hmap

IngenicoConnectExample.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "IngenicoConnectExample"
4-
s.version = "2.3.0"
4+
s.version = "2.3.1"
55
s.summary = "Ingenico Connect Swift SDK Example App"
66
s.description = <<-DESC
77
This is the example app for the native iOS SDK facilitates handling payments in your apps

IngenicoConnectExample.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@
943943
"$(inherited)",
944944
);
945945
INFOPLIST_FILE = IngenicoConnectExampleTests/Info.plist;
946-
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
946+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
947947
PRODUCT_BUNDLE_IDENTIFIER = "com.globalcollect.${PRODUCT_NAME:rfc1034identifier}";
948948
PRODUCT_NAME = IngenicoConnectExampleTests;
949949
PROVISIONING_PROFILE = "";
@@ -969,7 +969,7 @@
969969
GCC_PRECOMPILE_PREFIX_HEADER = YES;
970970
GCC_PREFIX_HEADER = "";
971971
INFOPLIST_FILE = IngenicoConnectExampleTests/Info.plist;
972-
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
972+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
973973
PRODUCT_BUNDLE_IDENTIFIER = "com.globalcollect.${PRODUCT_NAME:rfc1034identifier}";
974974
PRODUCT_NAME = IngenicoConnectExampleTests;
975975
PROVISIONING_PROFILE = "";
@@ -1012,7 +1012,7 @@
10121012
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
10131013
GCC_WARN_UNUSED_FUNCTION = YES;
10141014
GCC_WARN_UNUSED_VARIABLE = YES;
1015-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1015+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
10161016
ONLY_ACTIVE_ARCH = YES;
10171017
PROVISIONING_PROFILE = "A0A13123-5845-42BE-A813-90ED61E2B2CF";
10181018
SDKROOT = iphoneos;
@@ -1047,7 +1047,7 @@
10471047
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
10481048
GCC_WARN_UNUSED_FUNCTION = YES;
10491049
GCC_WARN_UNUSED_VARIABLE = YES;
1050-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1050+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
10511051
PROVISIONING_PROFILE = "A0A13123-5845-42BE-A813-90ED61E2B2CF";
10521052
SDKROOT = iphoneos;
10531053
SWIFT_VERSION = 5.0;
@@ -1076,7 +1076,7 @@
10761076
"\"${SRCROOT}\"",
10771077
);
10781078
INFOPLIST_FILE = IngenicoConnectExample/Info.plist;
1079-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1079+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
10801080
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
10811081
PRODUCT_BUNDLE_IDENTIFIER = nl.ingenico.connect.SwiftExampleApp;
10821082
PRODUCT_NAME = IngenicoConnectExample;
@@ -1109,7 +1109,7 @@
11091109
"\"${SRCROOT}\"",
11101110
);
11111111
INFOPLIST_FILE = IngenicoConnectExample/Info.plist;
1112-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1112+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
11131113
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
11141114
PRODUCT_BUNDLE_IDENTIFIER = nl.ingenico.connect.SwiftExampleApp;
11151115
PRODUCT_NAME = IngenicoConnectExample;

IngenicoConnectExample/Constants/AppConstants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class AppConstants {
1919
static let kClientSessionId = "kClientSessionId"
2020
static let kCustomerId = "kCustomerId"
2121
static let kMerchantId = "kMerchantId"
22-
static let kApplicationIdentifier = "Swift Example Application/v2.3.0"
22+
static let kApplicationIdentifier = "Swift Example Application/v2.3.1"
2323
static let kBaseURL = "kBaseURL"
2424
static let kAssetsBaseURL = "kAssetsBaseURL"
2525
static let kPrice = "kPrice"

IngenicoConnectExample/ViewControllers/BoletoProductViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class BoletoProductViewController: PaymentProductViewController {
4343
// Dispose of any resources that can be recreated.
4444
}
4545

46-
override func formatAndUpdateCharacters(textField: UITextField, cursorPosition: inout Int, indexPath: IndexPath) {
46+
override func formatAndUpdateCharacters(textField: UITextField, cursorPosition: inout Int, indexPath: IndexPath, trimSet: CharacterSet) {
4747
super.formatAndUpdateCharacters(textField: textField, cursorPosition: &cursorPosition, indexPath: indexPath)
4848

4949
guard let row = formRows[indexPath.row] as? FormRowTextField else {

IngenicoConnectExample/ViewControllers/CardProductViewController.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,16 @@ class CardProductViewController: PaymentProductViewController {
183183
}
184184
super.updateFormRows()
185185
}
186-
override func formatAndUpdateCharacters(textField: UITextField, cursorPosition: inout Int, indexPath: IndexPath) {
187-
super.formatAndUpdateCharacters(textField: textField, cursorPosition: &cursorPosition, indexPath: indexPath)
188-
186+
override func formatAndUpdateCharacters(textField: UITextField, cursorPosition: inout Int, indexPath: IndexPath, trimSet: CharacterSet) {
189187
guard let row = formRows[indexPath.row] as? FormRowTextField else {
190188
return
191189
}
190+
191+
if row.paymentProductField.identifier == "cardholderName" {
192+
super.formatAndUpdateCharacters(textField: textField, cursorPosition: &cursorPosition, indexPath: indexPath, trimSet: CharacterSet(charactersIn: "?`~!@#$%^&*()_+=[]{}|\\;:\"<>£¥•,€"))
193+
} else {
194+
super.formatAndUpdateCharacters(textField: textField, cursorPosition: &cursorPosition, indexPath: indexPath)
195+
}
192196

193197
if row.paymentProductField.identifier == "cardNumber" {
194198
let unmasked = inputData.unmaskedValue(forField: row.paymentProductField.identifier)

IngenicoConnectExample/ViewControllers/PaymentProductViewController.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,11 @@ class PaymentProductViewController: UITableViewController, UITextFieldDelegate,
477477
return false;
478478
}
479479

480-
func formatAndUpdateCharacters(textField: UITextField, cursorPosition: inout Int, indexPath: IndexPath) {
480+
func formatAndUpdateCharacters(textField: UITextField, cursorPosition: inout Int, indexPath: IndexPath, trimSet: CharacterSet = CharacterSet(charactersIn: " /-_")) {
481481
guard let row = formRows[indexPath.row] as? FormRowTextField else {
482482
return
483483
}
484-
485-
let trimSet = CharacterSet(charactersIn: " /-_")
484+
486485
let formattedString = inputData.maskedValue(forField: row.paymentProductField.identifier, cursorPosition: &cursorPosition).trimmingCharacters(in: trimSet)
487486
row.field.text = formattedString
488487
textField.text = formattedString

IngenicoConnectExample/ViewControllers/StartViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public class StartViewController: UIViewController, ContinueShoppingTarget, Paym
240240
if let row = UserDefaults.standard.value(forKey: AppConstants.kCurrency) as? Int {
241241
currencyCodePicker.selectRow(row, inComponent: 0, animated: false)
242242
} else {
243-
currencyCodePicker.selectRow(42, inComponent: 0, animated: false)
243+
currencyCodePicker.selectRow(43, inComponent: 0, animated: false)
244244
}
245245
containerView.addSubview(currencyCodeLabel)
246246
containerView.addSubview(currencyCodePicker)

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Uncomment the next line to define a global platform for your project
2-
platform :ios, '9.0'
2+
platform :ios, '10.0'
33

44
target 'IngenicoConnectExample' do
55
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
66
use_frameworks!
7-
pod 'IngenicoConnectKit', '~> 4.6'
7+
pod 'IngenicoConnectKit', '~> 5.0'
88
# Pods for IngenicoConnectExample
99
pod 'SVProgressHUD'
1010
pod 'Alamofire'

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
22
- Alamofire (4.9.1)
33
- CryptoSwift (1.0.0)
4-
- IngenicoConnectKit (4.6.0):
4+
- IngenicoConnectKit (5.0.0):
55
- Alamofire (~> 4.8)
66
- CryptoSwift (= 1.0.0)
77
- SVProgressHUD (2.2.5)
@@ -22,9 +22,9 @@ SPEC REPOS:
2222
SPEC CHECKSUMS:
2323
Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
2424
CryptoSwift: d81eeaa59dc5a8d03720fe919a6fd07b51f7439f
25-
IngenicoConnectKit: d7880a199aed02fa9c03d207b27ecfc5a9f0c67e
25+
IngenicoConnectKit: 1b879cf65275bbe293a65925916b2f11571f6296
2626
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
2727

28-
PODFILE CHECKSUM: 17b4abbebe0e27f54ddb7e6e98051d491fe8299a
28+
PODFILE CHECKSUM: cd92ad9a02524447f9be705e37b46baa3f172de1
2929

30-
COCOAPODS: 1.10.1
30+
COCOAPODS: 1.10.0

0 commit comments

Comments
 (0)