Skip to content

Commit dae1b89

Browse files
committed
updated version to 4.11.0
1 parent 93cd789 commit dae1b89

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ dependencies {
5757
// https://github.com/facebook/react-native/blob/0.61-stable/template/android/app/build.gradle#L192
5858
//noinspection GradleDynamicVersion
5959
implementation 'com.facebook.react:react-native:+' // From node_modules
60-
implementation 'com.metamap:android-sdk:3.28.0'
60+
implementation 'com.metamap:android-sdk:3.29.0'
6161
}

android/src/main/java/com/reactlibrary/MetaMapRNSdkModule.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,17 @@ public void run() {
5555
@Override
5656
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
5757
if(requestCode == MetamapSdk.DEFAULT_REQUEST_CODE) {
58-
if(resultCode == RESULT_OK && data != null) {
58+
if(data != null) {
5959
WritableMap params = Arguments.createMap();
6060
params.putString("identityId", data.getStringExtra(MetamapSdk.ARG_IDENTITY_ID));
6161
params.putString("verificationId", data.getStringExtra(MetamapSdk.ARG_VERIFICATION_ID));
62-
sendEvent(reactContext, "verificationSuccess", params);
62+
if (resultCode == RESULT_OK) {
63+
sendEvent(reactContext, "verificationSuccess", params);
64+
} else {
65+
sendEvent(reactContext, "verificationCanceled", params);
66+
}
6367
} else {
64-
sendEvent(reactContext, "verificationCanceled", null);
68+
sendEvent(reactContext, "verificationCanceled", params);
6569
}
6670
}
6771
}

docs/metaMap-reactNative.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ category: 61ae8e8dba577a0010791480
88

99
| LTS version (Recommended for most users): | Current Version(Latest features) |
1010
|-------------------------------------------|----------------------------------|
11-
| 4.10.0 | 4.10.0 |
11+
| 4.11.0 | 4.11.0 |
1212

1313
## Install MetaMap for React Native Expo
1414

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-metamap-sdk",
33
"title": "React Native MetaMap Id Sdk",
4-
"version": "4.10.0",
4+
"version": "4.11.0",
55
"description": "Mati React Nastive Plugin",
66
"main": "index.js",
77
"scripts": {

react-native-metaMap-sdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
2020
s.requires_arc = true
2121

2222
s.dependency "React"
23-
s.dependency 'MetaMapSDK', "~> 3.12.1"
23+
s.dependency 'MetaMapSDK', "~> 3.13.0"
2424
# s.dependency "..."
2525
end
2626

-3.18 MB
Binary file not shown.
457 KB
Binary file not shown.

0 commit comments

Comments
 (0)