react-native-risk-sdk 1.3.0 → 1.3.1

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.
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="CompilerConfiguration">
4
- <bytecodeTargetLevel target="11" />
4
+ <bytecodeTargetLevel target="17" />
5
5
  </component>
6
6
  </project>
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ExternalStorageConfigurationManager" enabled="true" />
4
- <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="1.8" project-jdk-type="JavaSDK">
4
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
5
5
  <output url="file://$PROJECT_DIR$/build/classes" />
6
6
  </component>
7
7
  <component name="ProjectType">
@@ -8,6 +8,7 @@ import com.facebook.react.bridge.Callback;
8
8
  import com.facebook.react.bridge.ReactApplicationContext;
9
9
  import com.facebook.react.bridge.ReactContextBaseJavaModule;
10
10
  import com.facebook.react.bridge.ReactMethod;
11
+ import com.facebook.react.bridge.ReadableMap;
11
12
 
12
13
  import java.util.HashMap;
13
14
  import java.util.Map;
@@ -108,11 +109,12 @@ public class RiskSdkModule extends ReactContextBaseJavaModule {
108
109
  * Forward the FCM notifications to SDK
109
110
  */
110
111
  @ReactMethod
111
- public void forwardFinBoxNotificationToSDK(@NonNull Map<String, String> data) {
112
- if (MessagingService.forwardToFinBoxSDK(data)) {
112
+ public void forwardFinBoxNotificationToSDK(@NonNull ReadableMap data) {
113
+ Map<String, String> dataMap = (Map) data.toHashMap();
114
+ if (MessagingService.forwardToFinBoxSDK(dataMap)) {
113
115
  // FinBox Firebase Message
114
116
  MessagingService firebaseMessagingService = new MessagingService(reactContext);
115
- firebaseMessagingService.onMessageReceived(data);
117
+ firebaseMessagingService.onMessageReceived(dataMap);
116
118
  } else {
117
119
  // Nothing to do
118
120
  // Irrelevant to FinBox SDk
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-risk-sdk",
3
3
  "title": "React Native Risk Sdk",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "description": "A Wrapper around the Risk Android SDK",
6
6
  "main": "index.js",
7
7
  "scripts": {
File without changes