Skip to content

Commit

Permalink
Merge pull request #66 from smallcase/release/4.0.0
Browse files Browse the repository at this point in the history
release/4.0.0
  • Loading branch information
indrajit-roy-sc authored Jul 14, 2024
2 parents e1b13ef + ce50213 commit 97418a8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation 'com.smallcase.gateway:sdk:3.13.1'
implementation 'com.smallcase.loans:sdk:2.1.5'
implementation 'com.smallcase.gateway:sdk:4.0.0'
implementation 'com.smallcase.loans:sdk:3.0.0'
implementation "androidx.core:core-ktx:1.3.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
Expand Down
11 changes: 11 additions & 0 deletions ios/SmallcaseGateway.m
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,17 @@ @interface RCT_EXTERN_MODULE(SmallcaseGateway, NSObject)
return;
}

//MARK: intent - mfTransaction
if ([response isKindOfClass: [ObjcMfTransactionIntentTransaction class]]) {
NSMutableDictionary *responseDict = [[NSMutableDictionary alloc] init];
ObjcMfTransactionIntentTransaction *trxResponse = response;
[responseDict setObject:@"TRANSACTION" forKey:@"transaction"];

[responseDict setObject:trxResponse.data forKey:@"data"];
resolve(responseDict);
return;
}

//MARK: intent - connect
if([response isKindOfClass: [ObjCTransactionIntentConnect class]]) {
ObjCTransactionIntentConnect *trxResponse = response;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-smallcase-gateway",
"title": "React Native Smallcase Gateway",
"version": "3.1.3",
"version": "4.0.0",
"description": "smallcase gateway bindings for react native",
"main": "src/index.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions react-native-smallcase-gateway.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ Pod::Spec.new do |s|
s.dependency "ReactCommon/turbomodule/core"
end

s.dependency 'SCGateway', '3.12.0'
s.dependency 'SCLoans', '2.1.1'
s.dependency 'SCGateway', '4.0.0'
s.dependency 'SCLoans', '3.0.0'
end

0 comments on commit 97418a8

Please sign in to comment.