react-native-rook-sdk 2.1.0 → 2.1.2
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.
|
@@ -129,7 +129,7 @@ class RookLocalData (
|
|
|
129
129
|
{
|
|
130
130
|
when (it) {
|
|
131
131
|
SHSyncStatusWithData.RecordsNotFound -> {
|
|
132
|
-
promise.reject("
|
|
132
|
+
promise.reject("SamsungActivityEvents", "Records Not Found For Date: $date")
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
is SHSyncStatusWithData.Synced<List<SHActivityEvent>> -> {
|
|
@@ -178,7 +178,7 @@ class RookLocalData (
|
|
|
178
178
|
{
|
|
179
179
|
when (it) {
|
|
180
180
|
SyncStatusWithData.RecordsNotFound -> {
|
|
181
|
-
promise.reject("
|
|
181
|
+
promise.reject("HealthConnectPhysicalSummary", "Records Not Found For Date: $date")
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
is SyncStatusWithData.Synced<HCPhysicalSummary> -> {
|
|
@@ -17,16 +17,16 @@ struct EncodableDataSource: Encodable {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
private enum CodingKeys: String, CodingKey {
|
|
20
|
-
case
|
|
21
|
-
case
|
|
22
|
-
case
|
|
20
|
+
case name
|
|
21
|
+
case authorized
|
|
22
|
+
case imageUrl
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
func encode(to encoder: Encoder) throws {
|
|
26
26
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
27
27
|
|
|
28
|
-
try container.encode(dataSource.source, forKey: .
|
|
29
|
-
try container.encode(dataSource.status, forKey: .
|
|
30
|
-
try container.encode(dataSource.imageURL, forKey: .
|
|
28
|
+
try container.encode(dataSource.source, forKey: .name)
|
|
29
|
+
try container.encode(dataSource.status, forKey: .authorized)
|
|
30
|
+
try container.encode(dataSource.imageURL, forKey: .imageUrl)
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -19,7 +19,7 @@ struct EncodableDataSourceAuthorizer: Encodable {
|
|
|
19
19
|
private enum CodingKeys: String, CodingKey {
|
|
20
20
|
case dataSource
|
|
21
21
|
case authorized
|
|
22
|
-
case
|
|
22
|
+
case authorizationUrl
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
func encode(to encoder: Encoder) throws {
|
|
@@ -27,6 +27,6 @@ struct EncodableDataSourceAuthorizer: Encodable {
|
|
|
27
27
|
|
|
28
28
|
try container.encode(authorizer.dataSource, forKey: .dataSource)
|
|
29
29
|
try container.encode(authorizer.authorized, forKey: .authorized)
|
|
30
|
-
try container.encode(authorizer.authorizationURL, forKey: .
|
|
30
|
+
try container.encode(authorizer.authorizationURL, forKey: .authorizationUrl)
|
|
31
31
|
}
|
|
32
32
|
}
|