react-native-risk-sdk 1.6.8 → 1.6.9

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,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.6.9
4
+
5
+ * Use primitive `long` hours for sync frequency in the RN bridge.
6
+
3
7
  ## 1.6.8
4
8
 
5
9
  * Update SDK Version
@@ -92,8 +92,8 @@ public class RiskSdkModule extends ReactContextBaseJavaModule {
92
92
  }
93
93
 
94
94
  @ReactMethod
95
- public void startPeriodicSync(long duration, TimeUnit unit) {
96
- FinBox.setSyncFrequency(duration, unit);
95
+ public void startPeriodicSync(long hours) {
96
+ FinBox.setSyncFrequency(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(Integer duration, TimeUnit unit) {
145
- FinBox.setSyncFrequency(duration, unit);
144
+ public void setSyncFrequency(long hours) {
145
+ FinBox.setSyncFrequency(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.8",
4
+ "version": "1.6.9",
5
5
  "description": "A Wrapper around the Device Connect Android SDK",
6
6
  "main": "index.js",
7
7
  "scripts": {