react-native-risk-sdk 1.6.9 → 1.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.7.1
4
+
5
+ * version bump
6
+
7
+
8
+ ## 1.7.0
9
+
10
+ * Use primitive `double` hours for sync frequency in the RN bridge.
11
+
3
12
  ## 1.6.9
4
13
 
5
14
  * Use primitive `long` hours for sync frequency in the RN bridge.
@@ -92,8 +92,8 @@ public class RiskSdkModule extends ReactContextBaseJavaModule {
92
92
  }
93
93
 
94
94
  @ReactMethod
95
- public void startPeriodicSync(long hours) {
96
- FinBox.setSyncFrequency(hours, TimeUnit.HOURS);
95
+ public void startPeriodicSync(double hours) {
96
+ FinBox.setSyncFrequency((long) hours, TimeUnit.HOURS);
97
97
  FinBox.startPeriodicSync();
98
98
  }
99
99
 
@@ -141,8 +141,8 @@ public class RiskSdkModule extends ReactContextBaseJavaModule {
141
141
  * @param duration Time to set the frequency
142
142
  */
143
143
  @ReactMethod
144
- public void setSyncFrequency(long hours) {
145
- FinBox.setSyncFrequency(hours, TimeUnit.HOURS);
144
+ public void setSyncFrequency(double hours) {
145
+ FinBox.setSyncFrequency((long) hours, TimeUnit.HOURS);
146
146
  }
147
147
 
148
148
  /**
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.6.9",
4
+ "version": "1.7.1",
5
5
  "description": "A Wrapper around the Device Connect Android SDK",
6
6
  "main": "index.js",
7
7
  "scripts": {