react-native-spike-sdk 2.3.3 → 2.3.5

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/README.md CHANGED
@@ -262,10 +262,11 @@ const data = await conn.extractData({
262
262
 
263
263
  // OR you can provide same day
264
264
  const today = new Date() // could be any day
265
- const data = await conn.extractData(
265
+ const data = await conn.extractData({
266
266
  SpikeDataTypes.steps,
267
267
  from: today,
268
- to: today)
268
+ to: today
269
+ });
269
270
  ```
270
271
 
271
272
  ```javascript
@@ -296,11 +297,12 @@ const data = await conn.extractAndPostData({
296
297
  });
297
298
 
298
299
  // OR you can provide same day
299
- const today = new Date() // could be any day
300
- const data = await conn.extractAndPostData(
301
- SpikeDataTypes.steps,
302
- from: today,
303
- to: today)
300
+ const today = new Date(); // could be any day
301
+ const data = await conn.extractAndPostData({
302
+ dataType: SpikeDataTypes.steps,
303
+ from: today,
304
+ to: today,
305
+ });
304
306
  ```
305
307
 
306
308
  ```javascript
@@ -76,7 +76,7 @@ dependencies {
76
76
  //noinspection GradleDynamicVersion
77
77
  implementation "com.facebook.react:react-android:0.71.3"
78
78
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
79
- implementation 'com.spikeapi.sdk:spike-sdk:3.0.15'
79
+ implementation 'com.spikeapi.sdk:spike-sdk:3.0.17'
80
80
  implementation 'androidx.core:core-ktx:1.9.0'
81
81
  implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
82
82
  implementation 'com.google.code.gson:gson:2.10.1'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-spike-sdk",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "Spike API for health and productivity data from wearables and IoT devices",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -5,7 +5,7 @@ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = "react-native-spike-sdk"
8
- s.version = "2.3.3"
8
+ s.version = "2.3.5"
9
9
  s.summary = "Spike API for health and productivity data from wearables and IoT devices"
10
10
 
11
11
  s.description = <<-DESC
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
25
25
  s.swift_version = "5"
26
26
 
27
27
  s.dependency "React-Core"
28
- s.dependency "SpikeSDK", "~> 2.2.1"
28
+ s.dependency "SpikeSDK", "~> 2.2.2"
29
29
 
30
30
  # Don't install the dependencies when we run `pod install` in the old architecture.
31
31
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then