Skip to content

Commit 1cf3504

Browse files
Merge pull request #38 from PaystackHQ/patch/fabric
Patch/fabric
2 parents db4fc87 + f710198 commit 1cf3504

File tree

4 files changed

+4
-58
lines changed

4 files changed

+4
-58
lines changed

Paystack.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Paystack'
3-
s.version = '3.0.14'
3+
s.version = '3.0.15'
44
s.summary = 'Paystack is a web-based API helping African Businesses accept payments online.'
55
s.description = <<-DESC
66
Paystack makes it easy for African Businesses to accept Mastercard, Visa and Verve cards from anyone, anywhere in the world.

Paystack.xcodeproj/project.pbxproj

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,6 @@
396396
049952CE1BCF13510088C703 /* PSTCKAPIPostRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PSTCKAPIPostRequest.m; sourceTree = "<group>"; };
397397
049952D11BCF13DD0088C703 /* PSTCKAPIClient+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "PSTCKAPIClient+Private.h"; sourceTree = "<group>"; };
398398
049E84AB1A605D93000B66CD /* libPaystack.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPaystack.a; sourceTree = BUILT_PRODUCTS_DIR; };
399-
04A58A461BC603BB004E7BC2 /* FABKitProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FABKitProtocol.h; sourceTree = "<group>"; };
400-
04A58A471BC603BB004E7BC2 /* Fabric+FABKits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Fabric+FABKits.h"; sourceTree = "<group>"; };
401-
04A58A481BC603BB004E7BC2 /* Fabric.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Fabric.h; sourceTree = "<group>"; };
402399
04B33F301BC7417B00DD8120 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
403400
04B94BC71A47B78A00092C46 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
404401
04CDB4421A5F2E1800B854EE /* Paystack.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Paystack.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -602,17 +599,6 @@
602599
path = Images;
603600
sourceTree = "<group>";
604601
};
605-
04A58A451BC603BB004E7BC2 /* Fabric */ = {
606-
isa = PBXGroup;
607-
children = (
608-
04A58A461BC603BB004E7BC2 /* FABKitProtocol.h */,
609-
04A58A471BC603BB004E7BC2 /* Fabric+FABKits.h */,
610-
04A58A481BC603BB004E7BC2 /* Fabric.h */,
611-
);
612-
name = Fabric;
613-
path = Paystack/Fabric;
614-
sourceTree = "<group>";
615-
};
616602
04B33F2F1BC7414C00DD8120 /* Supporting Files */ = {
617603
isa = PBXGroup;
618604
children = (
@@ -745,7 +731,6 @@
745731
11C74B9A164043050071C2CA /* Frameworks */ = {
746732
isa = PBXGroup;
747733
children = (
748-
04A58A451BC603BB004E7BC2 /* Fabric */,
749734
04365D2C1A4CF86C00A3E1D4 /* CoreGraphics.framework */,
750735
04B94BC71A47B78A00092C46 /* AddressBook.framework */,
751736
04D5BF9019BF958F009521A5 /* PassKit.framework */,
@@ -1398,7 +1383,7 @@
13981383
DEFINES_MODULE = YES;
13991384
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
14001385
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1401-
MARKETING_VERSION = 3.0.14;
1386+
MARKETING_VERSION = 3.0.15;
14021387
PRODUCT_BUNDLE_IDENTIFIER = "com.paystack.paystack-ios";
14031388
SWIFT_OBJC_BRIDGING_HEADER = "";
14041389
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -1417,7 +1402,7 @@
14171402
DEFINES_MODULE = YES;
14181403
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
14191404
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1420-
MARKETING_VERSION = 3.0.14;
1405+
MARKETING_VERSION = 3.0.15;
14211406
PRODUCT_BUNDLE_IDENTIFIER = "com.paystack.paystack-ios";
14221407
SWIFT_OBJC_BRIDGING_HEADER = "";
14231408
SWIFT_VERSION = 5.0;

Paystack/PSTCKAPIClient.m

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
#import "PSTCKAPIPostRequest.h"
2525
#import <Paystack/Paystack-Swift.h>
2626

27-
#if __has_include("Fabric.h")
28-
#import "Fabric+FABKits.h"
29-
#import "FABKitProtocol.h"
30-
#endif
31-
3227
#ifdef PSTCK_STATIC_LIBRARY_BUILD
3328
#import "PSTCKCategoryLoader.h"
3429
#endif
@@ -61,11 +56,7 @@ + (NSString *)defaultPublicKey {
6156

6257
@end
6358

64-
#if __has_include("Fabric.h")
65-
@interface PSTCKAPIClient ()<NSURLSessionDelegate, FABKit>
66-
#else
6759
@interface PSTCKAPIClient()<NSURLSessionDelegate>
68-
#endif
6960
@property (nonatomic, readwrite) NSURL *apiURL;
7061
@property (nonatomic, readwrite) NSURLSession *urlSession;
7162
@end
@@ -202,36 +193,6 @@ + (NSString *)paystackUserAgentDetails {
202193
return [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:[details copy] options:0 error:NULL] encoding:NSUTF8StringEncoding];
203194
}
204195

205-
#pragma mark Fabric
206-
#if __has_include("Fabric.h")
207-
208-
+ (NSString *)bundleIdentifier {
209-
return @"com.paystack.paystack-ios";
210-
}
211-
212-
+ (NSString *)kitDisplayVersion {
213-
return PSTCKSDKVersion;
214-
}
215-
216-
+ (void)initializeIfNeeded {
217-
Class fabric = NSClassFromString(@"Fabric");
218-
if (fabric) {
219-
// The app must be using Fabric, as it exists at runtime. We fetch our default public key from Fabric.
220-
NSDictionary *fabricConfiguration = [fabric configurationDictionaryForKitClass:[PSTCKAPIClient class]];
221-
NSString *publicKey = fabricConfiguration[@"public"];
222-
if (!publicKey) {
223-
NSLog(@"Configuration dictionary returned by Fabric was nil, or doesn't have publicKey. Can't initialize Paystack.");
224-
return;
225-
}
226-
[self validateKey:publicKey];
227-
[Paystack setDefaultPublicKey:publicKey];
228-
} else {
229-
NSCAssert(fabric, @"initializeIfNeeded method called from a project that doesn't have Fabric.");
230-
}
231-
}
232-
233-
#endif
234-
235196
@end
236197

237198
typedef NS_ENUM(NSInteger, PSTCKChargeStage) {

Paystack/PublicHeaders/PSTCKAPIClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#import <UIKit/UIViewController.h>
99
#endif
1010

11-
static NSString *const __nonnull PSTCKSDKVersion = @"3.0.14";
11+
static NSString *const __nonnull PSTCKSDKVersion = @"3.0.15";
1212
static NSString *const __nonnull PSTCKSDKBuild = @"18";
1313

1414
@class PSTCKCard, PSTCKCardParams, PSTCKTransactionParams, PSTCKToken, PSTCKState;

0 commit comments

Comments
 (0)