diff --git a/android/build.gradle b/android/build.gradle
index de9d1fe9..e7311232 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -149,7 +149,7 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
- implementation 'com.smallcase.gateway:sdk:6.0.2'
+ implementation "com.smallcase.gateway:sdk-sourav-mfhi-cct-handler-5522466:6.0.2-3182-release"
implementation 'com.smallcase.loans:sdk:5.0.0'
implementation "androidx.core:core-ktx:1.3.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
diff --git a/react-native-smallcase-gateway.podspec b/react-native-smallcase-gateway.podspec
index 333fdae7..14986533 100644
--- a/react-native-smallcase-gateway.podspec
+++ b/react-native-smallcase-gateway.podspec
@@ -34,6 +34,6 @@ Pod::Spec.new do |s|
s.dependency "ReactCommon/turbomodule/core"
end
- s.dependency 'SCGateway-dhruv-whitelist-smallPlug-support-471dd5c', '7.1.0-17-debug'
+ s.dependency 'SCGateway-dhruv-mfhi-cct-implementation-e908b1e', '7.1.1-20-debug'
s.dependency 'SCLoans', '7.0.0'
end
diff --git a/smart_investing_react_native/ios/smart_investing_react_native/AppDelegate.swift b/smart_investing_react_native/ios/smart_investing_react_native/AppDelegate.swift
index b7e85cbc..bff1182c 100644
--- a/smart_investing_react_native/ios/smart_investing_react_native/AppDelegate.swift
+++ b/smart_investing_react_native/ios/smart_investing_react_native/AppDelegate.swift
@@ -2,6 +2,7 @@ import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
+import SCGateway
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -31,6 +32,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
return true
}
+
+ func application(_ app: UIApplication,
+ open url: URL,
+ options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
+ if url.scheme == GatewayMFHIFlowConstants.urlScheme {
+ SCGateway.shared.handleRedirection(with: url)
+ return true
+ }
+
+ return false
+ }
}
class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
@@ -45,4 +57,4 @@ class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
-}
+}
\ No newline at end of file
diff --git a/smart_investing_react_native/ios/smart_investing_react_native/Info.plist b/smart_investing_react_native/ios/smart_investing_react_native/Info.plist
index a6e8a4ca..8c4b1bd0 100644
--- a/smart_investing_react_native/ios/smart_investing_react_native/Info.plist
+++ b/smart_investing_react_native/ios/smart_investing_react_native/Info.plist
@@ -22,6 +22,19 @@
????
CFBundleVersion
$(CURRENT_PROJECT_VERSION)
+ CFBundleURLTypes
+
+
+ CFBundleTypeRole
+ Editor
+ CFBundleURLName
+ com.smallcase.smartInvesting.mfhi
+ CFBundleURLSchemes
+
+ scgatewaymfhi
+
+
+
LSApplicationQueriesSchemes
fbapi
@@ -87,4 +100,4 @@
UIViewControllerBasedStatusBarAppearance
-
\ No newline at end of file
+