diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock new file mode 100644 index 0000000..e733460 --- /dev/null +++ b/example/ios/Podfile.lock @@ -0,0 +1,594 @@ +PODS: + - boost (1.76.0) + - CocoaAsyncSocket (7.6.5) + - DoubleConversion (1.1.6) + - FBLazyVector (0.71.1) + - FBReactNativeSpec (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.71.1) + - RCTTypeSafety (= 0.71.1) + - React-Core (= 0.71.1) + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - Flipper (0.125.0): + - Flipper-Folly (~> 2.6) + - Flipper-RSocket (~> 1.4) + - Flipper-Boost-iOSX (1.76.0.1.11) + - Flipper-DoubleConversion (3.2.0.1) + - Flipper-Fmt (7.1.7) + - Flipper-Folly (2.6.10): + - Flipper-Boost-iOSX + - Flipper-DoubleConversion + - Flipper-Fmt (= 7.1.7) + - Flipper-Glog + - libevent (~> 2.1.12) + - OpenSSL-Universal (= 1.1.1100) + - Flipper-Glog (0.5.0.5) + - Flipper-PeerTalk (0.0.4) + - Flipper-RSocket (1.4.3): + - Flipper-Folly (~> 2.6) + - FlipperKit (0.125.0): + - FlipperKit/Core (= 0.125.0) + - FlipperKit/Core (0.125.0): + - Flipper (~> 0.125.0) + - FlipperKit/CppBridge + - FlipperKit/FBCxxFollyDynamicConvert + - FlipperKit/FBDefines + - FlipperKit/FKPortForwarding + - SocketRocket (~> 0.6.0) + - FlipperKit/CppBridge (0.125.0): + - Flipper (~> 0.125.0) + - FlipperKit/FBCxxFollyDynamicConvert (0.125.0): + - Flipper-Folly (~> 2.6) + - FlipperKit/FBDefines (0.125.0) + - FlipperKit/FKPortForwarding (0.125.0): + - CocoaAsyncSocket (~> 7.6) + - Flipper-PeerTalk (~> 0.0.4) + - FlipperKit/FlipperKitHighlightOverlay (0.125.0) + - FlipperKit/FlipperKitLayoutHelpers (0.125.0): + - FlipperKit/Core + - FlipperKit/FlipperKitHighlightOverlay + - FlipperKit/FlipperKitLayoutTextSearchable + - FlipperKit/FlipperKitLayoutIOSDescriptors (0.125.0): + - FlipperKit/Core + - FlipperKit/FlipperKitHighlightOverlay + - FlipperKit/FlipperKitLayoutHelpers + - YogaKit (~> 1.18) + - FlipperKit/FlipperKitLayoutPlugin (0.125.0): + - FlipperKit/Core + - FlipperKit/FlipperKitHighlightOverlay + - FlipperKit/FlipperKitLayoutHelpers + - FlipperKit/FlipperKitLayoutIOSDescriptors + - FlipperKit/FlipperKitLayoutTextSearchable + - YogaKit (~> 1.18) + - FlipperKit/FlipperKitLayoutTextSearchable (0.125.0) + - FlipperKit/FlipperKitNetworkPlugin (0.125.0): + - FlipperKit/Core + - FlipperKit/FlipperKitReactPlugin (0.125.0): + - FlipperKit/Core + - FlipperKit/FlipperKitUserDefaultsPlugin (0.125.0): + - FlipperKit/Core + - FlipperKit/SKIOSNetworkPlugin (0.125.0): + - FlipperKit/Core + - FlipperKit/FlipperKitNetworkPlugin + - fmt (6.2.1) + - glog (0.3.5) + - hermes-engine (0.71.1): + - hermes-engine/Pre-built (= 0.71.1) + - hermes-engine/Pre-built (0.71.1) + - libevent (2.1.12) + - OpenSSL-Universal (1.1.1100) + - RCT-Folly (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCT-Folly/Default (= 2021.07.22.00) + - RCT-Folly/Default (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCT-Folly/Futures (2021.07.22.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - libevent + - RCTRequired (0.71.1) + - RCTTypeSafety (0.71.1): + - FBLazyVector (= 0.71.1) + - RCTRequired (= 0.71.1) + - React-Core (= 0.71.1) + - React (0.71.1): + - React-Core (= 0.71.1) + - React-Core/DevSupport (= 0.71.1) + - React-Core/RCTWebSocket (= 0.71.1) + - React-RCTActionSheet (= 0.71.1) + - React-RCTAnimation (= 0.71.1) + - React-RCTBlob (= 0.71.1) + - React-RCTImage (= 0.71.1) + - React-RCTLinking (= 0.71.1) + - React-RCTNetwork (= 0.71.1) + - React-RCTSettings (= 0.71.1) + - React-RCTText (= 0.71.1) + - React-RCTVibration (= 0.71.1) + - React-callinvoker (0.71.1) + - React-Codegen (0.71.1): + - FBReactNativeSpec + - hermes-engine + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - React-jsi + - React-jsiexecutor + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-Core (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.71.1) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/CoreModulesHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/Default (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/DevSupport (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.71.1) + - React-Core/RCTWebSocket (= 0.71.1) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-jsinspector (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTActionSheetHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTAnimationHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTBlobHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTImageHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTLinkingHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTNetworkHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTSettingsHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTTextHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTVibrationHeaders (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-Core/RCTWebSocket (0.71.1): + - glog + - RCT-Folly (= 2021.07.22.00) + - React-Core/Default (= 0.71.1) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-perflogger (= 0.71.1) + - Yoga + - React-CoreModules (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.71.1) + - React-Codegen (= 0.71.1) + - React-Core/CoreModulesHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - React-RCTImage (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-cxxreact (0.71.1): + - boost (= 1.76.0) + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-callinvoker (= 0.71.1) + - React-jsi (= 0.71.1) + - React-jsinspector (= 0.71.1) + - React-logger (= 0.71.1) + - React-perflogger (= 0.71.1) + - React-runtimeexecutor (= 0.71.1) + - React-hermes (0.71.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2021.07.22.00) + - RCT-Folly/Futures (= 2021.07.22.00) + - React-cxxreact (= 0.71.1) + - React-jsiexecutor (= 0.71.1) + - React-jsinspector (= 0.71.1) + - React-perflogger (= 0.71.1) + - React-jsi (0.71.1): + - boost (= 1.76.0) + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2021.07.22.00) + - React-jsiexecutor (0.71.1): + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-perflogger (= 0.71.1) + - React-jsinspector (0.71.1) + - React-logger (0.71.1): + - glog + - react-native-remita (0.1.2): + - React-Core + - React-perflogger (0.71.1) + - React-RCTActionSheet (0.71.1): + - React-Core/RCTActionSheetHeaders (= 0.71.1) + - React-RCTAnimation (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.71.1) + - React-Codegen (= 0.71.1) + - React-Core/RCTAnimationHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-RCTAppDelegate (0.71.1): + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - ReactCommon/turbomodule/core + - React-RCTBlob (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.71.1) + - React-Core/RCTBlobHeaders (= 0.71.1) + - React-Core/RCTWebSocket (= 0.71.1) + - React-jsi (= 0.71.1) + - React-RCTNetwork (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-RCTImage (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.71.1) + - React-Codegen (= 0.71.1) + - React-Core/RCTImageHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - React-RCTNetwork (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-RCTLinking (0.71.1): + - React-Codegen (= 0.71.1) + - React-Core/RCTLinkingHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-RCTNetwork (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.71.1) + - React-Codegen (= 0.71.1) + - React-Core/RCTNetworkHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-RCTSettings (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.71.1) + - React-Codegen (= 0.71.1) + - React-Core/RCTSettingsHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-RCTText (0.71.1): + - React-Core/RCTTextHeaders (= 0.71.1) + - React-RCTVibration (0.71.1): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.71.1) + - React-Core/RCTVibrationHeaders (= 0.71.1) + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/core (= 0.71.1) + - React-runtimeexecutor (0.71.1): + - React-jsi (= 0.71.1) + - ReactCommon/turbomodule/bridging (0.71.1): + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-callinvoker (= 0.71.1) + - React-Core (= 0.71.1) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-logger (= 0.71.1) + - React-perflogger (= 0.71.1) + - ReactCommon/turbomodule/core (0.71.1): + - DoubleConversion + - glog + - RCT-Folly (= 2021.07.22.00) + - React-callinvoker (= 0.71.1) + - React-Core (= 0.71.1) + - React-cxxreact (= 0.71.1) + - React-jsi (= 0.71.1) + - React-logger (= 0.71.1) + - React-perflogger (= 0.71.1) + - SocketRocket (0.6.0) + - Yoga (1.14.0) + - YogaKit (1.18.1): + - Yoga (~> 1.14) + +DEPENDENCIES: + - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) + - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) + - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) + - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) + - Flipper (= 0.125.0) + - Flipper-Boost-iOSX (= 1.76.0.1.11) + - Flipper-DoubleConversion (= 3.2.0.1) + - Flipper-Fmt (= 7.1.7) + - Flipper-Folly (= 2.6.10) + - Flipper-Glog (= 0.5.0.5) + - Flipper-PeerTalk (= 0.0.4) + - Flipper-RSocket (= 1.4.3) + - FlipperKit (= 0.125.0) + - FlipperKit/Core (= 0.125.0) + - FlipperKit/CppBridge (= 0.125.0) + - FlipperKit/FBCxxFollyDynamicConvert (= 0.125.0) + - FlipperKit/FBDefines (= 0.125.0) + - FlipperKit/FKPortForwarding (= 0.125.0) + - FlipperKit/FlipperKitHighlightOverlay (= 0.125.0) + - FlipperKit/FlipperKitLayoutPlugin (= 0.125.0) + - FlipperKit/FlipperKitLayoutTextSearchable (= 0.125.0) + - FlipperKit/FlipperKitNetworkPlugin (= 0.125.0) + - FlipperKit/FlipperKitReactPlugin (= 0.125.0) + - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.125.0) + - FlipperKit/SKIOSNetworkPlugin (= 0.125.0) + - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) + - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) + - libevent (~> 2.1.12) + - OpenSSL-Universal (= 1.1.1100) + - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) + - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) + - React (from `../node_modules/react-native/`) + - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Codegen (from `build/generated/ios`) + - React-Core (from `../node_modules/react-native/`) + - React-Core/DevSupport (from `../node_modules/react-native/`) + - React-Core/RCTWebSocket (from `../node_modules/react-native/`) + - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) + - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) + - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`) + - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) + - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) + - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - react-native-remita (from `../..`) + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) + - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) + - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) + - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`) + - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) + - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) + - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) + - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) + - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) + - React-RCTText (from `../node_modules/react-native/Libraries/Text`) + - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) + - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) + +SPEC REPOS: + trunk: + - CocoaAsyncSocket + - Flipper + - Flipper-Boost-iOSX + - Flipper-DoubleConversion + - Flipper-Fmt + - Flipper-Folly + - Flipper-Glog + - Flipper-PeerTalk + - Flipper-RSocket + - FlipperKit + - fmt + - libevent + - OpenSSL-Universal + - SocketRocket + - YogaKit + +EXTERNAL SOURCES: + boost: + :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" + DoubleConversion: + :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" + FBLazyVector: + :path: "../node_modules/react-native/Libraries/FBLazyVector" + FBReactNativeSpec: + :path: "../node_modules/react-native/React/FBReactNativeSpec" + glog: + :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" + hermes-engine: + :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" + RCT-Folly: + :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" + RCTRequired: + :path: "../node_modules/react-native/Libraries/RCTRequired" + RCTTypeSafety: + :path: "../node_modules/react-native/Libraries/TypeSafety" + React: + :path: "../node_modules/react-native/" + React-callinvoker: + :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Codegen: + :path: build/generated/ios + React-Core: + :path: "../node_modules/react-native/" + React-CoreModules: + :path: "../node_modules/react-native/React/CoreModules" + React-cxxreact: + :path: "../node_modules/react-native/ReactCommon/cxxreact" + React-hermes: + :path: "../node_modules/react-native/ReactCommon/hermes" + React-jsi: + :path: "../node_modules/react-native/ReactCommon/jsi" + React-jsiexecutor: + :path: "../node_modules/react-native/ReactCommon/jsiexecutor" + React-jsinspector: + :path: "../node_modules/react-native/ReactCommon/jsinspector" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" + react-native-remita: + :path: "../.." + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" + React-RCTActionSheet: + :path: "../node_modules/react-native/Libraries/ActionSheetIOS" + React-RCTAnimation: + :path: "../node_modules/react-native/Libraries/NativeAnimation" + React-RCTAppDelegate: + :path: "../node_modules/react-native/Libraries/AppDelegate" + React-RCTBlob: + :path: "../node_modules/react-native/Libraries/Blob" + React-RCTImage: + :path: "../node_modules/react-native/Libraries/Image" + React-RCTLinking: + :path: "../node_modules/react-native/Libraries/LinkingIOS" + React-RCTNetwork: + :path: "../node_modules/react-native/Libraries/Network" + React-RCTSettings: + :path: "../node_modules/react-native/Libraries/Settings" + React-RCTText: + :path: "../node_modules/react-native/Libraries/Text" + React-RCTVibration: + :path: "../node_modules/react-native/Libraries/Vibration" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + ReactCommon: + :path: "../node_modules/react-native/ReactCommon" + Yoga: + :path: "../node_modules/react-native/ReactCommon/yoga" + +SPEC CHECKSUMS: + boost: 57d2868c099736d80fcd648bf211b4431e51a558 + CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 + DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 + FBLazyVector: ad72713385db5289b19f1ead07e8e4aa26dcb01d + FBReactNativeSpec: df2602c11e33d310433496e28a48b4b2be652a61 + Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0 + Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c + Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30 + Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b + Flipper-Folly: 584845625005ff068a6ebf41f857f468decd26b3 + Flipper-Glog: 70c50ce58ddaf67dc35180db05f191692570f446 + Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 + Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 + FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86 + fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 + glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b + hermes-engine: 922ccd744f50d9bfde09e9677bf0f3b562ea5fb9 + libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 + OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c + RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 + RCTRequired: fd4d923b964658aa0c4091a32c8b2004c6d9e3a6 + RCTTypeSafety: c276d85975bde3d8448907235c70bf0da257adfd + React: e481a67971af1ce9639c9f746b753dd0e84ca108 + React-callinvoker: 1051c04a94fa9d243786b86380606bad701a3b31 + React-Codegen: 14b1e716d361d5ad95e0ce1a338f3fa0733a98b5 + React-Core: 698fc3baecb80d511d987475a16d036cec6d287f + React-CoreModules: 59245305f41ff0adfeac334acc0594dea4585a7c + React-cxxreact: 49accd2954b0f532805dbcd1918fa6962f32f247 + React-hermes: d068733294581a085e95b6024e8d951b005e26d3 + React-jsi: 122b9bce14f4c6c7cb58f28f87912cfe091885fa + React-jsiexecutor: 60cf272aababc5212410e4249d17cea14fc36caa + React-jsinspector: ff56004b0c974b688a6548c156d5830ad751ae07 + React-logger: 60a0b5f8bed667ecf9e24fecca1f30d125de6d75 + react-native-remita: cb6a6cf7cf3a348ada2e105f292ec1e01c76a43f + React-perflogger: ec8eef2a8f03ecfa6361c2c5fb9197ef4a29cc85 + React-RCTActionSheet: a0c023b86cf4c862fa9c4eb0f6f91fbe878fb2de + React-RCTAnimation: 168d53718c74153947c0109f55900faa64d79439 + React-RCTAppDelegate: a8efbab128b34aa07a9491c85a41401210b1bec5 + React-RCTBlob: 9bcbfc893bfda9f6b2eb016329d38c0f6366d31a + React-RCTImage: 3fcd4570b4b0f1ac2f4b4b6308dba33ce66c5b50 + React-RCTLinking: 1edb8e1bb3fc39bf9e13c63d6aaaa3f0c3d18683 + React-RCTNetwork: 500a79e0e0f67678077df727fabba87a55c043e1 + React-RCTSettings: cc4414eb84ad756d619076c3999fecbf12896d6f + React-RCTText: 2a34261f3da6e34f47a62154def657546ebfa5e1 + React-RCTVibration: 49d531ec8498e0afa2c9b22c2205784372e3d4f3 + React-runtimeexecutor: 311feb67600774723fe10eb8801d3138cae9ad67 + ReactCommon: 03be76588338a27a88d103b35c3c44a3fd43d136 + SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 + Yoga: 921eb014669cf9c718ada68b08d362517d564e0c + YogaKit: f782866e155069a2cca2517aafea43200b01fd5a + +PODFILE CHECKSUM: 057ad6511a0c78edc2fca83d18a62c6e027e23f1 + +COCOAPODS: 1.11.3 diff --git a/example/ios/RCTRemitaModule.h b/example/ios/RCTRemitaModule.h new file mode 100644 index 0000000..f9ae57b --- /dev/null +++ b/example/ios/RCTRemitaModule.h @@ -0,0 +1,12 @@ +// +// RCTRemitaModule.h +// +// +// Created by Babalola Macaulay on 02/02/2023. +// + +#ifndef RCTRemitaModule_h +#define RCTRemitaModule_h + + +#endif /* RCTRemitaModule_h */ diff --git a/example/ios/RemitaExample.xcodeproj/project.pbxproj b/example/ios/RemitaExample.xcodeproj/project.pbxproj index 3136891..12cf3ea 100644 --- a/example/ios/RemitaExample.xcodeproj/project.pbxproj +++ b/example/ios/RemitaExample.xcodeproj/project.pbxproj @@ -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 */ @@ -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 = ""; }; 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 = ""; }; + 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 */ @@ -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; @@ -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 */, @@ -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; @@ -598,6 +612,7 @@ "-DFOLLY_MOBILE=1", "-DFOLLY_USE_LIBCPP=1", ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; }; name = Debug; @@ -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; @@ -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; }; diff --git a/example/ios/RemitaExample.xcworkspace/contents.xcworkspacedata b/example/ios/RemitaExample.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..e7bda98 --- /dev/null +++ b/example/ios/RemitaExample.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/example/ios/RemitaExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/RemitaExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/example/ios/RemitaExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/ios/RemitaExample/AppDelegate.mm b/example/ios/RemitaExample/AppDelegate.mm index be49d07..72c1a7c 100644 --- a/example/ios/RemitaExample/AppDelegate.mm +++ b/example/ios/RemitaExample/AppDelegate.mm @@ -1,6 +1,6 @@ #import "AppDelegate.h" - #import +#import @implementation AppDelegate diff --git a/example/src/App.tsx b/example/src/App.tsx index f5decf6..7a2cf71 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -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); } }) } diff --git a/ios-backup/RCTRemitaModule.h b/ios-backup/RCTRemitaModule.h new file mode 100644 index 0000000..393dbd4 --- /dev/null +++ b/ios-backup/RCTRemitaModule.h @@ -0,0 +1,18 @@ +// +// RCTRemitaModule.h +// Remita +// +// Created by Babalola Macaulay on 02/02/2023. +// Copyright © 2023 Facebook. All rights reserved. +// + +#import + +@interface RCTRemitaModule : NSObject +@end + +#ifndef RCTRemitaModule_h +#define RCTRemitaModule_h + + +#endif /* RCTRemitaModule_h */ diff --git a/ios-backup/RCTRemitaModule.m b/ios-backup/RCTRemitaModule.m new file mode 100644 index 0000000..b2ff3ad --- /dev/null +++ b/ios-backup/RCTRemitaModule.m @@ -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 diff --git a/ios-backup/Remita-Bridging-Header.h b/ios-backup/Remita-Bridging-Header.h new file mode 100644 index 0000000..6ecfc08 --- /dev/null +++ b/ios-backup/Remita-Bridging-Header.h @@ -0,0 +1,3 @@ +#import +#import +//#import diff --git a/ios-backup/Remita.m b/ios-backup/Remita.m new file mode 100644 index 0000000..b2ffaed --- /dev/null +++ b/ios-backup/Remita.m @@ -0,0 +1,29 @@ +#import +#import +#import "Remita-Bridging-Header.h" +//#import +//#import "RemitaPaymentGateway" +//#import + + +@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 diff --git a/ios-backup/Remita.swift b/ios-backup/Remita.swift new file mode 100644 index 0000000..de1401b --- /dev/null +++ b/ios-backup/Remita.swift @@ -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) + } +} diff --git a/ios-backup/Remita.xcodeproj/project.pbxproj b/ios-backup/Remita.xcodeproj/project.pbxproj new file mode 100644 index 0000000..beb6399 --- /dev/null +++ b/ios-backup/Remita.xcodeproj/project.pbxproj @@ -0,0 +1,349 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + D1B961DC298BDBA90024860A /* RCTRemitaModule.m in Sources */ = {isa = PBXBuildFile; fileRef = D1B961DB298BDBA90024860A /* RCTRemitaModule.m */; }; + D1B9628E299281BF0024860A /* RemitaPaymentGateway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1B9628B299281AA0024860A /* RemitaPaymentGateway.framework */; }; + F4FF95D7245B92E800C19C63 /* Remita.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* Remita.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + D1B9628A299281AA0024860A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D1B96285299281AA0024860A /* RemitaPaymentGateway.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 6015AA06203479AE00476321; + remoteInfo = RemitaPaymentGateway; + }; + D1B9628C299281AA0024860A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D1B96285299281AA0024860A /* RemitaPaymentGateway.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 6015AA0F203479AE00476321; + remoteInfo = RemitaPaymentGatewayTests; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 58B511D91A9E6C8500147676 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 134814201AA4EA6300B7C361 /* libRemita.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRemita.a; sourceTree = BUILT_PRODUCTS_DIR; }; + B3E7B5891CC2AC0600A0062D /* Remita.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Remita.m; sourceTree = ""; }; + D1B961DA298BDACE0024860A /* RCTRemitaModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTRemitaModule.h; sourceTree = ""; }; + D1B961DB298BDBA90024860A /* RCTRemitaModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTRemitaModule.m; sourceTree = ""; }; + D1B96285299281AA0024860A /* RemitaPaymentGateway.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RemitaPaymentGateway.xcodeproj; path = "remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj"; sourceTree = ""; }; + F4FF95D5245B92E700C19C63 /* Remita-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Remita-Bridging-Header.h"; sourceTree = ""; }; + F4FF95D6245B92E800C19C63 /* Remita.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Remita.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 58B511D81A9E6C8500147676 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D1B9628E299281BF0024860A /* RemitaPaymentGateway.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 134814211AA4EA7D00B7C361 /* Products */ = { + isa = PBXGroup; + children = ( + 134814201AA4EA6300B7C361 /* libRemita.a */, + ); + name = Products; + sourceTree = ""; + }; + 58B511D21A9E6C8500147676 = { + isa = PBXGroup; + children = ( + D1B96285299281AA0024860A /* RemitaPaymentGateway.xcodeproj */, + D1B961DB298BDBA90024860A /* RCTRemitaModule.m */, + D1B961DA298BDACE0024860A /* RCTRemitaModule.h */, + F4FF95D6245B92E800C19C63 /* Remita.swift */, + B3E7B5891CC2AC0600A0062D /* Remita.m */, + F4FF95D5245B92E700C19C63 /* Remita-Bridging-Header.h */, + 134814211AA4EA7D00B7C361 /* Products */, + D1B961E6298BDE2D0024860A /* Frameworks */, + ); + sourceTree = ""; + }; + D1B961E6298BDE2D0024860A /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + D1B96286299281AA0024860A /* Products */ = { + isa = PBXGroup; + children = ( + D1B9628B299281AA0024860A /* RemitaPaymentGateway.framework */, + D1B9628D299281AA0024860A /* RemitaPaymentGatewayTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 58B511DA1A9E6C8500147676 /* Remita */ = { + isa = PBXNativeTarget; + buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Remita" */; + buildPhases = ( + 58B511D71A9E6C8500147676 /* Sources */, + 58B511D81A9E6C8500147676 /* Frameworks */, + 58B511D91A9E6C8500147676 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Remita; + productName = RCTDataManager; + productReference = 134814201AA4EA6300B7C361 /* libRemita.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 58B511D31A9E6C8500147676 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0920; + ORGANIZATIONNAME = Facebook; + TargetAttributes = { + 58B511DA1A9E6C8500147676 = { + CreatedOnToolsVersion = 6.1.1; + }; + }; + }; + buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Remita" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + English, + en, + Base, + ); + mainGroup = 58B511D21A9E6C8500147676; + productRefGroup = 58B511D21A9E6C8500147676; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = D1B96286299281AA0024860A /* Products */; + ProjectRef = D1B96285299281AA0024860A /* RemitaPaymentGateway.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 58B511DA1A9E6C8500147676 /* Remita */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + D1B9628B299281AA0024860A /* RemitaPaymentGateway.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = RemitaPaymentGateway.framework; + remoteRef = D1B9628A299281AA0024860A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1B9628D299281AA0024860A /* RemitaPaymentGatewayTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = RemitaPaymentGatewayTests.xctest; + remoteRef = D1B9628C299281AA0024860A /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXSourcesBuildPhase section */ + 58B511D71A9E6C8500147676 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F4FF95D7245B92E800C19C63 /* Remita.swift in Sources */, + D1B961DC298BDBA90024860A /* RCTRemitaModule.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 58B511ED1A9E6C8500147676 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=*]" = arm64; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 58B511EE1A9E6C8500147676 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=*]" = arm64; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 58B511F01A9E6C8500147676 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../../../React/**", + "$(SRCROOT)/../../react-native/React/**", + ); + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Remita; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "Remita-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 58B511F11A9E6C8500147676 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../../../React/**", + "$(SRCROOT)/../../react-native/React/**", + ); + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Remita; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "Remita-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Remita" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B511ED1A9E6C8500147676 /* Debug */, + 58B511EE1A9E6C8500147676 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Remita" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B511F01A9E6C8500147676 /* Debug */, + 58B511F11A9E6C8500147676 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 58B511D31A9E6C8500147676 /* Project object */; +} diff --git a/ios-backup/Remita.xcodeproj/xcshareddata/xcschemes/Remita.xcscheme b/ios-backup/Remita.xcodeproj/xcshareddata/xcschemes/Remita.xcscheme new file mode 100644 index 0000000..a667bbc --- /dev/null +++ b/ios-backup/Remita.xcodeproj/xcshareddata/xcschemes/Remita.xcscheme @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/.gitignore b/ios-backup/remita-ios-sdk-master/.gitignore new file mode 100644 index 0000000..43614b6 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/.gitignore @@ -0,0 +1,33 @@ +# Mac OS X +*.DS_Store + +## Build generated +build/ +DerivedData/ + +# Xcode +*.pbxuser +*.mode1v3 +*.mode2v3 +*.perspectivev3 +*.xcuserstate +project.xcworkspace/ +xcuserdata/ + +# Generated files +*.o +*.pyc + +# Backup files +*~.nib +\#*# +.#* + +## Obj-C/Swift specific +*.hmap +*.ipa +*.dSYM.zip +*.dSYM + +#ignore appcode files +.idea diff --git a/ios-backup/remita-ios-sdk-master/CommonCrypto/module.map b/ios-backup/remita-ios-sdk-master/CommonCrypto/module.map new file mode 100644 index 0000000..fc7fb2a --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/CommonCrypto/module.map @@ -0,0 +1,4 @@ +module CommonCrypto [system] { + header "/usr/include/CommonCrypto/CommonCrypto.h" + export * +} diff --git a/ios-backup/remita-ios-sdk-master/README.md b/ios-backup/remita-ios-sdk-master/README.md new file mode 100644 index 0000000..49eaa52 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/README.md @@ -0,0 +1,88 @@ +** ** + +# Remita Inline Payment SDK for iOS + +![](images/inline_snapshot.png) + +## Table of Contents + +**OVERVIEW** + +**1.0 IOS FRAMEWORK SETUP** + +**2.0 TRY IT NOW** + + +## OVERVIEW + +The following pages outlines the steps to integrating Remita Inline Payment SDK to your app. + +## 1.0 Note: This setup is done on XCode 10.3, Swift 5.0.1, on Mac OS X(64bit) Mojave + +**Step 1:** Right click on your project root file, go to **Add Files to < Project name > . . . ** and click + + +**Step 2:** Browse to the cloned SDK and select **RemitaPaymentGateway.xcodeproj**, check 'Copy items if needed' and 'Create groups' click on add. + +**Step 3:** Select **RemitaPaymentGateway.framework** drag and drop under "Embedded Binaries" section to add the sdk to your project. + +**Step 4:** Rebuild project + +** ** + + +# 2.0 TRY IT NOW + +You should invoke paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway() then paymentGateway.initiatePayment() with valid parameters at any point when making payment: + + +**Sample Code:** +```swift +import UIKit +import RemitaPaymentGateway + +class ViewController: UIViewController, RemitaPaymentGatewayDelegate { + +override func viewDidLoad() { +super.viewDidLoad() +// Do any additional setup after loading the view, typically from a nib. +} + +override func didReceiveMemoryWarning() { +super.didReceiveMemoryWarning() +// Dispose of any resources that can be recreated. +} + +@IBAction func payButton(_ sender: UIButton) { +let paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway() +paymentGateway.delegate = self + +let url: String = Constants.DEMO.rawValue + +let txnId: String = UUID().uuidString.replacingOccurrences(of: "-", with: "") + +paymentGateway.initiatePayment(on: self, url:url, key: "QzAwMDAxOTUwNjl8NDMyNTkxNjl8ZTg0MjI2MDg4MjU0NzA2NTY2MTYwNGU1NjNiMjUzYjk4ZDQwZjljZGFiMTVmYTljMDUwMGQ0MDg2MjIyYjEyNTA1ZTE2MTMxNmE3ZjM1OTZmYmJkOTE2MTRiY2NmZTY5NTM4MGQ2MDBlZGJlZmM2ODc2YTc2M2M4MjgyZmFjODc=", email: "lisa@spark.com", amount: "100", phoneNumber:"08037412366", firstname: "lisa", lastname: "Spark", customerId: "140700251", currencyCode: "NGN", transactionId: txnId, narration: "leather gucci bag") +} + +func onPaymentCompleted(paymentResponse: PaymentResponse) { +print("+++ RESPONSE: \(String(describing: paymentResponse))") +} + +} + ``` + + +Where url can be: + +**Constants.DEMO.rawValue** (for testing) and **Constants.PRODUCTION.rawValue** (for live). + + +# 3.0 TEST CARDS + + +```json + CARD: 5178 6810 0000 0002, + Expire Date : 05/30, + CCV: 000, + OTP: 123456 +``` diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/project.pbxproj b/ios-backup/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fa4459e --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/project.pbxproj @@ -0,0 +1,504 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 6015AA10203479AE00476321 /* RemitaPaymentGateway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */; }; + 6015AA15203479AE00476321 /* RemitaPaymentGatewayTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA14203479AE00476321 /* RemitaPaymentGatewayTests.swift */; }; + 6015AA17203479AE00476321 /* RemitaPaymentGateway.h in Headers */ = {isa = PBXBuildFile; fileRef = 6015AA09203479AE00476321 /* RemitaPaymentGateway.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6015AA8920347C1800476321 /* RemitaPaymentGateway.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA8820347C1800476321 /* RemitaPaymentGateway.swift */; }; + 6015AA95203480FD00476321 /* RequestResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA94203480FD00476321 /* RequestResponse.swift */; }; + 6015AA9B203574B500476321 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA9A203574B500476321 /* Constants.swift */; }; + 60390210203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6039020F203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift */; }; + 6060234020EB8C4200787EF5 /* LoadingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6060233E20EB8C4200787EF5 /* LoadingViewController.swift */; }; + 6060234120EB8C4200787EF5 /* LoadingViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6060233F20EB8C4200787EF5 /* LoadingViewController.xib */; }; + 6060235120EE2C9D00787EF5 /* UIViewControllerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6060235020EE2C9D00787EF5 /* UIViewControllerExtension.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6015AA11203479AE00476321 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6015A9FD203479AE00476321 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6015AA05203479AE00476321; + remoteInfo = RemitaPaymentGateway; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RemitaPaymentGateway.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6015AA09203479AE00476321 /* RemitaPaymentGateway.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RemitaPaymentGateway.h; sourceTree = ""; }; + 6015AA0A203479AE00476321 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6015AA0F203479AE00476321 /* RemitaPaymentGatewayTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RemitaPaymentGatewayTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6015AA14203479AE00476321 /* RemitaPaymentGatewayTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemitaPaymentGatewayTests.swift; sourceTree = ""; }; + 6015AA8820347C1800476321 /* RemitaPaymentGateway.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemitaPaymentGateway.swift; sourceTree = ""; }; + 6015AA94203480FD00476321 /* RequestResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestResponse.swift; sourceTree = ""; }; + 6015AA9A203574B500476321 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = ""; }; + 6039020F203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemitPaymentGatewayDelegate.swift; sourceTree = ""; }; + 6060233E20EB8C4200787EF5 /* LoadingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingViewController.swift; sourceTree = ""; }; + 6060233F20EB8C4200787EF5 /* LoadingViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LoadingViewController.xib; sourceTree = ""; }; + 6060235020EE2C9D00787EF5 /* UIViewControllerExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIViewControllerExtension.swift; sourceTree = ""; }; + 60CD4D6D204D367E0059FD71 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6015AA02203479AE00476321 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6015AA0C203479AE00476321 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA10203479AE00476321 /* RemitaPaymentGateway.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6015A9FC203479AE00476321 = { + isa = PBXGroup; + children = ( + 6015AA08203479AE00476321 /* Sources */, + 6015AA13203479AE00476321 /* Tests */, + 6015AA07203479AE00476321 /* Products */, + ); + sourceTree = ""; + }; + 6015AA07203479AE00476321 /* Products */ = { + isa = PBXGroup; + children = ( + 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */, + 6015AA0F203479AE00476321 /* RemitaPaymentGatewayTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6015AA08203479AE00476321 /* Sources */ = { + isa = PBXGroup; + children = ( + 6015AA09203479AE00476321 /* RemitaPaymentGateway.h */, + 6039020F203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift */, + 6015AA8820347C1800476321 /* RemitaPaymentGateway.swift */, + 6060234C20EE2AF100787EF5 /* Controllers */, + 6060234E20EE2B5E00787EF5 /* Models */, + 6060234F20EE2B8200787EF5 /* Helpers */, + 6015AA0A203479AE00476321 /* Info.plist */, + ); + path = Sources; + sourceTree = ""; + }; + 6015AA13203479AE00476321 /* Tests */ = { + isa = PBXGroup; + children = ( + 60CD4D6D204D367E0059FD71 /* Info.plist */, + 6015AA14203479AE00476321 /* RemitaPaymentGatewayTests.swift */, + ); + path = Tests; + sourceTree = ""; + }; + 6060234C20EE2AF100787EF5 /* Controllers */ = { + isa = PBXGroup; + children = ( + 6060233E20EB8C4200787EF5 /* LoadingViewController.swift */, + 6060233F20EB8C4200787EF5 /* LoadingViewController.xib */, + 6060235020EE2C9D00787EF5 /* UIViewControllerExtension.swift */, + ); + path = Controllers; + sourceTree = ""; + }; + 6060234E20EE2B5E00787EF5 /* Models */ = { + isa = PBXGroup; + children = ( + 6015AA94203480FD00476321 /* RequestResponse.swift */, + ); + path = Models; + sourceTree = ""; + }; + 6060234F20EE2B8200787EF5 /* Helpers */ = { + isa = PBXGroup; + children = ( + 6015AA9A203574B500476321 /* Constants.swift */, + ); + path = Helpers; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 6015AA03203479AE00476321 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA17203479AE00476321 /* RemitaPaymentGateway.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 6015AA05203479AE00476321 /* RemitaPaymentGateway */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6015AA1A203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGateway" */; + buildPhases = ( + 6015AA01203479AE00476321 /* Sources */, + 6015AA02203479AE00476321 /* Frameworks */, + 6015AA03203479AE00476321 /* Headers */, + 6015AA04203479AE00476321 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RemitaPaymentGateway; + productName = RemitaPaymentGateway; + productReference = 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */; + productType = "com.apple.product-type.framework"; + }; + 6015AA0E203479AE00476321 /* RemitaPaymentGatewayTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6015AA1D203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayTests" */; + buildPhases = ( + 6015AA0B203479AE00476321 /* Sources */, + 6015AA0C203479AE00476321 /* Frameworks */, + 6015AA0D203479AE00476321 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6015AA12203479AE00476321 /* PBXTargetDependency */, + ); + name = RemitaPaymentGatewayTests; + productName = RemitaPaymentGatewayTests; + productReference = 6015AA0F203479AE00476321 /* RemitaPaymentGatewayTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6015A9FD203479AE00476321 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = " John Anwuna"; + TargetAttributes = { + 6015AA05203479AE00476321 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1020; + ProvisioningStyle = Automatic; + }; + 6015AA0E203479AE00476321 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 6015AA00203479AE00476321 /* Build configuration list for PBXProject "RemitaPaymentGateway" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6015A9FC203479AE00476321; + productRefGroup = 6015AA07203479AE00476321 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6015AA05203479AE00476321 /* RemitaPaymentGateway */, + 6015AA0E203479AE00476321 /* RemitaPaymentGatewayTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6015AA04203479AE00476321 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6060234120EB8C4200787EF5 /* LoadingViewController.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6015AA0D203479AE00476321 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6015AA01203479AE00476321 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA9B203574B500476321 /* Constants.swift in Sources */, + 6060235120EE2C9D00787EF5 /* UIViewControllerExtension.swift in Sources */, + 6015AA8920347C1800476321 /* RemitaPaymentGateway.swift in Sources */, + 6060234020EB8C4200787EF5 /* LoadingViewController.swift in Sources */, + 60390210203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift in Sources */, + 6015AA95203480FD00476321 /* RequestResponse.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6015AA0B203479AE00476321 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA15203479AE00476321 /* RemitaPaymentGatewayTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6015AA12203479AE00476321 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6015AA05203479AE00476321 /* RemitaPaymentGateway */; + targetProxy = 6015AA11203479AE00476321 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 6015AA18203479AE00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_INCLUDE_PATHS = CommonCrypto; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 6015AA19203479AE00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_INCLUDE_PATHS = CommonCrypto; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 6015AA1B203479AE00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = K374UHGAH4; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGateway; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_INCLUDE_PATHS = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6015AA1C203479AE00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = K374UHGAH4; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGateway; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_INCLUDE_PATHS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 6015AA1E203479AE00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 4UPC4FDHTS; + INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6015AA1F203479AE00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 4UPC4FDHTS; + INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6015AA00203479AE00476321 /* Build configuration list for PBXProject "RemitaPaymentGateway" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA18203479AE00476321 /* Debug */, + 6015AA19203479AE00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6015AA1A203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGateway" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA1B203479AE00476321 /* Debug */, + 6015AA1C203479AE00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6015AA1D203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA1E203479AE00476321 /* Debug */, + 6015AA1F203479AE00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6015A9FD203479AE00476321 /* Project object */; +} diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGateway.xcscheme b/ios-backup/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGateway.xcscheme new file mode 100644 index 0000000..509e966 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGateway.xcscheme @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/project.pbxproj b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1287fc5 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/project.pbxproj @@ -0,0 +1,356 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 0A81993522A14889006E67BC /* CompletionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A81993422A14889006E67BC /* CompletionViewController.swift */; }; + 6015AA7720347AEA00476321 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA7620347AEA00476321 /* AppDelegate.swift */; }; + 6015AA7920347AEA00476321 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA7820347AEA00476321 /* ViewController.swift */; }; + 6015AA7C20347AEA00476321 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6015AA7A20347AEA00476321 /* Main.storyboard */; }; + 6015AA7E20347AEA00476321 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6015AA7D20347AEA00476321 /* Assets.xcassets */; }; + 6015AA8120347AEA00476321 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6015AA7F20347AEA00476321 /* LaunchScreen.storyboard */; }; + C3E8C92224FDE42100DADE62 /* RemitaPaymentGateway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */; }; + C3E8C92324FDE42100DADE62 /* RemitaPaymentGateway.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + C3E8C92424FDE42100DADE62 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + C3E8C92324FDE42100DADE62 /* RemitaPaymentGateway.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 0A81993422A14889006E67BC /* CompletionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompletionViewController.swift; sourceTree = ""; }; + 6015AA7320347AEA00476321 /* RemitaPaymentGatewayExampleSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RemitaPaymentGatewayExampleSwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6015AA7620347AEA00476321 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 6015AA7820347AEA00476321 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 6015AA7B20347AEA00476321 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 6015AA7D20347AEA00476321 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 6015AA8020347AEA00476321 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 6015AA8220347AEA00476321 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RemitaPaymentGateway.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6015AA7020347AEA00476321 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C3E8C92224FDE42100DADE62 /* RemitaPaymentGateway.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6015AA6A20347AEA00476321 = { + isa = PBXGroup; + children = ( + C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */, + 6015AA7520347AEA00476321 /* RemitaPaymentGatewayExampleSwift */, + 6015AA7420347AEA00476321 /* Products */, + ); + sourceTree = ""; + }; + 6015AA7420347AEA00476321 /* Products */ = { + isa = PBXGroup; + children = ( + 6015AA7320347AEA00476321 /* RemitaPaymentGatewayExampleSwift.app */, + ); + name = Products; + sourceTree = ""; + }; + 6015AA7520347AEA00476321 /* RemitaPaymentGatewayExampleSwift */ = { + isa = PBXGroup; + children = ( + 6015AA7620347AEA00476321 /* AppDelegate.swift */, + 6015AA7820347AEA00476321 /* ViewController.swift */, + 6015AA7A20347AEA00476321 /* Main.storyboard */, + 6015AA7D20347AEA00476321 /* Assets.xcassets */, + 6015AA7F20347AEA00476321 /* LaunchScreen.storyboard */, + 6015AA8220347AEA00476321 /* Info.plist */, + 0A81993422A14889006E67BC /* CompletionViewController.swift */, + ); + path = RemitaPaymentGatewayExampleSwift; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6015AA7220347AEA00476321 /* RemitaPaymentGatewayExampleSwift */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6015AA8520347AEA00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayExampleSwift" */; + buildPhases = ( + 6015AA6F20347AEA00476321 /* Sources */, + 6015AA7020347AEA00476321 /* Frameworks */, + 6015AA7120347AEA00476321 /* Resources */, + C3E8C92424FDE42100DADE62 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RemitaPaymentGatewayExampleSwift; + productName = RemitaPaymentGatewayExampleSwift; + productReference = 6015AA7320347AEA00476321 /* RemitaPaymentGatewayExampleSwift.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6015AA6B20347AEA00476321 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = " John Anwuna"; + TargetAttributes = { + 6015AA7220347AEA00476321 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1020; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 6015AA6E20347AEA00476321 /* Build configuration list for PBXProject "RemitaPaymentGatewayExampleSwift" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6015AA6A20347AEA00476321; + productRefGroup = 6015AA7420347AEA00476321 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6015AA7220347AEA00476321 /* RemitaPaymentGatewayExampleSwift */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6015AA7120347AEA00476321 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA8120347AEA00476321 /* LaunchScreen.storyboard in Resources */, + 6015AA7E20347AEA00476321 /* Assets.xcassets in Resources */, + 6015AA7C20347AEA00476321 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6015AA6F20347AEA00476321 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA7920347AEA00476321 /* ViewController.swift in Sources */, + 6015AA7720347AEA00476321 /* AppDelegate.swift in Sources */, + 0A81993522A14889006E67BC /* CompletionViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 6015AA7A20347AEA00476321 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6015AA7B20347AEA00476321 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 6015AA7F20347AEA00476321 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6015AA8020347AEA00476321 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6015AA8320347AEA00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 6015AA8420347AEA00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6015AA8620347AEA00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = RemitaPaymentGatewayExampleSwift/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayExampleSwift; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6015AA8720347AEA00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = RemitaPaymentGatewayExampleSwift/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayExampleSwift; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6015AA6E20347AEA00476321 /* Build configuration list for PBXProject "RemitaPaymentGatewayExampleSwift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA8320347AEA00476321 /* Debug */, + 6015AA8420347AEA00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6015AA8520347AEA00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayExampleSwift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA8620347AEA00476321 /* Debug */, + 6015AA8720347AEA00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6015AA6B20347AEA00476321 /* Project object */; +} diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleObjC.xcscheme b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleObjC.xcscheme new file mode 100644 index 0000000..246ff23 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleObjC.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleSwift.xcscheme b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleSwift.xcscheme new file mode 100644 index 0000000..e5e7b1b --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleSwift.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/AppDelegate.swift b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/AppDelegate.swift new file mode 100644 index 0000000..5cabd25 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/AppDelegate.swift @@ -0,0 +1,47 @@ +// +// AppDelegate.swift +// RemitaPaymentGatewayExampleSwift +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@1x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@1x.png new file mode 100644 index 0000000..f72100f Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@1x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@2x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@2x.png new file mode 100644 index 0000000..c6bed25 Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@2x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@3x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@3x.png new file mode 100644 index 0000000..a64e92e Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@3x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Contents.json b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Contents.json new file mode 100644 index 0000000..ef86d03 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Bag@1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Bag@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "Bag@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Contents.json b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Contents.json new file mode 100644 index 0000000..aaeecb2 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Failure_Icon@1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Failure_Icon@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "Failure_Icon@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@1x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@1x.png new file mode 100644 index 0000000..43519de Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@1x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@2x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@2x.png new file mode 100644 index 0000000..b73c04b Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@2x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@3x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@3x.png new file mode 100644 index 0000000..a199260 Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@3x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Contents.json b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Contents.json new file mode 100644 index 0000000..6036aee --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Success_Icon@1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Success_Icon@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "Success_Icon@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@1x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@1x.png new file mode 100644 index 0000000..af316d0 Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@1x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@2x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@2x.png new file mode 100644 index 0000000..e1be666 Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@2x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@3x.png b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@3x.png new file mode 100644 index 0000000..f993a33 Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@3x.png differ diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/LaunchScreen.storyboard b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/Main.storyboard b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/Main.storyboard new file mode 100644 index 0000000..4835662 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/Main.storyboard @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/CompletionViewController.swift b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/CompletionViewController.swift new file mode 100644 index 0000000..596c896 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/CompletionViewController.swift @@ -0,0 +1,35 @@ +// +// CompletionViewController.swift +// RemitaPaymentGatewayExampleSwift +// +// Created by Joshua Balogun on 5/31/19. +// Copyright © 2019 John Anwuna. All rights reserved. +// + +import UIKit + +class CompletionViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + @IBOutlet weak var statusLabel: UILabel! + + var message: String! + var code: String! + + override func viewDidLoad() { + super.viewDidLoad() + + if code == "00" { + imageView.image = #imageLiteral(resourceName: "success") + statusLabel.text = "Transaction succcessful" + } else { + imageView.image = #imageLiteral(resourceName: "failure") + statusLabel.text = "Transaction failed" + } + } + + @IBAction func payAgain(_ sender: UIButton) { + self.dismiss(animated: true, completion: nil) + } + +} diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Info.plist b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Info.plist new file mode 100644 index 0000000..018dc98 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Info.plist @@ -0,0 +1,50 @@ + + + + + REMITA + + KEY + U0hFTEx8MTUwOTM3MTg1NDczOXwyNjdjNDBiZmI5ZjMzMjg5M2I3MWI2YzEzZWUxYTQ5YjUxOTRhMjY5ZDljOWUzNmI0MWUxOTgyYzI1NDUyYTMxM2NlM2QxYTdmZjQxMTExN2M5MTU1NjgxNWYyYmEwMTI3ZWY3MmU4M2MxNmE2ZjBmNjE3Y2Q2OTNlYzA1ODA4Nw== + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/ViewController.swift b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/ViewController.swift new file mode 100644 index 0000000..1dcdc30 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/ViewController.swift @@ -0,0 +1,44 @@ +// +// ViewController.swift +// RemitaPaymentGatewayExampleSwift +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit +import RemitaPaymentGateway + +class ViewController: UIViewController, RemitaPaymentGatewayDelegate { + + var rCode: String! + var rMessage: String! + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + @IBAction func payButton(_ sender: UIButton) { + let paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway() + paymentGateway.delegate = self + + let url: String = Constants.DEMO.rawValue + + let txnId: String = UUID().uuidString.replacingOccurrences(of: "-", with: "") + + paymentGateway.initiatePayment(on: self, url:url, key: "QzAwMDAxOTUwNjl8NDMyNTkxNjl8ZTg0MjI2MDg4MjU0NzA2NTY2MTYwNGU1NjNiMjUzYjk4ZDQwZjljZGFiMTVmYTljMDUwMGQ0MDg2MjIyYjEyNTA1ZTE2MTMxNmE3ZjM1OTZmYmJkOTE2MTRiY2NmZTY5NTM4MGQ2MDBlZGJlZmM2ODc2YTc2M2M4MjgyZmFjODc=", email: "lisa@spark.com", amount: "15000", phoneNumber:"08037412366", firstname: "lisa", lastname: "Spark", customerId: "140700251", currencyCode: "NGN", transactionId: txnId, narration: "leather gucci bag") + } + + func onPaymentCompleted(paymentResponse: PaymentResponse) { + print("+++ RESPONSE: \(String(describing: paymentResponse))") + } + +} + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/contents.xcworkspacedata b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..c154ace --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios-backup/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.swift b/ios-backup/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.swift new file mode 100644 index 0000000..4a18899 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.swift @@ -0,0 +1,155 @@ +// +// LoadingViewController.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import UIKit +import WebKit + +class LoadingViewController: UIViewController, WKUIDelegate, WKScriptMessageHandler { + + var webView: WKWebView! + var paymentRequest: PaymentRequest! + var delegate: RemitaPaymentGatewayDelegate! + + var url: String = "" + var publicKey: String = "" + var email: String = "" + var amount: String = "" + var phoneNumber: String = "" + var firstName: String = "" + var lastName: String = "" + var customerId: String = "" + var currency: String = "" + var transactionId: String = "" + var narration: String = "" + + +override func viewDidLoad() +{ + super.viewDidLoad() + + let htmlString: String = """ + + +
+ + + + + +""" + + webView.loadHTMLString(htmlString, baseURL: nil) +} + + +public override func loadView() { + + let wkWebViewConfig = WKWebViewConfiguration() + + let source = """ + function captureLog(msg) { + window.webkit.messageHandlers.iosListener.postMessage(msg); + } + window.console.log = captureLog; + + """ + + let script = WKUserScript(source: source, injectionTime: .atDocumentEnd, forMainFrameOnly: false) + + wkWebViewConfig.userContentController.addUserScript(script) + wkWebViewConfig.userContentController.add(self, name: "iosListener") + webView = WKWebView(frame: .zero, configuration: wkWebViewConfig) + webView.contentMode = .scaleToFill + webView.uiDelegate = self + view = webView + self.amount = paymentRequest.amount + self.url = paymentRequest.url + self.publicKey = paymentRequest.key + self.email = paymentRequest.email + self.currency = paymentRequest.currency + self.firstName = paymentRequest.firstName + self.lastName = paymentRequest.lastName + self.customerId = paymentRequest.customerId + self.phoneNumber = paymentRequest.phoneNumber + self.transactionId = paymentRequest.transactionId + self.narration = paymentRequest.narration + + delegate = clientDelegate + } + +func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) + { + let response = "\(message.body)" + + switch response + { + + case "closed": + self.close() + + default: + var paymentResponse = PaymentResponse() + + let jsonData = response.data(using: .utf8)! + let responseData = try! JSONDecoder().decode(PaymentResponseData.self,from: jsonData) + + if case responseData.paymentReference = responseData.paymentReference, !responseData.paymentReference.isEmpty { + + paymentResponse.responseCode = Constants.SUCCESS_CODE.rawValue + paymentResponse.responseMessage = Constants.SUCCESS_MESSAGE.rawValue + paymentResponse.paymentResponseData = responseData + + delegate.onPaymentCompleted(paymentResponse: paymentResponse) + + } else { + + paymentResponse.responseCode = Constants.SUCCESS_CODE.rawValue + paymentResponse.responseMessage = Constants.SUCCESS_MESSAGE.rawValue + paymentResponse.paymentResponseData = responseData + + delegate.onPaymentCompleted(paymentResponse: paymentResponse) + + } + + } +} + +override open var shouldAutorotate: Bool { + return false + } + +override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + } +} + + diff --git a/ios-backup/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.xib b/ios-backup/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.xib new file mode 100644 index 0000000..2746fea --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.xib @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/Sources/Controllers/UIViewControllerExtension.swift b/ios-backup/remita-ios-sdk-master/Sources/Controllers/UIViewControllerExtension.swift new file mode 100644 index 0000000..b37a370 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Controllers/UIViewControllerExtension.swift @@ -0,0 +1,40 @@ +// +// UIViewControllerExtension.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import UIKit + +extension UIViewController { + + struct Holder { + static var _modalPrensentingViewController: UIViewController = UIViewController() + static var _clientDelegate: RemitaPaymentGatewayDelegate? = nil + } + + var modalPresentingViewController: UIViewController { + get { + return Holder._modalPrensentingViewController + } + set { + Holder._modalPrensentingViewController = newValue + } + } + + var clientDelegate: RemitaPaymentGatewayDelegate? { + get { + return Holder._clientDelegate + } + set { + Holder._clientDelegate = newValue + } + } + + func close() { + modalPresentingViewController.dismiss(animated: true, completion: nil) + } + +} diff --git a/ios-backup/remita-ios-sdk-master/Sources/Controllers/rip.html b/ios-backup/remita-ios-sdk-master/Sources/Controllers/rip.html new file mode 100644 index 0000000..5f8a962 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Controllers/rip.html @@ -0,0 +1,35 @@ + + + + + + + diff --git a/ios-backup/remita-ios-sdk-master/Sources/Helpers/Constants.swift b/ios-backup/remita-ios-sdk-master/Sources/Helpers/Constants.swift new file mode 100644 index 0000000..313fad2 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Helpers/Constants.swift @@ -0,0 +1,19 @@ +// +// Constants.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved.import Foundation +// + +public enum Constants: String { + case DEMO = "https://remitademo.net" + case PRODUCTION = "https://remita.net" + + case SUCCESS_MESSAGE = "SUCCESS" + case SUCCESS_CODE = "00" + + case FAILED_MESSAGE = "FAILED" + case FAILED_CODE = "01" +} + diff --git a/ios-backup/remita-ios-sdk-master/Sources/Info.plist b/ios-backup/remita-ios-sdk-master/Sources/Info.plist new file mode 100644 index 0000000..1007fd9 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/ios-backup/remita-ios-sdk-master/Sources/Models/RequestResponse.swift b/ios-backup/remita-ios-sdk-master/Sources/Models/RequestResponse.swift new file mode 100644 index 0000000..0342528 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/Models/RequestResponse.swift @@ -0,0 +1,41 @@ +// +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import Foundation + +struct PaymentRequest:Codable { + var key = "" + var ref = "" + var email = "" + var amount = "" + var currency = "" + var firstName = "" + var lastName = "" + var customerId = "" + var transactionId = "" + var narration = "" + var phoneNumber = "" + var url = "" + + init() { + } +} + +public struct PaymentResponse: Codable { + var responseCode = "" + var responseMessage = "" + var paymentResponseData : PaymentResponseData? +} + +public struct PaymentResponseData: Codable { + var paymentReference = "" + var processorId = "" + var transactionId = "" + var message = "" + var amount: Double = 0.0 + init(){} +} diff --git a/ios-backup/remita-ios-sdk-master/Sources/RemitPaymentGatewayDelegate.swift b/ios-backup/remita-ios-sdk-master/Sources/RemitPaymentGatewayDelegate.swift new file mode 100644 index 0000000..4aa5e23 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/RemitPaymentGatewayDelegate.swift @@ -0,0 +1,20 @@ +// +// File.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import Foundation +/** + A delegate of the RemitaPaymentGateway must adopt the RemitaPaymentGatewayDelegate protocol. + */ +public protocol RemitaPaymentGatewayDelegate { + /** + Method is invoked when payment processing is completed + */ + func onPaymentCompleted(paymentResponse: PaymentResponse) + +} diff --git a/ios-backup/remita-ios-sdk-master/Sources/RemitaPaymentGateway.h b/ios-backup/remita-ios-sdk-master/Sources/RemitaPaymentGateway.h new file mode 100644 index 0000000..bd41157 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/RemitaPaymentGateway.h @@ -0,0 +1,20 @@ +// +// RemitaPaymentGateway.h +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +#import + +//! Project version number for RemitaPaymentGateway. +FOUNDATION_EXPORT double RemitaPaymentGatewayVersionNumber; + +//! Project version string for RemitaPaymentGateway. +FOUNDATION_EXPORT const unsigned char RemitaPaymentGatewayVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios-backup/remita-ios-sdk-master/Sources/RemitaPaymentGateway.swift b/ios-backup/remita-ios-sdk-master/Sources/RemitaPaymentGateway.swift new file mode 100644 index 0000000..fb2ed92 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Sources/RemitaPaymentGateway.swift @@ -0,0 +1,58 @@ +// +// RemitaPaymentGateway.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit + +/** + Remita Payment Gateway + */ + +public class RemitaPaymentGateway: NSObject { + /** + Delegate reference + */ + public var delegate: RemitaPaymentGatewayDelegate? + + /** + This method should be called when the client is ready to initiate a payment + - Parameter presentingViewController: View controller where the SDK's payment view is displayed modally on + - Parameter paymentReference: Your transaction unique identifier + - Parameter email: Your customer's email + - Parameter amount: Transaction amount + - Parameter currencyCode: Defaults to NGN + - Parameter firstname: Your customer's firstname + - Parameter lastername: Your customer's lastname + - Parameter customerId: Your customer's unique identifier + - Parameter narration: Description of the payment. + */ + public func initiatePayment(on presentingViewController: UIViewController, url: String, key: String, email: String, amount: String, phoneNumber: String, firstname: String, lastname: String, customerId: String, currencyCode: String, transactionId: String, narration: String) { + + var paymentRequest = PaymentRequest() + paymentRequest.url = url + paymentRequest.key = key + paymentRequest.email = email + paymentRequest.amount = amount + paymentRequest.phoneNumber = phoneNumber + paymentRequest.firstName = firstname + paymentRequest.lastName = lastname + paymentRequest.customerId = customerId + paymentRequest.currency = currencyCode + paymentRequest.transactionId = transactionId + paymentRequest.narration = narration + + let bundle = Bundle(for: LoadingViewController.self) + let loadingViewController = LoadingViewController(nibName: String(describing: LoadingViewController.self), bundle: bundle) + loadingViewController.modalPresentationStyle = .overFullScreen + loadingViewController.modalPresentingViewController = presentingViewController + loadingViewController.paymentRequest = paymentRequest + loadingViewController.clientDelegate = delegate + + presentingViewController.present(loadingViewController, animated: true, completion: nil) + } +} diff --git a/ios-backup/remita-ios-sdk-master/Tests/Info.plist b/ios-backup/remita-ios-sdk-master/Tests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Tests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/ios-backup/remita-ios-sdk-master/Tests/RemitaPaymentGatewayTests.swift b/ios-backup/remita-ios-sdk-master/Tests/RemitaPaymentGatewayTests.swift new file mode 100644 index 0000000..b4a3290 --- /dev/null +++ b/ios-backup/remita-ios-sdk-master/Tests/RemitaPaymentGatewayTests.swift @@ -0,0 +1,36 @@ +// +// RemitaPaymentGatewayTests.swift +// RemitaPaymentGatewayTests +// +// Created by John Anwuna on 14/02/2018. +// Copyright © 2018 John Anwuna. All rights reserved. +// + +import XCTest +@testable import RemitaPaymentGateway + +class RemitaPaymentGatewayTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/ios-backup/remita-ios-sdk-master/images/inline_snapshot.png b/ios-backup/remita-ios-sdk-master/images/inline_snapshot.png new file mode 100644 index 0000000..63c9584 Binary files /dev/null and b/ios-backup/remita-ios-sdk-master/images/inline_snapshot.png differ diff --git a/ios/Remita-Bridging-Header.h b/ios/Remita-Bridging-Header.h index dea7ff6..9051782 100644 --- a/ios/Remita-Bridging-Header.h +++ b/ios/Remita-Bridging-Header.h @@ -1,2 +1,3 @@ #import #import +//#import diff --git a/ios/Remita.m b/ios/Remita.m index 951c621..3992151 100644 --- a/ios/Remita.m +++ b/ios/Remita.m @@ -1,4 +1,5 @@ #import +//#import @interface RCT_EXTERN_MODULE(Remita, NSObject) diff --git a/ios/Remita.swift b/ios/Remita.swift index de1401b..c370c90 100644 --- a/ios/Remita.swift +++ b/ios/Remita.swift @@ -1,3 +1,5 @@ +//import RemitaPaymentGateway + @objc(Remita) class Remita: NSObject { diff --git a/ios/Remita.xcodeproj/project.pbxproj b/ios/Remita.xcodeproj/project.pbxproj index 71b92ad..57f9d1d 100644 --- a/ios/Remita.xcodeproj/project.pbxproj +++ b/ios/Remita.xcodeproj/project.pbxproj @@ -7,10 +7,26 @@ objects = { /* Begin PBXBuildFile section */ - 5E555C0D2413F4C50049A1A2 /* Remita.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* Remita.m */; }; - F4FF95D7245B92E800C19C63 /* Remita.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* Remita.swift */; }; + F4FF95D7245B92E800C19C63 /* Remita.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* Remita.swift */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + D1B403752992A9C9007FCFF3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D1B403702992A9C9007FCFF3 /* RemitaPaymentGateway.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 6015AA06203479AE00476321; + remoteInfo = RemitaPaymentGateway; + }; + D1B403772992A9C9007FCFF3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D1B403702992A9C9007FCFF3 /* RemitaPaymentGateway.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 6015AA0F203479AE00476321; + remoteInfo = RemitaPaymentGatewayTests; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXCopyFilesBuildPhase section */ 58B511D91A9E6C8500147676 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; @@ -26,6 +42,7 @@ /* Begin PBXFileReference section */ 134814201AA4EA6300B7C361 /* libRemita.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRemita.a; sourceTree = BUILT_PRODUCTS_DIR; }; B3E7B5891CC2AC0600A0062D /* Remita.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Remita.m; sourceTree = ""; }; + D1B403702992A9C9007FCFF3 /* RemitaPaymentGateway.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RemitaPaymentGateway.xcodeproj; path = "../../../../Downloads/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj"; sourceTree = ""; }; F4FF95D5245B92E700C19C63 /* Remita-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Remita-Bridging-Header.h"; sourceTree = ""; }; F4FF95D6245B92E800C19C63 /* Remita.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Remita.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -56,7 +73,25 @@ B3E7B5891CC2AC0600A0062D /* Remita.m */, F4FF95D5245B92E700C19C63 /* Remita-Bridging-Header.h */, 134814211AA4EA7D00B7C361 /* Products */, + D1B962CD299290DD0024860A /* Frameworks */, + ); + sourceTree = ""; + }; + D1B403712992A9C9007FCFF3 /* Products */ = { + isa = PBXGroup; + children = ( + D1B403762992A9C9007FCFF3 /* RemitaPaymentGateway.framework */, + D1B403782992A9C9007FCFF3 /* RemitaPaymentGatewayTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + D1B962CD299290DD0024860A /* Frameworks */ = { + isa = PBXGroup; + children = ( + D1B403702992A9C9007FCFF3 /* RemitaPaymentGateway.xcodeproj */, ); + name = Frameworks; sourceTree = ""; }; /* End PBXGroup section */ @@ -100,10 +135,17 @@ knownRegions = ( English, en, + Base, ); mainGroup = 58B511D21A9E6C8500147676; productRefGroup = 58B511D21A9E6C8500147676; projectDirPath = ""; + projectReferences = ( + { + ProductGroup = D1B403712992A9C9007FCFF3 /* Products */; + ProjectRef = D1B403702992A9C9007FCFF3 /* RemitaPaymentGateway.xcodeproj */; + }, + ); projectRoot = ""; targets = ( 58B511DA1A9E6C8500147676 /* Remita */, @@ -111,13 +153,29 @@ }; /* End PBXProject section */ +/* Begin PBXReferenceProxy section */ + D1B403762992A9C9007FCFF3 /* RemitaPaymentGateway.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = RemitaPaymentGateway.framework; + remoteRef = D1B403752992A9C9007FCFF3 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + D1B403782992A9C9007FCFF3 /* RemitaPaymentGatewayTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = RemitaPaymentGatewayTests.xctest; + remoteRef = D1B403772992A9C9007FCFF3 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + /* Begin PBXSourcesBuildPhase section */ 58B511D71A9E6C8500147676 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( F4FF95D7245B92E800C19C63 /* Remita.swift in Sources */, - B3E7B58A1CC2AC0600A0062D /* Remita.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/ios/Sources/Controllers/LoadingViewController.swift b/ios/Sources/Controllers/LoadingViewController.swift new file mode 100644 index 0000000..4a18899 --- /dev/null +++ b/ios/Sources/Controllers/LoadingViewController.swift @@ -0,0 +1,155 @@ +// +// LoadingViewController.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import UIKit +import WebKit + +class LoadingViewController: UIViewController, WKUIDelegate, WKScriptMessageHandler { + + var webView: WKWebView! + var paymentRequest: PaymentRequest! + var delegate: RemitaPaymentGatewayDelegate! + + var url: String = "" + var publicKey: String = "" + var email: String = "" + var amount: String = "" + var phoneNumber: String = "" + var firstName: String = "" + var lastName: String = "" + var customerId: String = "" + var currency: String = "" + var transactionId: String = "" + var narration: String = "" + + +override func viewDidLoad() +{ + super.viewDidLoad() + + let htmlString: String = """ + + +
+ + + + + +""" + + webView.loadHTMLString(htmlString, baseURL: nil) +} + + +public override func loadView() { + + let wkWebViewConfig = WKWebViewConfiguration() + + let source = """ + function captureLog(msg) { + window.webkit.messageHandlers.iosListener.postMessage(msg); + } + window.console.log = captureLog; + + """ + + let script = WKUserScript(source: source, injectionTime: .atDocumentEnd, forMainFrameOnly: false) + + wkWebViewConfig.userContentController.addUserScript(script) + wkWebViewConfig.userContentController.add(self, name: "iosListener") + webView = WKWebView(frame: .zero, configuration: wkWebViewConfig) + webView.contentMode = .scaleToFill + webView.uiDelegate = self + view = webView + self.amount = paymentRequest.amount + self.url = paymentRequest.url + self.publicKey = paymentRequest.key + self.email = paymentRequest.email + self.currency = paymentRequest.currency + self.firstName = paymentRequest.firstName + self.lastName = paymentRequest.lastName + self.customerId = paymentRequest.customerId + self.phoneNumber = paymentRequest.phoneNumber + self.transactionId = paymentRequest.transactionId + self.narration = paymentRequest.narration + + delegate = clientDelegate + } + +func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) + { + let response = "\(message.body)" + + switch response + { + + case "closed": + self.close() + + default: + var paymentResponse = PaymentResponse() + + let jsonData = response.data(using: .utf8)! + let responseData = try! JSONDecoder().decode(PaymentResponseData.self,from: jsonData) + + if case responseData.paymentReference = responseData.paymentReference, !responseData.paymentReference.isEmpty { + + paymentResponse.responseCode = Constants.SUCCESS_CODE.rawValue + paymentResponse.responseMessage = Constants.SUCCESS_MESSAGE.rawValue + paymentResponse.paymentResponseData = responseData + + delegate.onPaymentCompleted(paymentResponse: paymentResponse) + + } else { + + paymentResponse.responseCode = Constants.SUCCESS_CODE.rawValue + paymentResponse.responseMessage = Constants.SUCCESS_MESSAGE.rawValue + paymentResponse.paymentResponseData = responseData + + delegate.onPaymentCompleted(paymentResponse: paymentResponse) + + } + + } +} + +override open var shouldAutorotate: Bool { + return false + } + +override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + } +} + + diff --git a/ios/Sources/Controllers/LoadingViewController.xib b/ios/Sources/Controllers/LoadingViewController.xib new file mode 100644 index 0000000..2746fea --- /dev/null +++ b/ios/Sources/Controllers/LoadingViewController.xib @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Sources/Controllers/UIViewControllerExtension.swift b/ios/Sources/Controllers/UIViewControllerExtension.swift new file mode 100644 index 0000000..b37a370 --- /dev/null +++ b/ios/Sources/Controllers/UIViewControllerExtension.swift @@ -0,0 +1,40 @@ +// +// UIViewControllerExtension.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import UIKit + +extension UIViewController { + + struct Holder { + static var _modalPrensentingViewController: UIViewController = UIViewController() + static var _clientDelegate: RemitaPaymentGatewayDelegate? = nil + } + + var modalPresentingViewController: UIViewController { + get { + return Holder._modalPrensentingViewController + } + set { + Holder._modalPrensentingViewController = newValue + } + } + + var clientDelegate: RemitaPaymentGatewayDelegate? { + get { + return Holder._clientDelegate + } + set { + Holder._clientDelegate = newValue + } + } + + func close() { + modalPresentingViewController.dismiss(animated: true, completion: nil) + } + +} diff --git a/ios/Sources/Controllers/rip.html b/ios/Sources/Controllers/rip.html new file mode 100644 index 0000000..5f8a962 --- /dev/null +++ b/ios/Sources/Controllers/rip.html @@ -0,0 +1,35 @@ + + + + + + + diff --git a/ios/Sources/Helpers/Constants.swift b/ios/Sources/Helpers/Constants.swift new file mode 100644 index 0000000..313fad2 --- /dev/null +++ b/ios/Sources/Helpers/Constants.swift @@ -0,0 +1,19 @@ +// +// Constants.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved.import Foundation +// + +public enum Constants: String { + case DEMO = "https://remitademo.net" + case PRODUCTION = "https://remita.net" + + case SUCCESS_MESSAGE = "SUCCESS" + case SUCCESS_CODE = "00" + + case FAILED_MESSAGE = "FAILED" + case FAILED_CODE = "01" +} + diff --git a/ios/Sources/Info.plist b/ios/Sources/Info.plist new file mode 100644 index 0000000..1007fd9 --- /dev/null +++ b/ios/Sources/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/ios/Sources/Models/RequestResponse.swift b/ios/Sources/Models/RequestResponse.swift new file mode 100644 index 0000000..0342528 --- /dev/null +++ b/ios/Sources/Models/RequestResponse.swift @@ -0,0 +1,41 @@ +// +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import Foundation + +struct PaymentRequest:Codable { + var key = "" + var ref = "" + var email = "" + var amount = "" + var currency = "" + var firstName = "" + var lastName = "" + var customerId = "" + var transactionId = "" + var narration = "" + var phoneNumber = "" + var url = "" + + init() { + } +} + +public struct PaymentResponse: Codable { + var responseCode = "" + var responseMessage = "" + var paymentResponseData : PaymentResponseData? +} + +public struct PaymentResponseData: Codable { + var paymentReference = "" + var processorId = "" + var transactionId = "" + var message = "" + var amount: Double = 0.0 + init(){} +} diff --git a/ios/Sources/RemitPaymentGatewayDelegate.swift b/ios/Sources/RemitPaymentGatewayDelegate.swift new file mode 100644 index 0000000..4aa5e23 --- /dev/null +++ b/ios/Sources/RemitPaymentGatewayDelegate.swift @@ -0,0 +1,20 @@ +// +// File.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import Foundation +/** + A delegate of the RemitaPaymentGateway must adopt the RemitaPaymentGatewayDelegate protocol. + */ +public protocol RemitaPaymentGatewayDelegate { + /** + Method is invoked when payment processing is completed + */ + func onPaymentCompleted(paymentResponse: PaymentResponse) + +} diff --git a/ios/Sources/RemitaPaymentGateway.h b/ios/Sources/RemitaPaymentGateway.h new file mode 100644 index 0000000..bd41157 --- /dev/null +++ b/ios/Sources/RemitaPaymentGateway.h @@ -0,0 +1,20 @@ +// +// RemitaPaymentGateway.h +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +#import + +//! Project version number for RemitaPaymentGateway. +FOUNDATION_EXPORT double RemitaPaymentGatewayVersionNumber; + +//! Project version string for RemitaPaymentGateway. +FOUNDATION_EXPORT const unsigned char RemitaPaymentGatewayVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/Sources/RemitaPaymentGateway.swift b/ios/Sources/RemitaPaymentGateway.swift new file mode 100644 index 0000000..fb2ed92 --- /dev/null +++ b/ios/Sources/RemitaPaymentGateway.swift @@ -0,0 +1,58 @@ +// +// RemitaPaymentGateway.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit + +/** + Remita Payment Gateway + */ + +public class RemitaPaymentGateway: NSObject { + /** + Delegate reference + */ + public var delegate: RemitaPaymentGatewayDelegate? + + /** + This method should be called when the client is ready to initiate a payment + - Parameter presentingViewController: View controller where the SDK's payment view is displayed modally on + - Parameter paymentReference: Your transaction unique identifier + - Parameter email: Your customer's email + - Parameter amount: Transaction amount + - Parameter currencyCode: Defaults to NGN + - Parameter firstname: Your customer's firstname + - Parameter lastername: Your customer's lastname + - Parameter customerId: Your customer's unique identifier + - Parameter narration: Description of the payment. + */ + public func initiatePayment(on presentingViewController: UIViewController, url: String, key: String, email: String, amount: String, phoneNumber: String, firstname: String, lastname: String, customerId: String, currencyCode: String, transactionId: String, narration: String) { + + var paymentRequest = PaymentRequest() + paymentRequest.url = url + paymentRequest.key = key + paymentRequest.email = email + paymentRequest.amount = amount + paymentRequest.phoneNumber = phoneNumber + paymentRequest.firstName = firstname + paymentRequest.lastName = lastname + paymentRequest.customerId = customerId + paymentRequest.currency = currencyCode + paymentRequest.transactionId = transactionId + paymentRequest.narration = narration + + let bundle = Bundle(for: LoadingViewController.self) + let loadingViewController = LoadingViewController(nibName: String(describing: LoadingViewController.self), bundle: bundle) + loadingViewController.modalPresentationStyle = .overFullScreen + loadingViewController.modalPresentingViewController = presentingViewController + loadingViewController.paymentRequest = paymentRequest + loadingViewController.clientDelegate = delegate + + presentingViewController.present(loadingViewController, animated: true, completion: nil) + } +} diff --git a/ios/remita-ios-sdk-master/.gitignore b/ios/remita-ios-sdk-master/.gitignore new file mode 100644 index 0000000..43614b6 --- /dev/null +++ b/ios/remita-ios-sdk-master/.gitignore @@ -0,0 +1,33 @@ +# Mac OS X +*.DS_Store + +## Build generated +build/ +DerivedData/ + +# Xcode +*.pbxuser +*.mode1v3 +*.mode2v3 +*.perspectivev3 +*.xcuserstate +project.xcworkspace/ +xcuserdata/ + +# Generated files +*.o +*.pyc + +# Backup files +*~.nib +\#*# +.#* + +## Obj-C/Swift specific +*.hmap +*.ipa +*.dSYM.zip +*.dSYM + +#ignore appcode files +.idea diff --git a/ios/remita-ios-sdk-master/CommonCrypto/module.map b/ios/remita-ios-sdk-master/CommonCrypto/module.map new file mode 100644 index 0000000..fc7fb2a --- /dev/null +++ b/ios/remita-ios-sdk-master/CommonCrypto/module.map @@ -0,0 +1,4 @@ +module CommonCrypto [system] { + header "/usr/include/CommonCrypto/CommonCrypto.h" + export * +} diff --git a/ios/remita-ios-sdk-master/README.md b/ios/remita-ios-sdk-master/README.md new file mode 100644 index 0000000..49eaa52 --- /dev/null +++ b/ios/remita-ios-sdk-master/README.md @@ -0,0 +1,88 @@ +** ** + +# Remita Inline Payment SDK for iOS + +![](images/inline_snapshot.png) + +## Table of Contents + +**OVERVIEW** + +**1.0 IOS FRAMEWORK SETUP** + +**2.0 TRY IT NOW** + + +## OVERVIEW + +The following pages outlines the steps to integrating Remita Inline Payment SDK to your app. + +## 1.0 Note: This setup is done on XCode 10.3, Swift 5.0.1, on Mac OS X(64bit) Mojave + +**Step 1:** Right click on your project root file, go to **Add Files to < Project name > . . . ** and click + + +**Step 2:** Browse to the cloned SDK and select **RemitaPaymentGateway.xcodeproj**, check 'Copy items if needed' and 'Create groups' click on add. + +**Step 3:** Select **RemitaPaymentGateway.framework** drag and drop under "Embedded Binaries" section to add the sdk to your project. + +**Step 4:** Rebuild project + +** ** + + +# 2.0 TRY IT NOW + +You should invoke paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway() then paymentGateway.initiatePayment() with valid parameters at any point when making payment: + + +**Sample Code:** +```swift +import UIKit +import RemitaPaymentGateway + +class ViewController: UIViewController, RemitaPaymentGatewayDelegate { + +override func viewDidLoad() { +super.viewDidLoad() +// Do any additional setup after loading the view, typically from a nib. +} + +override func didReceiveMemoryWarning() { +super.didReceiveMemoryWarning() +// Dispose of any resources that can be recreated. +} + +@IBAction func payButton(_ sender: UIButton) { +let paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway() +paymentGateway.delegate = self + +let url: String = Constants.DEMO.rawValue + +let txnId: String = UUID().uuidString.replacingOccurrences(of: "-", with: "") + +paymentGateway.initiatePayment(on: self, url:url, key: "QzAwMDAxOTUwNjl8NDMyNTkxNjl8ZTg0MjI2MDg4MjU0NzA2NTY2MTYwNGU1NjNiMjUzYjk4ZDQwZjljZGFiMTVmYTljMDUwMGQ0MDg2MjIyYjEyNTA1ZTE2MTMxNmE3ZjM1OTZmYmJkOTE2MTRiY2NmZTY5NTM4MGQ2MDBlZGJlZmM2ODc2YTc2M2M4MjgyZmFjODc=", email: "lisa@spark.com", amount: "100", phoneNumber:"08037412366", firstname: "lisa", lastname: "Spark", customerId: "140700251", currencyCode: "NGN", transactionId: txnId, narration: "leather gucci bag") +} + +func onPaymentCompleted(paymentResponse: PaymentResponse) { +print("+++ RESPONSE: \(String(describing: paymentResponse))") +} + +} + ``` + + +Where url can be: + +**Constants.DEMO.rawValue** (for testing) and **Constants.PRODUCTION.rawValue** (for live). + + +# 3.0 TEST CARDS + + +```json + CARD: 5178 6810 0000 0002, + Expire Date : 05/30, + CCV: 000, + OTP: 123456 +``` diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/project.pbxproj b/ios/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fa4459e --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/project.pbxproj @@ -0,0 +1,504 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 6015AA10203479AE00476321 /* RemitaPaymentGateway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */; }; + 6015AA15203479AE00476321 /* RemitaPaymentGatewayTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA14203479AE00476321 /* RemitaPaymentGatewayTests.swift */; }; + 6015AA17203479AE00476321 /* RemitaPaymentGateway.h in Headers */ = {isa = PBXBuildFile; fileRef = 6015AA09203479AE00476321 /* RemitaPaymentGateway.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6015AA8920347C1800476321 /* RemitaPaymentGateway.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA8820347C1800476321 /* RemitaPaymentGateway.swift */; }; + 6015AA95203480FD00476321 /* RequestResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA94203480FD00476321 /* RequestResponse.swift */; }; + 6015AA9B203574B500476321 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA9A203574B500476321 /* Constants.swift */; }; + 60390210203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6039020F203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift */; }; + 6060234020EB8C4200787EF5 /* LoadingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6060233E20EB8C4200787EF5 /* LoadingViewController.swift */; }; + 6060234120EB8C4200787EF5 /* LoadingViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6060233F20EB8C4200787EF5 /* LoadingViewController.xib */; }; + 6060235120EE2C9D00787EF5 /* UIViewControllerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6060235020EE2C9D00787EF5 /* UIViewControllerExtension.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6015AA11203479AE00476321 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6015A9FD203479AE00476321 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6015AA05203479AE00476321; + remoteInfo = RemitaPaymentGateway; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RemitaPaymentGateway.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6015AA09203479AE00476321 /* RemitaPaymentGateway.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RemitaPaymentGateway.h; sourceTree = ""; }; + 6015AA0A203479AE00476321 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6015AA0F203479AE00476321 /* RemitaPaymentGatewayTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RemitaPaymentGatewayTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6015AA14203479AE00476321 /* RemitaPaymentGatewayTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemitaPaymentGatewayTests.swift; sourceTree = ""; }; + 6015AA8820347C1800476321 /* RemitaPaymentGateway.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemitaPaymentGateway.swift; sourceTree = ""; }; + 6015AA94203480FD00476321 /* RequestResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestResponse.swift; sourceTree = ""; }; + 6015AA9A203574B500476321 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = ""; }; + 6039020F203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemitPaymentGatewayDelegate.swift; sourceTree = ""; }; + 6060233E20EB8C4200787EF5 /* LoadingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingViewController.swift; sourceTree = ""; }; + 6060233F20EB8C4200787EF5 /* LoadingViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LoadingViewController.xib; sourceTree = ""; }; + 6060235020EE2C9D00787EF5 /* UIViewControllerExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIViewControllerExtension.swift; sourceTree = ""; }; + 60CD4D6D204D367E0059FD71 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6015AA02203479AE00476321 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6015AA0C203479AE00476321 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA10203479AE00476321 /* RemitaPaymentGateway.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6015A9FC203479AE00476321 = { + isa = PBXGroup; + children = ( + 6015AA08203479AE00476321 /* Sources */, + 6015AA13203479AE00476321 /* Tests */, + 6015AA07203479AE00476321 /* Products */, + ); + sourceTree = ""; + }; + 6015AA07203479AE00476321 /* Products */ = { + isa = PBXGroup; + children = ( + 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */, + 6015AA0F203479AE00476321 /* RemitaPaymentGatewayTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6015AA08203479AE00476321 /* Sources */ = { + isa = PBXGroup; + children = ( + 6015AA09203479AE00476321 /* RemitaPaymentGateway.h */, + 6039020F203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift */, + 6015AA8820347C1800476321 /* RemitaPaymentGateway.swift */, + 6060234C20EE2AF100787EF5 /* Controllers */, + 6060234E20EE2B5E00787EF5 /* Models */, + 6060234F20EE2B8200787EF5 /* Helpers */, + 6015AA0A203479AE00476321 /* Info.plist */, + ); + path = Sources; + sourceTree = ""; + }; + 6015AA13203479AE00476321 /* Tests */ = { + isa = PBXGroup; + children = ( + 60CD4D6D204D367E0059FD71 /* Info.plist */, + 6015AA14203479AE00476321 /* RemitaPaymentGatewayTests.swift */, + ); + path = Tests; + sourceTree = ""; + }; + 6060234C20EE2AF100787EF5 /* Controllers */ = { + isa = PBXGroup; + children = ( + 6060233E20EB8C4200787EF5 /* LoadingViewController.swift */, + 6060233F20EB8C4200787EF5 /* LoadingViewController.xib */, + 6060235020EE2C9D00787EF5 /* UIViewControllerExtension.swift */, + ); + path = Controllers; + sourceTree = ""; + }; + 6060234E20EE2B5E00787EF5 /* Models */ = { + isa = PBXGroup; + children = ( + 6015AA94203480FD00476321 /* RequestResponse.swift */, + ); + path = Models; + sourceTree = ""; + }; + 6060234F20EE2B8200787EF5 /* Helpers */ = { + isa = PBXGroup; + children = ( + 6015AA9A203574B500476321 /* Constants.swift */, + ); + path = Helpers; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 6015AA03203479AE00476321 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA17203479AE00476321 /* RemitaPaymentGateway.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 6015AA05203479AE00476321 /* RemitaPaymentGateway */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6015AA1A203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGateway" */; + buildPhases = ( + 6015AA01203479AE00476321 /* Sources */, + 6015AA02203479AE00476321 /* Frameworks */, + 6015AA03203479AE00476321 /* Headers */, + 6015AA04203479AE00476321 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RemitaPaymentGateway; + productName = RemitaPaymentGateway; + productReference = 6015AA06203479AE00476321 /* RemitaPaymentGateway.framework */; + productType = "com.apple.product-type.framework"; + }; + 6015AA0E203479AE00476321 /* RemitaPaymentGatewayTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6015AA1D203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayTests" */; + buildPhases = ( + 6015AA0B203479AE00476321 /* Sources */, + 6015AA0C203479AE00476321 /* Frameworks */, + 6015AA0D203479AE00476321 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6015AA12203479AE00476321 /* PBXTargetDependency */, + ); + name = RemitaPaymentGatewayTests; + productName = RemitaPaymentGatewayTests; + productReference = 6015AA0F203479AE00476321 /* RemitaPaymentGatewayTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6015A9FD203479AE00476321 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = " John Anwuna"; + TargetAttributes = { + 6015AA05203479AE00476321 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1020; + ProvisioningStyle = Automatic; + }; + 6015AA0E203479AE00476321 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 6015AA00203479AE00476321 /* Build configuration list for PBXProject "RemitaPaymentGateway" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6015A9FC203479AE00476321; + productRefGroup = 6015AA07203479AE00476321 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6015AA05203479AE00476321 /* RemitaPaymentGateway */, + 6015AA0E203479AE00476321 /* RemitaPaymentGatewayTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6015AA04203479AE00476321 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6060234120EB8C4200787EF5 /* LoadingViewController.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6015AA0D203479AE00476321 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6015AA01203479AE00476321 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA9B203574B500476321 /* Constants.swift in Sources */, + 6060235120EE2C9D00787EF5 /* UIViewControllerExtension.swift in Sources */, + 6015AA8920347C1800476321 /* RemitaPaymentGateway.swift in Sources */, + 6060234020EB8C4200787EF5 /* LoadingViewController.swift in Sources */, + 60390210203C15ED009E5966 /* RemitPaymentGatewayDelegate.swift in Sources */, + 6015AA95203480FD00476321 /* RequestResponse.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6015AA0B203479AE00476321 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA15203479AE00476321 /* RemitaPaymentGatewayTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6015AA12203479AE00476321 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6015AA05203479AE00476321 /* RemitaPaymentGateway */; + targetProxy = 6015AA11203479AE00476321 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 6015AA18203479AE00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_INCLUDE_PATHS = CommonCrypto; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 6015AA19203479AE00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_INCLUDE_PATHS = CommonCrypto; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 6015AA1B203479AE00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = K374UHGAH4; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGateway; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_INCLUDE_PATHS = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6015AA1C203479AE00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = K374UHGAH4; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGateway; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_INCLUDE_PATHS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 6015AA1E203479AE00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 4UPC4FDHTS; + INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6015AA1F203479AE00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 4UPC4FDHTS; + INFOPLIST_FILE = "$(SRCROOT)/Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6015AA00203479AE00476321 /* Build configuration list for PBXProject "RemitaPaymentGateway" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA18203479AE00476321 /* Debug */, + 6015AA19203479AE00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6015AA1A203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGateway" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA1B203479AE00476321 /* Debug */, + 6015AA1C203479AE00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6015AA1D203479AE00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA1E203479AE00476321 /* Debug */, + 6015AA1F203479AE00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6015A9FD203479AE00476321 /* Project object */; +} diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGateway.xcscheme b/ios/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGateway.xcscheme new file mode 100644 index 0000000..509e966 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGateway.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGateway.xcscheme @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/project.pbxproj b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1287fc5 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/project.pbxproj @@ -0,0 +1,356 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 0A81993522A14889006E67BC /* CompletionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A81993422A14889006E67BC /* CompletionViewController.swift */; }; + 6015AA7720347AEA00476321 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA7620347AEA00476321 /* AppDelegate.swift */; }; + 6015AA7920347AEA00476321 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6015AA7820347AEA00476321 /* ViewController.swift */; }; + 6015AA7C20347AEA00476321 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6015AA7A20347AEA00476321 /* Main.storyboard */; }; + 6015AA7E20347AEA00476321 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6015AA7D20347AEA00476321 /* Assets.xcassets */; }; + 6015AA8120347AEA00476321 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6015AA7F20347AEA00476321 /* LaunchScreen.storyboard */; }; + C3E8C92224FDE42100DADE62 /* RemitaPaymentGateway.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */; }; + C3E8C92324FDE42100DADE62 /* RemitaPaymentGateway.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + C3E8C92424FDE42100DADE62 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + C3E8C92324FDE42100DADE62 /* RemitaPaymentGateway.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 0A81993422A14889006E67BC /* CompletionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompletionViewController.swift; sourceTree = ""; }; + 6015AA7320347AEA00476321 /* RemitaPaymentGatewayExampleSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RemitaPaymentGatewayExampleSwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6015AA7620347AEA00476321 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 6015AA7820347AEA00476321 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 6015AA7B20347AEA00476321 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 6015AA7D20347AEA00476321 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 6015AA8020347AEA00476321 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 6015AA8220347AEA00476321 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RemitaPaymentGateway.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6015AA7020347AEA00476321 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C3E8C92224FDE42100DADE62 /* RemitaPaymentGateway.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6015AA6A20347AEA00476321 = { + isa = PBXGroup; + children = ( + C3E8C92124FDE42100DADE62 /* RemitaPaymentGateway.framework */, + 6015AA7520347AEA00476321 /* RemitaPaymentGatewayExampleSwift */, + 6015AA7420347AEA00476321 /* Products */, + ); + sourceTree = ""; + }; + 6015AA7420347AEA00476321 /* Products */ = { + isa = PBXGroup; + children = ( + 6015AA7320347AEA00476321 /* RemitaPaymentGatewayExampleSwift.app */, + ); + name = Products; + sourceTree = ""; + }; + 6015AA7520347AEA00476321 /* RemitaPaymentGatewayExampleSwift */ = { + isa = PBXGroup; + children = ( + 6015AA7620347AEA00476321 /* AppDelegate.swift */, + 6015AA7820347AEA00476321 /* ViewController.swift */, + 6015AA7A20347AEA00476321 /* Main.storyboard */, + 6015AA7D20347AEA00476321 /* Assets.xcassets */, + 6015AA7F20347AEA00476321 /* LaunchScreen.storyboard */, + 6015AA8220347AEA00476321 /* Info.plist */, + 0A81993422A14889006E67BC /* CompletionViewController.swift */, + ); + path = RemitaPaymentGatewayExampleSwift; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6015AA7220347AEA00476321 /* RemitaPaymentGatewayExampleSwift */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6015AA8520347AEA00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayExampleSwift" */; + buildPhases = ( + 6015AA6F20347AEA00476321 /* Sources */, + 6015AA7020347AEA00476321 /* Frameworks */, + 6015AA7120347AEA00476321 /* Resources */, + C3E8C92424FDE42100DADE62 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RemitaPaymentGatewayExampleSwift; + productName = RemitaPaymentGatewayExampleSwift; + productReference = 6015AA7320347AEA00476321 /* RemitaPaymentGatewayExampleSwift.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6015AA6B20347AEA00476321 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = " John Anwuna"; + TargetAttributes = { + 6015AA7220347AEA00476321 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1020; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 6015AA6E20347AEA00476321 /* Build configuration list for PBXProject "RemitaPaymentGatewayExampleSwift" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6015AA6A20347AEA00476321; + productRefGroup = 6015AA7420347AEA00476321 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6015AA7220347AEA00476321 /* RemitaPaymentGatewayExampleSwift */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6015AA7120347AEA00476321 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA8120347AEA00476321 /* LaunchScreen.storyboard in Resources */, + 6015AA7E20347AEA00476321 /* Assets.xcassets in Resources */, + 6015AA7C20347AEA00476321 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6015AA6F20347AEA00476321 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6015AA7920347AEA00476321 /* ViewController.swift in Sources */, + 6015AA7720347AEA00476321 /* AppDelegate.swift in Sources */, + 0A81993522A14889006E67BC /* CompletionViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 6015AA7A20347AEA00476321 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6015AA7B20347AEA00476321 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 6015AA7F20347AEA00476321 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6015AA8020347AEA00476321 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6015AA8320347AEA00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 6015AA8420347AEA00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6015AA8620347AEA00476321 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = RemitaPaymentGatewayExampleSwift/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayExampleSwift; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6015AA8720347AEA00476321 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = RemitaPaymentGatewayExampleSwift/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.remita.RemitaPaymentGatewayExampleSwift; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6015AA6E20347AEA00476321 /* Build configuration list for PBXProject "RemitaPaymentGatewayExampleSwift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA8320347AEA00476321 /* Debug */, + 6015AA8420347AEA00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6015AA8520347AEA00476321 /* Build configuration list for PBXNativeTarget "RemitaPaymentGatewayExampleSwift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6015AA8620347AEA00476321 /* Debug */, + 6015AA8720347AEA00476321 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6015AA6B20347AEA00476321 /* Project object */; +} diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleObjC.xcscheme b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleObjC.xcscheme new file mode 100644 index 0000000..246ff23 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleObjC.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleSwift.xcscheme b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleSwift.xcscheme new file mode 100644 index 0000000..e5e7b1b --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift.xcodeproj/xcshareddata/xcschemes/RemitaPaymentGatewayExampleSwift.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/AppDelegate.swift b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/AppDelegate.swift new file mode 100644 index 0000000..5cabd25 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/AppDelegate.swift @@ -0,0 +1,47 @@ +// +// AppDelegate.swift +// RemitaPaymentGatewayExampleSwift +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@1x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@1x.png new file mode 100644 index 0000000..f72100f Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@1x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@2x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@2x.png new file mode 100644 index 0000000..c6bed25 Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@2x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@3x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@3x.png new file mode 100644 index 0000000..a64e92e Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Bag@3x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Contents.json b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Contents.json new file mode 100644 index 0000000..ef86d03 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/bag.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Bag@1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Bag@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "Bag@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Contents.json b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Contents.json new file mode 100644 index 0000000..aaeecb2 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Failure_Icon@1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Failure_Icon@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "Failure_Icon@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@1x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@1x.png new file mode 100644 index 0000000..43519de Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@1x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@2x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@2x.png new file mode 100644 index 0000000..b73c04b Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@2x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@3x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@3x.png new file mode 100644 index 0000000..a199260 Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/failure.imageset/Failure_Icon@3x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Contents.json b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Contents.json new file mode 100644 index 0000000..6036aee --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Success_Icon@1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Success_Icon@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "Success_Icon@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@1x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@1x.png new file mode 100644 index 0000000..af316d0 Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@1x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@2x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@2x.png new file mode 100644 index 0000000..e1be666 Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@2x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@3x.png b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@3x.png new file mode 100644 index 0000000..f993a33 Binary files /dev/null and b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Assets.xcassets/success.imageset/Success_Icon@3x.png differ diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/LaunchScreen.storyboard b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/Main.storyboard b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/Main.storyboard new file mode 100644 index 0000000..4835662 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Base.lproj/Main.storyboard @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/CompletionViewController.swift b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/CompletionViewController.swift new file mode 100644 index 0000000..596c896 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/CompletionViewController.swift @@ -0,0 +1,35 @@ +// +// CompletionViewController.swift +// RemitaPaymentGatewayExampleSwift +// +// Created by Joshua Balogun on 5/31/19. +// Copyright © 2019 John Anwuna. All rights reserved. +// + +import UIKit + +class CompletionViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + @IBOutlet weak var statusLabel: UILabel! + + var message: String! + var code: String! + + override func viewDidLoad() { + super.viewDidLoad() + + if code == "00" { + imageView.image = #imageLiteral(resourceName: "success") + statusLabel.text = "Transaction succcessful" + } else { + imageView.image = #imageLiteral(resourceName: "failure") + statusLabel.text = "Transaction failed" + } + } + + @IBAction func payAgain(_ sender: UIButton) { + self.dismiss(animated: true, completion: nil) + } + +} diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Info.plist b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Info.plist new file mode 100644 index 0000000..018dc98 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/Info.plist @@ -0,0 +1,50 @@ + + + + + REMITA + + KEY + U0hFTEx8MTUwOTM3MTg1NDczOXwyNjdjNDBiZmI5ZjMzMjg5M2I3MWI2YzEzZWUxYTQ5YjUxOTRhMjY5ZDljOWUzNmI0MWUxOTgyYzI1NDUyYTMxM2NlM2QxYTdmZjQxMTExN2M5MTU1NjgxNWYyYmEwMTI3ZWY3MmU4M2MxNmE2ZjBmNjE3Y2Q2OTNlYzA1ODA4Nw== + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/ViewController.swift b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/ViewController.swift new file mode 100644 index 0000000..1dcdc30 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatewayExampleSwift/RemitaPaymentGatewayExampleSwift/ViewController.swift @@ -0,0 +1,44 @@ +// +// ViewController.swift +// RemitaPaymentGatewayExampleSwift +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit +import RemitaPaymentGateway + +class ViewController: UIViewController, RemitaPaymentGatewayDelegate { + + var rCode: String! + var rMessage: String! + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + @IBAction func payButton(_ sender: UIButton) { + let paymentGateway: RemitaPaymentGateway = RemitaPaymentGateway() + paymentGateway.delegate = self + + let url: String = Constants.DEMO.rawValue + + let txnId: String = UUID().uuidString.replacingOccurrences(of: "-", with: "") + + paymentGateway.initiatePayment(on: self, url:url, key: "QzAwMDAxOTUwNjl8NDMyNTkxNjl8ZTg0MjI2MDg4MjU0NzA2NTY2MTYwNGU1NjNiMjUzYjk4ZDQwZjljZGFiMTVmYTljMDUwMGQ0MDg2MjIyYjEyNTA1ZTE2MTMxNmE3ZjM1OTZmYmJkOTE2MTRiY2NmZTY5NTM4MGQ2MDBlZGJlZmM2ODc2YTc2M2M4MjgyZmFjODc=", email: "lisa@spark.com", amount: "15000", phoneNumber:"08037412366", firstname: "lisa", lastname: "Spark", customerId: "140700251", currencyCode: "NGN", transactionId: txnId, narration: "leather gucci bag") + } + + func onPaymentCompleted(paymentResponse: PaymentResponse) { + print("+++ RESPONSE: \(String(describing: paymentResponse))") + } + +} + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/contents.xcworkspacedata b/ios/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..c154ace --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ios/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/remita-ios-sdk-master/RemitaPaymentGatway.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.swift b/ios/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.swift new file mode 100644 index 0000000..4a18899 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.swift @@ -0,0 +1,155 @@ +// +// LoadingViewController.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import UIKit +import WebKit + +class LoadingViewController: UIViewController, WKUIDelegate, WKScriptMessageHandler { + + var webView: WKWebView! + var paymentRequest: PaymentRequest! + var delegate: RemitaPaymentGatewayDelegate! + + var url: String = "" + var publicKey: String = "" + var email: String = "" + var amount: String = "" + var phoneNumber: String = "" + var firstName: String = "" + var lastName: String = "" + var customerId: String = "" + var currency: String = "" + var transactionId: String = "" + var narration: String = "" + + +override func viewDidLoad() +{ + super.viewDidLoad() + + let htmlString: String = """ + + +
+ + + + + +""" + + webView.loadHTMLString(htmlString, baseURL: nil) +} + + +public override func loadView() { + + let wkWebViewConfig = WKWebViewConfiguration() + + let source = """ + function captureLog(msg) { + window.webkit.messageHandlers.iosListener.postMessage(msg); + } + window.console.log = captureLog; + + """ + + let script = WKUserScript(source: source, injectionTime: .atDocumentEnd, forMainFrameOnly: false) + + wkWebViewConfig.userContentController.addUserScript(script) + wkWebViewConfig.userContentController.add(self, name: "iosListener") + webView = WKWebView(frame: .zero, configuration: wkWebViewConfig) + webView.contentMode = .scaleToFill + webView.uiDelegate = self + view = webView + self.amount = paymentRequest.amount + self.url = paymentRequest.url + self.publicKey = paymentRequest.key + self.email = paymentRequest.email + self.currency = paymentRequest.currency + self.firstName = paymentRequest.firstName + self.lastName = paymentRequest.lastName + self.customerId = paymentRequest.customerId + self.phoneNumber = paymentRequest.phoneNumber + self.transactionId = paymentRequest.transactionId + self.narration = paymentRequest.narration + + delegate = clientDelegate + } + +func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) + { + let response = "\(message.body)" + + switch response + { + + case "closed": + self.close() + + default: + var paymentResponse = PaymentResponse() + + let jsonData = response.data(using: .utf8)! + let responseData = try! JSONDecoder().decode(PaymentResponseData.self,from: jsonData) + + if case responseData.paymentReference = responseData.paymentReference, !responseData.paymentReference.isEmpty { + + paymentResponse.responseCode = Constants.SUCCESS_CODE.rawValue + paymentResponse.responseMessage = Constants.SUCCESS_MESSAGE.rawValue + paymentResponse.paymentResponseData = responseData + + delegate.onPaymentCompleted(paymentResponse: paymentResponse) + + } else { + + paymentResponse.responseCode = Constants.SUCCESS_CODE.rawValue + paymentResponse.responseMessage = Constants.SUCCESS_MESSAGE.rawValue + paymentResponse.paymentResponseData = responseData + + delegate.onPaymentCompleted(paymentResponse: paymentResponse) + + } + + } +} + +override open var shouldAutorotate: Bool { + return false + } + +override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + } +} + + diff --git a/ios/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.xib b/ios/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.xib new file mode 100644 index 0000000..2746fea --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Controllers/LoadingViewController.xib @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/remita-ios-sdk-master/Sources/Controllers/UIViewControllerExtension.swift b/ios/remita-ios-sdk-master/Sources/Controllers/UIViewControllerExtension.swift new file mode 100644 index 0000000..b37a370 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Controllers/UIViewControllerExtension.swift @@ -0,0 +1,40 @@ +// +// UIViewControllerExtension.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import UIKit + +extension UIViewController { + + struct Holder { + static var _modalPrensentingViewController: UIViewController = UIViewController() + static var _clientDelegate: RemitaPaymentGatewayDelegate? = nil + } + + var modalPresentingViewController: UIViewController { + get { + return Holder._modalPrensentingViewController + } + set { + Holder._modalPrensentingViewController = newValue + } + } + + var clientDelegate: RemitaPaymentGatewayDelegate? { + get { + return Holder._clientDelegate + } + set { + Holder._clientDelegate = newValue + } + } + + func close() { + modalPresentingViewController.dismiss(animated: true, completion: nil) + } + +} diff --git a/ios/remita-ios-sdk-master/Sources/Controllers/rip.html b/ios/remita-ios-sdk-master/Sources/Controllers/rip.html new file mode 100644 index 0000000..5f8a962 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Controllers/rip.html @@ -0,0 +1,35 @@ + + + + + + + diff --git a/ios/remita-ios-sdk-master/Sources/Helpers/Constants.swift b/ios/remita-ios-sdk-master/Sources/Helpers/Constants.swift new file mode 100644 index 0000000..313fad2 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Helpers/Constants.swift @@ -0,0 +1,19 @@ +// +// Constants.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved.import Foundation +// + +public enum Constants: String { + case DEMO = "https://remitademo.net" + case PRODUCTION = "https://remita.net" + + case SUCCESS_MESSAGE = "SUCCESS" + case SUCCESS_CODE = "00" + + case FAILED_MESSAGE = "FAILED" + case FAILED_CODE = "01" +} + diff --git a/ios/remita-ios-sdk-master/Sources/Info.plist b/ios/remita-ios-sdk-master/Sources/Info.plist new file mode 100644 index 0000000..1007fd9 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/ios/remita-ios-sdk-master/Sources/Models/RequestResponse.swift b/ios/remita-ios-sdk-master/Sources/Models/RequestResponse.swift new file mode 100644 index 0000000..0342528 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/Models/RequestResponse.swift @@ -0,0 +1,41 @@ +// +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + +import Foundation + +struct PaymentRequest:Codable { + var key = "" + var ref = "" + var email = "" + var amount = "" + var currency = "" + var firstName = "" + var lastName = "" + var customerId = "" + var transactionId = "" + var narration = "" + var phoneNumber = "" + var url = "" + + init() { + } +} + +public struct PaymentResponse: Codable { + var responseCode = "" + var responseMessage = "" + var paymentResponseData : PaymentResponseData? +} + +public struct PaymentResponseData: Codable { + var paymentReference = "" + var processorId = "" + var transactionId = "" + var message = "" + var amount: Double = 0.0 + init(){} +} diff --git a/ios/remita-ios-sdk-master/Sources/RemitPaymentGatewayDelegate.swift b/ios/remita-ios-sdk-master/Sources/RemitPaymentGatewayDelegate.swift new file mode 100644 index 0000000..4aa5e23 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/RemitPaymentGatewayDelegate.swift @@ -0,0 +1,20 @@ +// +// File.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import Foundation +/** + A delegate of the RemitaPaymentGateway must adopt the RemitaPaymentGatewayDelegate protocol. + */ +public protocol RemitaPaymentGatewayDelegate { + /** + Method is invoked when payment processing is completed + */ + func onPaymentCompleted(paymentResponse: PaymentResponse) + +} diff --git a/ios/remita-ios-sdk-master/Sources/RemitaPaymentGateway.h b/ios/remita-ios-sdk-master/Sources/RemitaPaymentGateway.h new file mode 100644 index 0000000..bd41157 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/RemitaPaymentGateway.h @@ -0,0 +1,20 @@ +// +// RemitaPaymentGateway.h +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +#import + +//! Project version number for RemitaPaymentGateway. +FOUNDATION_EXPORT double RemitaPaymentGatewayVersionNumber; + +//! Project version string for RemitaPaymentGateway. +FOUNDATION_EXPORT const unsigned char RemitaPaymentGatewayVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/remita-ios-sdk-master/Sources/RemitaPaymentGateway.swift b/ios/remita-ios-sdk-master/Sources/RemitaPaymentGateway.swift new file mode 100644 index 0000000..fb2ed92 --- /dev/null +++ b/ios/remita-ios-sdk-master/Sources/RemitaPaymentGateway.swift @@ -0,0 +1,58 @@ +// +// RemitaPaymentGateway.swift +// RemitaPaymentGateway +// +// Created by Diagboya Iyare on 30/08/2020. +// Copyright © 2020 Systemspecs Nig. Ltd. All rights reserved. +// + + +import UIKit + +/** + Remita Payment Gateway + */ + +public class RemitaPaymentGateway: NSObject { + /** + Delegate reference + */ + public var delegate: RemitaPaymentGatewayDelegate? + + /** + This method should be called when the client is ready to initiate a payment + - Parameter presentingViewController: View controller where the SDK's payment view is displayed modally on + - Parameter paymentReference: Your transaction unique identifier + - Parameter email: Your customer's email + - Parameter amount: Transaction amount + - Parameter currencyCode: Defaults to NGN + - Parameter firstname: Your customer's firstname + - Parameter lastername: Your customer's lastname + - Parameter customerId: Your customer's unique identifier + - Parameter narration: Description of the payment. + */ + public func initiatePayment(on presentingViewController: UIViewController, url: String, key: String, email: String, amount: String, phoneNumber: String, firstname: String, lastname: String, customerId: String, currencyCode: String, transactionId: String, narration: String) { + + var paymentRequest = PaymentRequest() + paymentRequest.url = url + paymentRequest.key = key + paymentRequest.email = email + paymentRequest.amount = amount + paymentRequest.phoneNumber = phoneNumber + paymentRequest.firstName = firstname + paymentRequest.lastName = lastname + paymentRequest.customerId = customerId + paymentRequest.currency = currencyCode + paymentRequest.transactionId = transactionId + paymentRequest.narration = narration + + let bundle = Bundle(for: LoadingViewController.self) + let loadingViewController = LoadingViewController(nibName: String(describing: LoadingViewController.self), bundle: bundle) + loadingViewController.modalPresentationStyle = .overFullScreen + loadingViewController.modalPresentingViewController = presentingViewController + loadingViewController.paymentRequest = paymentRequest + loadingViewController.clientDelegate = delegate + + presentingViewController.present(loadingViewController, animated: true, completion: nil) + } +} diff --git a/ios/remita-ios-sdk-master/Tests/Info.plist b/ios/remita-ios-sdk-master/Tests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/ios/remita-ios-sdk-master/Tests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/ios/remita-ios-sdk-master/Tests/RemitaPaymentGatewayTests.swift b/ios/remita-ios-sdk-master/Tests/RemitaPaymentGatewayTests.swift new file mode 100644 index 0000000..b4a3290 --- /dev/null +++ b/ios/remita-ios-sdk-master/Tests/RemitaPaymentGatewayTests.swift @@ -0,0 +1,36 @@ +// +// RemitaPaymentGatewayTests.swift +// RemitaPaymentGatewayTests +// +// Created by John Anwuna on 14/02/2018. +// Copyright © 2018 John Anwuna. All rights reserved. +// + +import XCTest +@testable import RemitaPaymentGateway + +class RemitaPaymentGatewayTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/ios/remita-ios-sdk-master/images/inline_snapshot.png b/ios/remita-ios-sdk-master/images/inline_snapshot.png new file mode 100644 index 0000000..63c9584 Binary files /dev/null and b/ios/remita-ios-sdk-master/images/inline_snapshot.png differ diff --git a/package.json b/package.json index 34f628e..7d01c03 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-remita", - "version": "0.1.1", - "description": "This React Native module provides a wrapper to add Remita Payments to your React Native application using the Remita Android Mobile SDK and the Remita iOS Mobile SDK libraries.", + "version": "0.1.3", + "description": "This React Native module provides a wrapper to add Remita Payments to your (Android) React Native application using the Remita Android Mobile SDK library.", "main": "lib/commonjs/index", "module": "lib/module/index", "types": "lib/typescript/index.d.ts", @@ -38,8 +38,9 @@ }, "keywords": [ "react-native", - "ios", - "android" + "android", + "remita", + "payment" ], "repository": "https://github.com/devbabs/react-native-remita", "author": "Babalola Macaulay (https://github.com/devbabs)", diff --git a/src/index.tsx b/src/index.tsx index 2a12c11..4d2f1e1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -37,10 +37,14 @@ class Remita { environment?: 'demo' | 'production' }) => { + console.log("Available native properties", this.nativeRemita) + if ((String(apiKey).length > 0) && (environment == 'demo' || environment == 'production')) { // Initialize Remita API with apiKey and environment + if(Platform.OS == 'android') { + this.nativeRemita.init(apiKey, environment) + } this.apiKey = apiKey - this.nativeRemita.init(apiKey, environment) this.initialized = true } else { throw new Error("To initialize remita payment correctly, make sure you are calling init() and passing passing a correct apiKey with environment as 'demo' or 'production'."); @@ -54,7 +58,7 @@ class Remita { } } - pay = ({ + pay = async ({ amount, email, phone, @@ -77,17 +81,22 @@ class Remita { }) => { this.checkInitialized() - return this.nativeRemita.pay( - String(amount), - email, - phone, - firstName, - lastName, - currencyCode, - narration, - transactionId, - (paymentResponse: any) => paymentCompleted(paymentResponse) - ) + if (Platform.OS == 'android') { + return this.nativeRemita.pay( + String(amount), + email, + phone, + firstName, + lastName, + currencyCode, + narration, + transactionId, + (paymentResponse: any) => paymentCompleted(paymentResponse) + ) + } else { + console.log(`This package is not fully ready on iOS yet. Kindly visit the repository issues page on GitHub https://github.com/devbabs/react-native-remita/issues if you are willing to contribute and assist in making the iOS integration work.`) + return + } } }