From 1997b97131afb6979cd78c699c6bdc9f186b460d Mon Sep 17 00:00:00 2001 From: Chathura Date: Mon, 15 Jul 2024 21:18:26 +0530 Subject: [PATCH] remove unwanted pkgs and configs --- example/babel.config.js | 4 +- example/ios/example.xcodeproj/project.pbxproj | 132 ++++----- .../xcshareddata/xcschemes/example.xcscheme | 2 +- example/package.json | 2 +- payment_sdk/package.json | 14 +- payment_sdk/readme.md | 107 +++++++ payment_sdk/setupTests.js | 22 +- payment_sdk/src/components/CardInputGroup.tsx | 143 +++++----- payment_sdk/src/components/CardScanner.tsx | 270 +++++++++--------- 9 files changed, 393 insertions(+), 303 deletions(-) create mode 100644 payment_sdk/readme.md diff --git a/example/babel.config.js b/example/babel.config.js index 3a49b5c..aad7508 100644 --- a/example/babel.config.js +++ b/example/babel.config.js @@ -5,7 +5,7 @@ module.exports = { envName: 'APP_ENV', moduleName: '@env', path: '.env', - }], - ['react-native-worklets-core/plugin'] + }] + // ['react-native-worklets-core/plugin'] ], }; \ No newline at end of file diff --git a/example/ios/example.xcodeproj/project.pbxproj b/example/ios/example.xcodeproj/project.pbxproj index 768cacc..4249dbc 100644 --- a/example/ios/example.xcodeproj/project.pbxproj +++ b/example/ios/example.xcodeproj/project.pbxproj @@ -11,10 +11,9 @@ 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 41C055ADA624790DAC40216A /* libPods-example-exampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64174A8036F168F4570EF669 /* libPods-example-exampleTests.a */; }; - 62F89CF42C33F21B007E4293 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 62F89CF32C33F21B007E4293 /* main.jsbundle */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; - 83AED7D40518A045BC9D1226 /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7886ADCC0D1B6D6A0C21CE28 /* libPods-example.a */; }; + 8DFB133260FB6957E9F4B7C9 /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E02B705D9290D7301434360 /* libPods-example.a */; }; + 9E3FCA82F30797AC0BC55DA5 /* libPods-example-exampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C7CAF2D105DC826BC2FA9CA /* libPods-example-exampleTests.a */; }; B63280079B76FB2C647EB07B /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 641CDFF252E7942B8126B090 /* PrivacyInfo.xcprivacy */; }; /* End PBXBuildFile section */ @@ -32,6 +31,7 @@ 00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; }; + 0E02B705D9290D7301434360 /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = example/AppDelegate.mm; sourceTree = ""; }; @@ -39,17 +39,15 @@ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; }; 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = example/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 224346EED97CDB7464200DC4 /* Pods-example-exampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example-exampleTests.release.xcconfig"; path = "Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.release.xcconfig"; sourceTree = ""; }; + 2E5926CB1F674784085096DA /* Pods-example-exampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example-exampleTests.release.xcconfig"; path = "Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.release.xcconfig"; sourceTree = ""; }; + 3C7CAF2D105DC826BC2FA9CA /* libPods-example-exampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example-exampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 55A4A7F30E5039D590FD1140 /* Pods-example-exampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example-exampleTests.debug.xcconfig"; path = "Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.debug.xcconfig"; sourceTree = ""; }; 62F89CF12C33F160007E4293 /* hermes.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = hermes.xcframework; path = "Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework"; sourceTree = ""; }; - 62F89CF32C33F21B007E4293 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; - 6301B420989E65E8CFFB1244 /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = ""; }; - 64174A8036F168F4570EF669 /* libPods-example-exampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example-exampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 641CDFF252E7942B8126B090 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = example/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 7886ADCC0D1B6D6A0C21CE28 /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 7FB2E0659194555BFE19C543 /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example/LaunchScreen.storyboard; sourceTree = ""; }; - 8DBDFBBA60FA3FAB403888BC /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = ""; }; - C0F21609618AF439F2D4A60E /* Pods-example-exampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example-exampleTests.debug.xcconfig"; path = "Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.debug.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; + F8FBC1A296BDAEA4172ADA3C /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -57,7 +55,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 41C055ADA624790DAC40216A /* libPods-example-exampleTests.a in Frameworks */, + 9E3FCA82F30797AC0BC55DA5 /* libPods-example-exampleTests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -65,7 +63,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 83AED7D40518A045BC9D1226 /* libPods-example.a in Frameworks */, + 8DFB133260FB6957E9F4B7C9 /* libPods-example.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -109,8 +107,8 @@ children = ( 62F89CF12C33F160007E4293 /* hermes.xcframework */, ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - 7886ADCC0D1B6D6A0C21CE28 /* libPods-example.a */, - 64174A8036F168F4570EF669 /* libPods-example-exampleTests.a */, + 0E02B705D9290D7301434360 /* libPods-example.a */, + 3C7CAF2D105DC826BC2FA9CA /* libPods-example-exampleTests.a */, ); name = Frameworks; sourceTree = ""; @@ -125,7 +123,6 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( - 62F89CF32C33F21B007E4293 /* main.jsbundle */, 13B07FAE1A68108700A75B9A /* example */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* exampleTests */, @@ -150,10 +147,10 @@ BBD78D7AC51CEA395F1C20DB /* Pods */ = { isa = PBXGroup; children = ( - 8DBDFBBA60FA3FAB403888BC /* Pods-example.debug.xcconfig */, - 6301B420989E65E8CFFB1244 /* Pods-example.release.xcconfig */, - C0F21609618AF439F2D4A60E /* Pods-example-exampleTests.debug.xcconfig */, - 224346EED97CDB7464200DC4 /* Pods-example-exampleTests.release.xcconfig */, + F8FBC1A296BDAEA4172ADA3C /* Pods-example.debug.xcconfig */, + 7FB2E0659194555BFE19C543 /* Pods-example.release.xcconfig */, + 55A4A7F30E5039D590FD1140 /* Pods-example-exampleTests.debug.xcconfig */, + 2E5926CB1F674784085096DA /* Pods-example-exampleTests.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -165,12 +162,12 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */; buildPhases = ( - AD8126D3FBB9536E7528B6B6 /* [CP] Check Pods Manifest.lock */, + FCE2E2D4F746E7502F67D0FB /* [CP] Check Pods Manifest.lock */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, - 44A62C05C9FDC831ADCC0651 /* [CP] Embed Pods Frameworks */, - 19AA13ED28B279474B3DCF2A /* [CP] Copy Pods Resources */, + 466A0267E888337D64E2DBDB /* [CP] Embed Pods Frameworks */, + D5572CE620DA30494D440E0C /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -186,13 +183,13 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */; buildPhases = ( - CD688008018DC9391A38088E /* [CP] Check Pods Manifest.lock */, + BBA1801975E55F3E902780CD /* [CP] Check Pods Manifest.lock */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - F4DAD0B952D7314785BD789E /* [CP] Embed Pods Frameworks */, - E586F72011E185D116FAA3E1 /* [CP] Copy Pods Resources */, + F684B77D74C94E91631D2BA5 /* [CP] Embed Pods Frameworks */, + 9FC6723ED00DBD250236671B /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -254,7 +251,6 @@ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, B63280079B76FB2C647EB07B /* PrivacyInfo.xcprivacy in Resources */, - 62F89CF42C33F21B007E4293 /* main.jsbundle in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -263,7 +259,7 @@ /* Begin PBXShellScriptBuildPhase section */ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { isa = PBXShellScriptBuildPhase; - buildActionMask = 8; + buildActionMask = 12; files = ( ); inputPaths = ( @@ -273,45 +269,45 @@ name = "Bundle React Native code and images"; outputPaths = ( ); - runOnlyForDeploymentPostprocessing = 1; + runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 19AA13ED28B279474B3DCF2A /* [CP] Copy Pods Resources */ = { + 466A0267E888337D64E2DBDB /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 44A62C05C9FDC831ADCC0651 /* [CP] Embed Pods Frameworks */ = { + 9FC6723ED00DBD250236671B /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Embed Pods Frameworks"; + name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\"\n"; showEnvVarsInLog = 0; }; - AD8126D3FBB9536E7528B6B6 /* [CP] Check Pods Manifest.lock */ = { + BBA1801975E55F3E902780CD /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -326,67 +322,67 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-example-exampleTests-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-example-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - CD688008018DC9391A38088E /* [CP] Check Pods Manifest.lock */ = { + D5572CE620DA30494D440E0C /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; + name = "[CP] Copy Pods Resources"; outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-example-checkManifestLockResult.txt", + "${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources.sh\"\n"; showEnvVarsInLog = 0; }; - E586F72011E185D116FAA3E1 /* [CP] Copy Pods Resources */ = { + F684B77D74C94E91631D2BA5 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-input-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-output-files.xcfilelist", + "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - F4DAD0B952D7314785BD789E /* [CP] Embed Pods Frameworks */ = { + FCE2E2D4F746E7502F67D0FB /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - name = "[CP] Embed Pods Frameworks"; + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-example-exampleTests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -422,7 +418,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = C0F21609618AF439F2D4A60E /* Pods-example-exampleTests.debug.xcconfig */; + baseConfigurationReference = 55A4A7F30E5039D590FD1140 /* Pods-example-exampleTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -449,7 +445,7 @@ }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 224346EED97CDB7464200DC4 /* Pods-example-exampleTests.release.xcconfig */; + baseConfigurationReference = 2E5926CB1F674784085096DA /* Pods-example-exampleTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; @@ -473,12 +469,13 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8DBDFBBA60FA3FAB403888BC /* Pods-example.debug.xcconfig */; + baseConfigurationReference = F8FBC1A296BDAEA4172ADA3C /* Pods-example.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = QWQFL4LXJ4; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; INFOPLIST_FILE = example/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -494,6 +491,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; "PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = org.reactjs.native.example.komoju; PRODUCT_NAME = example; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -502,12 +500,13 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 6301B420989E65E8CFFB1244 /* Pods-example.release.xcconfig */; + baseConfigurationReference = 7FB2E0659194555BFE19C543 /* Pods-example.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = QWQFL4LXJ4; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = example/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -522,6 +521,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; "PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = org.reactjs.native.example.komoju; PRODUCT_NAME = example; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; diff --git a/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme b/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme index 34783da..0cdd4f2 100644 --- a/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +++ b/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme @@ -64,7 +64,7 @@ + isEnabled = "NO"> diff --git a/example/package.json b/example/package.json index a5108f1..07f7cd0 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,7 @@ "test": "jest" }, "dependencies": { - "@komoju/komoju-react-native": "0.0.1", + "@komoju/komoju-react-native": "0.0.3", "i18next": "^23.11.5", "react": "18.2.0", "react-i18next": "^14.1.2", diff --git a/payment_sdk/package.json b/payment_sdk/package.json index 983e93d..4964ae0 100644 --- a/payment_sdk/package.json +++ b/payment_sdk/package.json @@ -1,6 +1,6 @@ { "name": "@komoju/komoju-react-native", - "version": "0.0.1", + "version": "0.0.3", "private": false, "description": "degica payment SDK", "main": "dist/index.js", @@ -52,15 +52,10 @@ "jest": "^29.7.0", "react": "18.2.0", "react-native": "0.74.1", - "react-native-gesture-handler": "^2.16.2", - "react-native-reanimated": "^3.11.0", "react-test-renderer": "^18.2.0", "ts-jest": "^29.1.4", "typescript": "^5.4.5", - "typescript-eslint": "^7.12.0", - "react-native-vision-camera": "^4.3.2", - "react-native-vision-camera-text-recognition": "^3.0.4", - "react-native-worklets-core": "^1.3.3" + "typescript-eslint": "^7.12.0" }, "dependencies": { "i18next": "^23.11.5", @@ -73,9 +68,6 @@ }, "peerDependencies": { "react": "*", - "react-native": "*", - "react-native-vision-camera": "^4.3.2", - "react-native-vision-camera-text-recognition": "^3.0.4", - "react-native-worklets-core": "^1.3.3" + "react-native": "*" } } \ No newline at end of file diff --git a/payment_sdk/readme.md b/payment_sdk/readme.md new file mode 100644 index 0000000..41e7399 --- /dev/null +++ b/payment_sdk/readme.md @@ -0,0 +1,107 @@ + +# Komoju SDK for React Native + +[![NPM Version](https://img.shields.io/npm/v/%40komoju%2Fkomoju-react-native)](https://www.npmjs.com/package/@komoju/komoju-react-native) +[![License](https://img.shields.io/npm/l/%40komoju%2Fkomoju-react-native)](https://www.npmjs.com/package/@komoju/komoju-react-native) + +**Welcome to the Komoju Payment Gateway SDK!** This SDK empowers you to seamlessly integrate secure payment processing into your Android and iOS apps using React Native. + +## Getting Started +Get started with our +[Developer-oriented API documentation](https://doc.komoju.com/) or [example project](https://github.com/degica/mobile-sdk_react-native/tree/main/example) + +## Installation + +```sh +yarn add @komoju/komoju-react-native +or +npm install @komoju/komoju-react-native +``` + + +> ### *In order to use the SDK you will have to install bellow packages as dependancies.* +```sh +i18next +react-i18next +react-native-svg +react-native-webview +``` + +## Usage example +```tsx +// App.ts +import { KomojuSDK } from '@komoju/komoju-react-native'; + +function App() { + return ( + + + + ); +} + +// PaymentScreen.ts +import { KomojuSDK } from '@komoju/komoju-react-native'; + +export default function PaymentScreen() { + const { createPayment } = KomojuSDK.useKomoju(); + + const checkout = async () => { + createPayment({ + sessionId, // retrieve this from your server + onComplete, // (optional) pass a callback to get the final results of response when payment is complete + }); + }; + + return ( + +