Skip to content

Commit

Permalink
chore(bug): removed iOS support completely
Browse files Browse the repository at this point in the history
  • Loading branch information
devbabs committed Feb 8, 2023
1 parent a807728 commit f9d914e
Show file tree
Hide file tree
Showing 114 changed files with 6,798 additions and 24 deletions.
594 changes: 594 additions & 0 deletions example/ios/Podfile.lock

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions example/ios/RCTRemitaModule.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// RCTRemitaModule.h
//
//
// Created by Babalola Macaulay on 02/02/2023.
//

#ifndef RCTRemitaModule_h
#define RCTRemitaModule_h


#endif /* RCTRemitaModule_h */
20 changes: 18 additions & 2 deletions example/ios/RemitaExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
7699B88040F8A987B510C191 /* libPods-RemitaExample-RemitaExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-RemitaExample-RemitaExampleTests.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
D1B403652992A775007FCFF3 /* RemitaPaymentGateway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1B403642992A775007FCFF3 /* RemitaPaymentGateway.framework */; };
D1B96290299283790024860A /* libreact-native-remita.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D1B9628F299283790024860A /* libreact-native-remita.a */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -43,6 +45,11 @@
5DCACB8F33CDC322A6C60F78 /* libPods-RemitaExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RemitaExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RemitaExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-RemitaExample-RemitaExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RemitaExample-RemitaExampleTests.release.xcconfig"; path = "Target Support Files/Pods-RemitaExample-RemitaExampleTests/Pods-RemitaExample-RemitaExampleTests.release.xcconfig"; sourceTree = "<group>"; };
D1B4034D2992A1D4007FCFF3 /* RemitaPaymentGateway.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RemitaPaymentGateway.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D1B403642992A775007FCFF3 /* RemitaPaymentGateway.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RemitaPaymentGateway.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D1B9626E298CCC060024860A /* libreact-native-remita.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libreact-native-remita.a"; sourceTree = BUILT_PRODUCTS_DIR; };
D1B96270298CCC710024860A /* libreact-native-remita.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libreact-native-remita.a"; sourceTree = BUILT_PRODUCTS_DIR; };
D1B9628F299283790024860A /* libreact-native-remita.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libreact-native-remita.a"; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

Expand All @@ -59,6 +66,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D1B403652992A775007FCFF3 /* RemitaPaymentGateway.framework in Frameworks */,
D1B96290299283790024860A /* libreact-native-remita.a in Frameworks */,
0C80B921A6F3F58F76C31292 /* libPods-RemitaExample.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -99,6 +108,11 @@
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
isa = PBXGroup;
children = (
D1B403642992A775007FCFF3 /* RemitaPaymentGateway.framework */,
D1B4034D2992A1D4007FCFF3 /* RemitaPaymentGateway.framework */,
D1B9628F299283790024860A /* libreact-native-remita.a */,
D1B96270298CCC710024860A /* libreact-native-remita.a */,
D1B9626E298CCC060024860A /* libreact-native-remita.a */,
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
5DCACB8F33CDC322A6C60F78 /* libPods-RemitaExample.a */,
19F6CBCC0A4E27FBF8BF4A61 /* libPods-RemitaExample-RemitaExampleTests.a */,
Expand Down Expand Up @@ -564,7 +578,7 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -598,6 +612,7 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
};
name = Debug;
Expand Down Expand Up @@ -635,7 +650,7 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -661,6 +676,7 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
Expand Down
10 changes: 10 additions & 0 deletions example/ios/RemitaExample.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/RemitaExample/AppDelegate.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <RemitaPaymentGateway/RemitaPaymentGateway.h>

@implementation AppDelegate

Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function App() {
currencyCode: 'NGN',
narration: 'Test payment for this example',
paymentCompleted: (paymentResponse) => {
console.log("Payment completed", paymentResponse)
console.log("Payment completed", paymentResponse);
}
})
}
Expand Down
18 changes: 18 additions & 0 deletions ios-backup/RCTRemitaModule.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// RCTRemitaModule.h
// Remita
//
// Created by Babalola Macaulay on 02/02/2023.
// Copyright © 2023 Facebook. All rights reserved.
//

#import <React/RCTBridgeModule.h>

@interface RCTRemitaModule : NSObject <RCTBridgeModule>
@end

#ifndef RCTRemitaModule_h
#define RCTRemitaModule_h


#endif /* RCTRemitaModule_h */
16 changes: 16 additions & 0 deletions ios-backup/RCTRemitaModule.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// RCTRemitaModule.m
// Remita
//
// Created by Babalola Macaulay on 02/02/2023.
// Copyright © 2023 Facebook. All rights reserved.
//

#import "RCTRemitaModule.h"

@implementation RCTRemitaModule

// To export a module named Remita
RCT_EXPORT_MODULE(Remita);

@end
3 changes: 3 additions & 0 deletions ios-backup/Remita-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#import <React/RCTBridgeModule.h>
#import <React/RCTViewManager.h>
//#import <reac>
29 changes: 29 additions & 0 deletions ios-backup/Remita.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#import <React/RCTBridgeModule.h>
#import <React/RCTLog.h>
#import "Remita-Bridging-Header.h"
//#import <RemitaPaymentGateway/RemitaPaymentGateway.h>
//#import "RemitaPaymentGateway"
//#import <RemitaPaymentGateway/Sources/RemitaPaymentGateway.h>


@interface RCT_EXTERN_MODULE(Remita, NSObject)

RCT_EXPORT_METHOD(pay)
{
// const paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway();
// paymentGateway.delegate = self;

RCTLogInfo(@"Attempting to pay");
}

RCT_EXPORT_METHOD(createCalendarEvent:(NSString *)name location:(NSString *)location)
{
RCTLogInfo(@"Pretending to create an event %@ at %@", name, location);
}

+ (BOOL)requiresMainQueueSetup
{
return NO;
}

@end
8 changes: 8 additions & 0 deletions ios-backup/Remita.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@objc(Remita)
class Remita: NSObject {

@objc(multiply:withB:withResolver:withRejecter:)
func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void {
resolve(a*b)
}
}
Loading

0 comments on commit f9d914e

Please sign in to comment.