diff --git a/android/app/build.gradle b/android/app/build.gradle index ecfdbc70e..f5f93982c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -257,7 +257,7 @@ dependencies { implementation "com.facebook.react:react-native:+" // From node_modules implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" - implementation 'com.github.RampNetwork:ramp-sdk-android:1.+' + // implementation 'com.github.RampNetwork:ramp-sdk-android:1.+' debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' diff --git a/ios/Podfile b/ios/Podfile index a09ad1faf..ff03239c3 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -6,7 +6,7 @@ platform :ios, '12.4' inhibit_all_warnings! # Dependecies required for Ramp.network: -source 'https://github.com/CocoaPods/Specs.git' +# source 'https://github.com/CocoaPods/Specs.git' target 'rifWallet' do config = use_native_modules! @@ -32,7 +32,7 @@ target 'rifWallet' do pod 'react-native-config', :path => '../node_modules/react-native-config' pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' - pod 'Ramp', :git => 'https://github.com/RampNetwork/ramp-sdk-ios', :tag => '4.0.1' + # pod 'Ramp', :git => 'https://github.com/RampNetwork/ramp-sdk-ios', :tag => '4.0.1' target 'rifWalletTests' do inherit! :complete diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e94b04b65..d050dc792 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -139,10 +139,6 @@ PODS: - OpenSSL-Universal (1.1.1100) - PromisesObjC (2.1.1) - Protobuf (3.21.12) - - Ramp (4.0.1) - - ramp-network-react-native-sdk (1.0.1): - - Ramp - - React-Core - RCT-Folly (2021.07.22.00): - boost - DoubleConversion @@ -552,8 +548,6 @@ DEPENDENCIES: - jail-monkey (from `../node_modules/jail-monkey`) - libevent (~> 2.1.12) - OpenSSL-Universal (= 1.1.1100) - - Ramp (from `https://github.com/RampNetwork/ramp-sdk-ios`, tag `4.0.1`) - - "ramp-network-react-native-sdk (from `../node_modules/@ramp-network/react-native-sdk`)" - 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`) @@ -656,11 +650,6 @@ EXTERNAL SOURCES: :podspec: "../node_modules/react-native/sdks/hermes/hermes-engine.podspec" jail-monkey: :path: "../node_modules/jail-monkey" - Ramp: - :git: https://github.com/RampNetwork/ramp-sdk-ios - :tag: 4.0.1 - ramp-network-react-native-sdk: - :path: "../node_modules/@ramp-network/react-native-sdk" RCT-Folly: :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" RCTRequired: @@ -758,11 +747,6 @@ EXTERNAL SOURCES: Yoga: :path: "../node_modules/react-native/ReactCommon/yoga" -CHECKOUT OPTIONS: - Ramp: - :git: https://github.com/RampNetwork/ramp-sdk-ios - :tag: 4.0.1 - SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 @@ -800,8 +784,6 @@ SPEC CHECKSUMS: OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb Protobuf: 120350fc38646e2dedc26f49ecba778184ea1de2 - Ramp: 3f843fb75cac12ad40842afa3226bae36dc93521 - ramp-network-react-native-sdk: dabb00cff767616c6c50c1964eea3c0fcad7bee9 RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda RCTRequired: e1866f61af7049eb3d8e08e8b133abd38bc1ca7a RCTTypeSafety: 27c2ac1b00609a432ced1ae701247593f07f901e @@ -854,6 +836,6 @@ SPEC CHECKSUMS: YogaKit: f782866e155069a2cca2517aafea43200b01fd5a ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb -PODFILE CHECKSUM: 8b2b9ce9f5d51b70a31f8e58224ff082d614339e +PODFILE CHECKSUM: e1b020c087aad27de326c92dd99568820885b80b COCOAPODS: 1.11.3 diff --git a/ios/rifWallet.xcodeproj/project.pbxproj b/ios/rifWallet.xcodeproj/project.pbxproj index 2b85f81af..1a913e467 100644 --- a/ios/rifWallet.xcodeproj/project.pbxproj +++ b/ios/rifWallet.xcodeproj/project.pbxproj @@ -12,15 +12,15 @@ 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 */; }; + 1C9643691D114F5A26DE4453 /* libPods-rifWallet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 185F2B66484D6E80658EA201 /* libPods-rifWallet.a */; }; 2F50CBCF7F3D494A82656E51 /* Sora-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 290EEC2A901E42CF9EEF32D3 /* Sora-SemiBold.ttf */; }; 63066051E7454497968F6DE8 /* Sora-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0BF6B8C2EF5D4A14AAB2AB74 /* Sora-Medium.ttf */; }; 7C78E83D897F45A39A9BD139 /* Sora-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EC5B831E2A3C49908B522226 /* Sora-Regular.ttf */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + 9FCFDC07EB1CD45729483048 /* libPods-rifWallet-rifWalletTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A9F70C6247CDED9F31788B49 /* libPods-rifWallet-rifWalletTests.a */; }; BC2F68C16B654C7EBF5C6552 /* Sora-ExtraLight.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E151209A1B2749808290F5E0 /* Sora-ExtraLight.ttf */; }; - C3FB687B44E9BFA156764519 /* libPods-rifWallet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2CA295261C4E7C26742975C3 /* libPods-rifWallet.a */; }; D64B802F90C641848F6C3103 /* Sora-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 57BC3071F1A940B2ACFF9D01 /* Sora-Light.ttf */; }; D75BF2C8FDB849E4A6E57B77 /* Sora-Thin.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A24BB72EFB90449A8A3BDDE2 /* Sora-Thin.ttf */; }; - F4C57969B5B664B4DDEA3DDC /* libPods-rifWallet-rifWalletTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C7A565B930637F3F0A787EDD /* libPods-rifWallet-rifWalletTests.a */; }; F6CBEFFD63754FC0B8C46E9B /* Sora-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7C2FF27884044CE0987DFE88 /* Sora-Bold.ttf */; }; /* End PBXBuildFile section */ @@ -39,24 +39,24 @@ 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* rifWalletTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = rifWalletTests.m; sourceTree = ""; }; 0BF6B8C2EF5D4A14AAB2AB74 /* Sora-Medium.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-Medium.ttf"; path = "../assets/fonts/Sora-Medium.ttf"; sourceTree = ""; }; - 0C127466FADB3486E40F34BE /* Pods-rifWallet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet.debug.xcconfig"; path = "Target Support Files/Pods-rifWallet/Pods-rifWallet.debug.xcconfig"; sourceTree = ""; }; 13B07F961A680F5B00A75B9A /* rifWallet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = rifWallet.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = rifWallet/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.mm; path = rifWallet/AppDelegate.mm; sourceTree = ""; }; 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = rifWallet/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = rifWallet/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = rifWallet/main.m; sourceTree = ""; }; - 252DE5BB86A3F2F967884A30 /* Pods-rifWallet-rifWalletTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet-rifWalletTests.release.xcconfig"; path = "Target Support Files/Pods-rifWallet-rifWalletTests/Pods-rifWallet-rifWalletTests.release.xcconfig"; sourceTree = ""; }; + 185F2B66484D6E80658EA201 /* libPods-rifWallet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rifWallet.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D4AD2D8D252ABFB8C16768F /* Pods-rifWallet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet.debug.xcconfig"; path = "Target Support Files/Pods-rifWallet/Pods-rifWallet.debug.xcconfig"; sourceTree = ""; }; + 25291CB115E34FDD20202955 /* Pods-rifWallet-rifWalletTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet-rifWalletTests.debug.xcconfig"; path = "Target Support Files/Pods-rifWallet-rifWalletTests/Pods-rifWallet-rifWalletTests.debug.xcconfig"; sourceTree = ""; }; 290EEC2A901E42CF9EEF32D3 /* Sora-SemiBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-SemiBold.ttf"; path = "../assets/fonts/Sora-SemiBold.ttf"; sourceTree = ""; }; - 2CA295261C4E7C26742975C3 /* libPods-rifWallet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rifWallet.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 292A37E1D28734FEB3FE8A5B /* Pods-rifWallet.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet.release.xcconfig"; path = "Target Support Files/Pods-rifWallet/Pods-rifWallet.release.xcconfig"; sourceTree = ""; }; 57BC3071F1A940B2ACFF9D01 /* Sora-Light.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-Light.ttf"; path = "../assets/fonts/Sora-Light.ttf"; sourceTree = ""; }; - 72A2BF886B17AD24EE376C90 /* Pods-rifWallet-rifWalletTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet-rifWalletTests.debug.xcconfig"; path = "Target Support Files/Pods-rifWallet-rifWalletTests/Pods-rifWallet-rifWalletTests.debug.xcconfig"; sourceTree = ""; }; + 7877CF1C3B69310B7C5E46AB /* Pods-rifWallet-rifWalletTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet-rifWalletTests.release.xcconfig"; path = "Target Support Files/Pods-rifWallet-rifWalletTests/Pods-rifWallet-rifWalletTests.release.xcconfig"; sourceTree = ""; }; 7C2FF27884044CE0987DFE88 /* Sora-Bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-Bold.ttf"; path = "../assets/fonts/Sora-Bold.ttf"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = rifWallet/LaunchScreen.storyboard; sourceTree = ""; }; 8AF1BF407BF94E96888272E7 /* Sora-ExtraBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-ExtraBold.ttf"; path = "../assets/fonts/Sora-ExtraBold.ttf"; sourceTree = ""; }; A24BB72EFB90449A8A3BDDE2 /* Sora-Thin.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-Thin.ttf"; path = "../assets/fonts/Sora-Thin.ttf"; sourceTree = ""; }; - B4187269AC48C3B4DA450F88 /* Pods-rifWallet.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rifWallet.release.xcconfig"; path = "Target Support Files/Pods-rifWallet/Pods-rifWallet.release.xcconfig"; sourceTree = ""; }; - C7A565B930637F3F0A787EDD /* libPods-rifWallet-rifWalletTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rifWallet-rifWalletTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + A9F70C6247CDED9F31788B49 /* libPods-rifWallet-rifWalletTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rifWallet-rifWalletTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; E151209A1B2749808290F5E0 /* Sora-ExtraLight.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-ExtraLight.ttf"; path = "../assets/fonts/Sora-ExtraLight.ttf"; sourceTree = ""; }; EC5B831E2A3C49908B522226 /* Sora-Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Sora-Regular.ttf"; path = "../assets/fonts/Sora-Regular.ttf"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; @@ -67,7 +67,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - F4C57969B5B664B4DDEA3DDC /* libPods-rifWallet-rifWalletTests.a in Frameworks */, + 9FCFDC07EB1CD45729483048 /* libPods-rifWallet-rifWalletTests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -75,7 +75,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - C3FB687B44E9BFA156764519 /* libPods-rifWallet.a in Frameworks */, + 1C9643691D114F5A26DE4453 /* libPods-rifWallet.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -116,8 +116,8 @@ isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, - 2CA295261C4E7C26742975C3 /* libPods-rifWallet.a */, - C7A565B930637F3F0A787EDD /* libPods-rifWallet-rifWalletTests.a */, + 185F2B66484D6E80658EA201 /* libPods-rifWallet.a */, + A9F70C6247CDED9F31788B49 /* libPods-rifWallet-rifWalletTests.a */, ); name = Frameworks; sourceTree = ""; @@ -172,10 +172,10 @@ B0306462322B40F15E31C629 /* Pods */ = { isa = PBXGroup; children = ( - 0C127466FADB3486E40F34BE /* Pods-rifWallet.debug.xcconfig */, - B4187269AC48C3B4DA450F88 /* Pods-rifWallet.release.xcconfig */, - 72A2BF886B17AD24EE376C90 /* Pods-rifWallet-rifWalletTests.debug.xcconfig */, - 252DE5BB86A3F2F967884A30 /* Pods-rifWallet-rifWalletTests.release.xcconfig */, + 1D4AD2D8D252ABFB8C16768F /* Pods-rifWallet.debug.xcconfig */, + 292A37E1D28734FEB3FE8A5B /* Pods-rifWallet.release.xcconfig */, + 25291CB115E34FDD20202955 /* Pods-rifWallet-rifWalletTests.debug.xcconfig */, + 7877CF1C3B69310B7C5E46AB /* Pods-rifWallet-rifWalletTests.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -187,12 +187,12 @@ isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "rifWalletTests" */; buildPhases = ( - 0BD14CE5DB04ECFFEC0E2225 /* [CP] Check Pods Manifest.lock */, + 35921A314446A48879F55F17 /* [CP] Check Pods Manifest.lock */, 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, - 6875ACF8F8A390A233BDFA81 /* [CP] Embed Pods Frameworks */, - E89F29F41A5D56B99140DF5B /* [CP] Copy Pods Resources */, + 5D57564325AA3E6590EB6474 /* [CP] Embed Pods Frameworks */, + A1120F6C12E01DB9696024C9 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -208,14 +208,14 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rifWallet" */; buildPhases = ( - DD1F2098B2300F420E554A09 /* [CP] Check Pods Manifest.lock */, + 6A6083A4B552D9D8D8A54BFB /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 5F701FEA32D9ED2DDC8E0AA2 /* [CP] Embed Pods Frameworks */, - EFEB8B479731F12E613439EF /* [CP] Copy Pods Resources */, + 5AFC419215E86372072E66F3 /* [CP] Embed Pods Frameworks */, + AEDC89B4B36D922C8A048076 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -304,7 +304,7 @@ shellPath = /bin/sh; shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; - 0BD14CE5DB04ECFFEC0E2225 /* [CP] Check Pods Manifest.lock */ = { + 35921A314446A48879F55F17 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -326,7 +326,7 @@ 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; }; - 5F701FEA32D9ED2DDC8E0AA2 /* [CP] Embed Pods Frameworks */ = { + 5AFC419215E86372072E66F3 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -343,7 +343,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rifWallet/Pods-rifWallet-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 6875ACF8F8A390A233BDFA81 /* [CP] Embed Pods Frameworks */ = { + 5D57564325AA3E6590EB6474 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -360,7 +360,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rifWallet-rifWalletTests/Pods-rifWallet-rifWalletTests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - DD1F2098B2300F420E554A09 /* [CP] Check Pods Manifest.lock */ = { + 6A6083A4B552D9D8D8A54BFB /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -382,7 +382,7 @@ 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; }; - E89F29F41A5D56B99140DF5B /* [CP] Copy Pods Resources */ = { + A1120F6C12E01DB9696024C9 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -399,7 +399,7 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rifWallet-rifWalletTests/Pods-rifWallet-rifWalletTests-resources.sh\"\n"; showEnvVarsInLog = 0; }; - EFEB8B479731F12E613439EF /* [CP] Copy Pods Resources */ = { + AEDC89B4B36D922C8A048076 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -468,7 +468,7 @@ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 72A2BF886B17AD24EE376C90 /* Pods-rifWallet-rifWalletTests.debug.xcconfig */; + baseConfigurationReference = 25291CB115E34FDD20202955 /* Pods-rifWallet-rifWalletTests.debug.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; @@ -497,7 +497,7 @@ }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 252DE5BB86A3F2F967884A30 /* Pods-rifWallet-rifWalletTests.release.xcconfig */; + baseConfigurationReference = 7877CF1C3B69310B7C5E46AB /* Pods-rifWallet-rifWalletTests.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; @@ -523,7 +523,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 0C127466FADB3486E40F34BE /* Pods-rifWallet.debug.xcconfig */; + baseConfigurationReference = 1D4AD2D8D252ABFB8C16768F /* Pods-rifWallet.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -554,7 +554,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = B4187269AC48C3B4DA450F88 /* Pods-rifWallet.release.xcconfig */; + baseConfigurationReference = 292A37E1D28734FEB3FE8A5B /* Pods-rifWallet.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; diff --git a/package.json b/package.json index 6c5f95a5a..3eb373758 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "@ethersproject/shims": "^5.7.0", "@hookform/resolvers": "^2.9.11", "@json-rpc-tools/utils": "^1.7.6", - "@ramp-network/react-native-sdk": "^1.0.1", "@react-native-async-storage/async-storage": "^1.19.0", "@react-native-community/clipboard": "^1.5.1", "@react-native-community/hooks": "^2.8.1", diff --git a/src/lib/i18n.ts b/src/lib/i18n.ts index b49657bea..e4b89a534 100644 --- a/src/lib/i18n.ts +++ b/src/lib/i18n.ts @@ -372,6 +372,8 @@ const resources = { dapps_uri_not_valid_title: 'Invalid URI', dapps_uri_not_valid_message: 'URI is not valid. Please try with a new URI.', + ramp_error_title: 'Not Available', + ramp_error: 'Adding funds is not available yet.', }, }, es: { diff --git a/src/screens/home/index.tsx b/src/screens/home/index.tsx index d64b4fc87..62fe29772 100644 --- a/src/screens/home/index.tsx +++ b/src/screens/home/index.tsx @@ -1,13 +1,9 @@ -import RampSdk from '@ramp-network/react-native-sdk' import { useCallback, useEffect, useMemo, useState } from 'react' -import { StyleSheet, View, ScrollView } from 'react-native' +import { StyleSheet, View, ScrollView, Alert } from 'react-native' import { BitcoinNetwork } from '@rsksmart/rif-wallet-bitcoin' import { useTranslation } from 'react-i18next' import { useIsFocused } from '@react-navigation/native' -import { getChainIdByType } from 'lib/utils' - -import { toChecksumAddress } from 'components/address/lib' import { Typography } from 'components/typography' import { homeStackRouteNames, @@ -52,7 +48,7 @@ export const HomeScreen = ({ const { t } = useTranslation() const isFocused = useIsFocused() const dispatch = useAppDispatch() - const { wallet, chainType } = useAppSelector(selectWalletState) + const { wallet } = useAppSelector(selectWalletState) const tokenBalances = useAppSelector(selectBalances) const transactions = useAppSelector(selectTransactions) const totalUsdBalance = useAppSelector(selectTotalUsdValue) @@ -82,7 +78,7 @@ export const HomeScreen = ({ backgroundColor: selectedAddress ? selectedColor : sharedColors.borderColor, } - const rampConfig = useMemo( + /*const rampConfig = useMemo( () => ({ // for testnet: url: 'https://app.demo.ramp.network', @@ -109,7 +105,7 @@ export const HomeScreen = ({ const addBalance = useCallback(() => { ramp.on('*', console.log) ramp.show(rampConfig) - }, [ramp, rampConfig]) + }, [ramp, rampConfig])*/ const handleBitcoinSendReceive = useCallback( ( @@ -148,10 +144,15 @@ export const HomeScreen = ({ token: selected, }) case 'FAUCET': - return addBalance() + return Alert.alert(t('ramp_error_title'), t('ramp_error'), [ + { + text: t('confirm_key_button'), + }, + ]) + // return addBalance() } }, - [handleBitcoinSendReceive, navigation, selected, addBalance], + [handleBitcoinSendReceive, navigation, selected, t], ) useEffect(() => { diff --git a/yarn.lock b/yarn.lock index 9e27b7759..9e2e1f7b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1712,11 +1712,6 @@ tiny-glob "^0.2.9" tslib "^2.4.0" -"@ramp-network/react-native-sdk@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@ramp-network/react-native-sdk/-/react-native-sdk-1.0.1.tgz#0a3047cf345514dd66995573ba805c4777b4f8ea" - integrity sha512-Jo4Bd+KDHgTwD5KFzxEVCkOpCB2y2WrJckLgKU91m0WM5UC9g+aGPle2/5Jddfoe3d7CapVrh15J1bsAuoadxw== - "@react-native-async-storage/async-storage@^1.19.0": version "1.19.0" resolved "https://registry.yarnpkg.com/@react-native-async-storage/async-storage/-/async-storage-1.19.0.tgz#594aca9c20924b7955d62cf43797b4187e1e6cf8"