react-native-smallcase-gateway 3.1.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,8 +149,8 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
149
149
  dependencies {
150
150
  //noinspection GradleDynamicVersion
151
151
  implementation 'com.facebook.react:react-native:+' // From node_modules
152
- implementation 'com.smallcase.gateway:sdk:3.13.1'
153
- implementation 'com.smallcase.loans:sdk:2.1.5'
152
+ implementation 'com.smallcase.gateway:sdk:4.0.0'
153
+ implementation 'com.smallcase.loans:sdk:3.0.0'
154
154
  implementation "androidx.core:core-ktx:1.3.1"
155
155
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
156
156
  }
@@ -179,6 +179,17 @@ RCT_REMAP_METHOD(triggerTransaction,
179
179
  return;
180
180
  }
181
181
 
182
+ //MARK: intent - mfTransaction
183
+ if ([response isKindOfClass: [ObjcMfTransactionIntentTransaction class]]) {
184
+ NSMutableDictionary *responseDict = [[NSMutableDictionary alloc] init];
185
+ ObjcMfTransactionIntentTransaction *trxResponse = response;
186
+ [responseDict setObject:@"TRANSACTION" forKey:@"transaction"];
187
+
188
+ [responseDict setObject:trxResponse.data forKey:@"data"];
189
+ resolve(responseDict);
190
+ return;
191
+ }
192
+
182
193
  //MARK: intent - connect
183
194
  if([response isKindOfClass: [ObjCTransactionIntentConnect class]]) {
184
195
  ObjCTransactionIntentConnect *trxResponse = response;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-smallcase-gateway",
3
3
  "title": "React Native Smallcase Gateway",
4
- "version": "3.1.3",
4
+ "version": "4.0.0",
5
5
  "description": "smallcase gateway bindings for react native",
6
6
  "main": "src/index.js",
7
7
  "files": [
@@ -33,6 +33,6 @@ Pod::Spec.new do |s|
33
33
  s.dependency "ReactCommon/turbomodule/core"
34
34
  end
35
35
 
36
- s.dependency 'SCGateway', '3.12.0'
37
- s.dependency 'SCLoans', '2.1.1'
36
+ s.dependency 'SCGateway', '4.0.0'
37
+ s.dependency 'SCLoans', '3.0.0'
38
38
  end