Skip to content

Commit 65bff3e

Browse files
Remove fabric files
1 parent db4fc87 commit 65bff3e

2 files changed

Lines changed: 0 additions & 54 deletions

File tree

Paystack.xcodeproj/project.pbxproj

Lines changed: 0 additions & 15 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 */,

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) {

0 commit comments

Comments
 (0)