Skip to content

Commit d3e35bc

Browse files
committed
Bug fixes and performance improvements
1 parent b197acf commit d3e35bc

File tree

7 files changed

+27
-34
lines changed

7 files changed

+27
-34
lines changed

Example/FlutterwaveSDK.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
TargetAttributes = {
218218
607FACCF1AFB9204008FA782 = {
219219
CreatedOnToolsVersion = 6.3.1;
220-
DevelopmentTeam = 77G456H6NP;
220+
DevelopmentTeam = YL4C3AS383;
221221
LastSwiftMigration = 0900;
222222
};
223223
607FACE41AFB9204008FA782 = {
@@ -510,11 +510,11 @@
510510
buildSettings = {
511511
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
512512
CODE_SIGN_ENTITLEMENTS = FlutterwaveSDK_Example.entitlements;
513-
DEVELOPMENT_TEAM = 77G456H6NP;
513+
DEVELOPMENT_TEAM = YL4C3AS383;
514514
INFOPLIST_FILE = FlutterwaveSDK/Info.plist;
515515
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
516516
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
517-
MARKETING_VERSION = 1.2.8;
517+
MARKETING_VERSION = 1.3.1;
518518
MODULE_NAME = ExampleApp;
519519
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
520520
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -535,7 +535,7 @@
535535
INFOPLIST_FILE = FlutterwaveSDK/Info.plist;
536536
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
537537
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
538-
MARKETING_VERSION = 1.2.8;
538+
MARKETING_VERSION = 1.3.1;
539539
MODULE_NAME = ExampleApp;
540540
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
541541
PRODUCT_NAME = "$(TARGET_NAME)";

Example/FlutterwaveSDK/ViewController.swift

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@ class ViewController: UIViewController, FlutterwavePayProtocol {
3232

3333

3434
@objc func showExample(){
35-
let config = FlutterwaveConfig.sharedConfig()
36-
config.paymentOptionsToExclude = []
37-
config.currencyCode = "NGN" // This is the specified currency to charge in.
38-
config.email = "[USER'S EMAIL]" // This is the email address of the customer
39-
config.isStaging = true // Toggle this for staging and live environment
40-
config.phoneNumber = "[USER'S PHONE_NUMBER]" //Phone number
41-
config.transcationRef = "[TRANSACTION REF]" // This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction.
42-
config.firstName = "[USER'S FIRST NAME]" // This is the customers first name.
43-
config.lastName = "[USER'S SECOND NAME]" //This is the customers last name.
44-
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
45-
config.narration = "simplifying payments for endless possibilities"
46-
config.publicKey = "[PUB_KEY]" //Public key
47-
config.encryptionKey = "[ENCRYPTION_KEY]" //Encryption key
48-
config.isPreAuth = false // This should be set to true for preauthoize card transactions
49-
let controller = FlutterwavePayViewController()
50-
let nav = UINavigationController(rootViewController: controller)
51-
controller.amount = "[AMOUNT]" // This is the amount to be charged.
52-
controller.delegate = self
53-
self.present(nav, animated: true)
35+
let config = FlutterwaveConfig.sharedConfig()
36+
config.paymentOptionsToExclude = []
37+
config.currencyCode = "NGN" // This is the specified currency to charge in.
38+
config.email = "[USER'S EMAIL]" // This is the email address of the customer
39+
config.isStaging = true // Toggle this for staging and live environment
40+
config.phoneNumber = "[USER'S PHONE_NUMBER]" //Phone number
41+
config.transcationRef = "[TRANSACTION REF]" // This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction.
42+
config.firstName = "[USER'S FIRST NAME]" // This is the customers first name.
43+
config.lastName = "[USER'S SECOND NAME]" //This is the customers last name.
44+
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
45+
config.narration = "simplifying payments for endless possibilities"
46+
config.publicKey = "[PUB_KEY]" //Public key
47+
config.encryptionKey = "[ENCRYPTION_KEY]" //Encryption key
48+
config.isPreAuth = false // This should be set to true for preauthoize card transactions
49+
let controller = FlutterwavePayViewController()
50+
let nav = UINavigationController(rootViewController: controller)
51+
controller.amount = "[AMOUNT]" // This is the amount to be charged.
52+
controller.delegate = self
53+
self.present(nav, animated: true)
5454

5555
}
5656

FlutterwaveSDK.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'FlutterwaveSDK'
11-
s.version = '1.2.8'
11+
s.version = '1.3.1'
1212
s.summary = 'FlutterwaveSDK'
1313

1414
# This description is used to generate tags and improve search results.
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
2525
s.screenshots = 'https://github.com/Flutterwave/FlutterwaveSDK/blob/master/FlutterwaveSDK/Assets/Assets.xcassets/FlutterwaveScreenshot.imageset/FlutterwaveScreenshot.png'
2626
s.license = { :type => 'MIT', :file => 'LICENSE' }
2727
s.author = { 'Flutterwave Developers' => '[email protected]' }
28-
s.source = { :git => 'https://github.com/Flutterwave/FlutterwaveSDK.git', :tag => '1.2.8'}
28+
s.source = { :git => 'https://github.com/Flutterwave/FlutterwaveSDK.git', :tag => s.version}
2929
s.social_media_url = 'https://twitter.com/FlutterwaveEng'
3030

3131
s.ios.deployment_target = '11.0'

FlutterwaveSDK/Classes/UI/FlutterwavePayViewController.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,6 @@ public class FlutterwavePayViewController: BaseViewController {
10281028

10291029
let phoneValid = self.mobileMoneyUgandaContentContainer.mobileMoneyUgandaPhone.validateAndShowError(validationType: ValidatorType.requiredField(field: "phone number"))
10301030

1031-
MobileMoneyViewModel.sharedViewModel.ugandaMoney(amount: self.amount.orEmpty(), phoneNumber: flutterwaveMobileMoneyUganda.phoneNumber.orEmpty())
1032-
10331031
if (phoneValid){
10341032
MobileMoneyViewModel.sharedViewModel.ugandaMoney(amount: self.amount.orEmpty(), phoneNumber: flutterwaveMobileMoneyUganda.phoneNumber.orEmpty())
10351033
}

FlutterwaveSDK/Classes/UI/NewExtraFlutterwave/FlutterWave+UIPickerView.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ extension FlutterwavePayViewController : UITextFieldDelegate,CardSelect,UIPicker
5050
}
5151
}
5252

53-
//Disable textfield interactions
54-
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
55-
self.resignFirstResponder()
56-
return false
57-
}
5853

5954

6055
public func textFieldDidBeginEditing(_ textField: UITextField) {

FlutterwaveSDK/Classes/Utils/RaveConstants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class RaveConstants: NSObject {
2525

2626
}
2727

28-
static let flutterWaveVersion = "1.2.8"
28+
static let flutterWaveVersion = "1.3.1"
2929
static let flutterColor = UIColor(hex: "#F5A623")
3030

3131
static let bankStyle = [(code:"044",color:"#143f89",image:"rave_access2"),

FlutterwaveSDK/Classes/ViewModel/MobileMoneyViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class MobileMoneyViewModel: BaseViewModel{
4444
let request = UgandaMobileMoneyRequest(txRef: FlutterwaveConfig.sharedConfig().transcationRef, amount: amount, email: FlutterwaveConfig.sharedConfig().email, phoneNumber: phoneNumber, currency: FlutterwaveConfig.sharedConfig().currencyCode, network: "MTN")
4545
makeAPICallRx(request: request, apiRequest: mobileMoneyRepository.ugandaMoney(request:), successHandler: ugandaMoneyResponse, onSuccessOperation: {response in
4646
self.checkAuth(response: response, flwRef: "",source: .ugandaMoney)
47-
}, apiName: .zambiaMoney, apiErrorName: .zambiaMoneyError)
47+
}, apiName: .ugandaMoney, apiErrorName: .ugandaMoneyError)
4848
}
4949

5050
func zambiaMoney(amount: String, phoneNumber: String, network: String) {

0 commit comments

Comments
 (0)