react-native-spike-sdk 0.2.6 → 0.2.8
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/ios/SpikeSdk.swift
CHANGED
|
@@ -142,7 +142,7 @@ extension SpikeSdk: SpikeDelegate {
|
|
|
142
142
|
sendEvent(withName: "onInitializationFailure", body: [:])
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
func spikeDataResult(_ result: SpikeResult) {
|
|
145
|
+
func spikeDataResult(_ result: SpikeResult<SpikeResultData>) {
|
|
146
146
|
if let dataString = try? String(data: JSONEncoder().encode(result), encoding: .utf8){
|
|
147
147
|
sendEvent(withName: "onDataResult", body: ["resultJson": dataString])
|
|
148
148
|
} else {
|
|
@@ -154,7 +154,7 @@ extension SpikeSdk: SpikeDelegate {
|
|
|
154
154
|
sendEvent(withName: "onDataFailure", body: [:])
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
func spikeWorkoutDataResult(_ result:
|
|
157
|
+
func spikeWorkoutDataResult(_ result: SpikeResult<SpikeWorkoutResultData>) {
|
|
158
158
|
if let dataString = try? String(data: JSONEncoder().encode(result), encoding: .utf8){
|
|
159
159
|
sendEvent(withName: "onWorkoutDataResult", body: ["resultJson": dataString])
|
|
160
160
|
} else {
|
|
@@ -166,7 +166,7 @@ extension SpikeSdk: SpikeDelegate {
|
|
|
166
166
|
sendEvent(withName: "onWorkoutDataFailure", body: [:])
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
func spikeSleepAnalysisDataResult(_ result:
|
|
169
|
+
func spikeSleepAnalysisDataResult(_ result: SpikeResult<SpikeSleepAnalysisResultData>) {
|
|
170
170
|
if let dataString = try? String(data: JSONEncoder().encode(result), encoding: .utf8){
|
|
171
171
|
sendEvent(withName: "onSleepAnalysisDataResult", body: ["resultJson": dataString])
|
|
172
172
|
} else {
|
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 = "0.2.
|
|
8
|
+
s.version = "0.2.8"
|
|
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", "0.2.
|
|
28
|
+
s.dependency "SpikeSDK", "0.2.10"
|
|
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
|