Skip to content

Commit 3306e49

Browse files
updated version to 2.6.4
1 parent 8f49d26 commit 3306e49

7 files changed

Lines changed: 48 additions & 18 deletions

File tree

.idea/other.xml

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

.idea/workspace.xml

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

node_modules/.package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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,6 +1,6 @@
11
{
22
"name": "metamap-cordova-plugin",
3-
"version": "2.6.2",
3+
"version": "2.6.4",
44
"description": "MetaMap SDK plugin",
55
"cordova": {
66
"id": "metamap-cordova-plugin",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<source url="https://cdn.cocoapods.org/" />
3939
</config>
4040
<pods use-frameworks="true">
41-
<pod name="MetaMapSDK" spec="3.23.0" />
41+
<pod name="MetaMapSDK" spec="3.23.3" />
4242
</pods>
4343
</podspec>
4444

src/android/MetaMapGlobalIDSDK.java

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,24 @@ public void run() {
8989
2576,
9090
configurationId,
9191
encryptionConfigurationId,
92-
(identityId, verificationId) -> {
93-
Log.d("MetaMap", "📦 verificationCreated triggered");
94-
if (mOnCallback != null) {
95-
JSONObject json = new JSONObject();
96-
try {
97-
json.put("eventType", "created");
98-
json.put("identityId", identityId != null ? identityId : "");
99-
json.put("verificationID", verificationId != null ? verificationId : "");
100-
} catch (JSONException e) {
101-
e.printStackTrace();
92+
new kotlin.jvm.functions.Function2<String, String, kotlin.Unit>() {
93+
@Override
94+
public kotlin.Unit invoke(String identityId, String verificationId) {
95+
Log.d("MetaMap", "📦 verificationCreated triggered");
96+
if (mOnCallback != null) {
97+
JSONObject json = new JSONObject();
98+
try {
99+
json.put("eventType", "created");
100+
json.put("identityId", identityId != null ? identityId : "");
101+
json.put("verificationID", verificationId != null ? verificationId : "");
102+
} catch (JSONException e) {
103+
e.printStackTrace();
104+
}
105+
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, json);
106+
pluginResult.setKeepCallback(true);
107+
mOnCallback.sendPluginResult(pluginResult);
102108
}
103-
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, json);
104-
pluginResult.setKeepCallback(true);
105-
mOnCallback.sendPluginResult(pluginResult);
109+
return kotlin.Unit.INSTANCE;
106110
}
107111
}
108112
);

0 commit comments

Comments
 (0)