react-native-spike-sdk 2.2.10 → 2.2.11
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 +14 -0
- package/package.json +1 -1
- package/react-native-spike-sdk.podspec +2 -2
package/README.md
CHANGED
|
@@ -259,6 +259,13 @@ According to the provided [SpikeDataType](#spike_data_types) result object may b
|
|
|
259
259
|
const data = await conn.extractData({
|
|
260
260
|
dataType: SpikeDataTypes.steps,
|
|
261
261
|
});
|
|
262
|
+
|
|
263
|
+
// OR you can provide same day
|
|
264
|
+
const today = new Date() // could be any day
|
|
265
|
+
const data = await conn.extractData(
|
|
266
|
+
SpikeDataTypes.steps,
|
|
267
|
+
from: today,
|
|
268
|
+
to: today)
|
|
262
269
|
```
|
|
263
270
|
|
|
264
271
|
```javascript
|
|
@@ -287,6 +294,13 @@ Method will return job information object.
|
|
|
287
294
|
const data = await conn.extractAndPostData({
|
|
288
295
|
dataType: SpikeDataTypes.steps,
|
|
289
296
|
});
|
|
297
|
+
|
|
298
|
+
// 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)
|
|
290
304
|
```
|
|
291
305
|
|
|
292
306
|
```javascript
|
package/package.json
CHANGED
|
@@ -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.2.
|
|
8
|
+
s.version = "2.2.11"
|
|
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.1.
|
|
28
|
+
s.dependency "SpikeSDK", "~> 2.1.14"
|
|
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
|