react-native-rook-sdk 2.1.0-rc.1 → 2.1.1

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.
@@ -92,7 +92,7 @@ dependencies {
92
92
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
93
93
  implementation 'com.google.code.gson:gson:2.13.0'
94
94
 
95
- implementation("io.tryrook.android:rook-sdk-samsung:1.0.0-beta01")
96
- implementation 'com.rookmotion.android:rook-sdk:2.3.1'
95
+ implementation("io.tryrook.android:rook-sdk-samsung:1.1.0")
96
+ implementation 'com.rookmotion.android:rook-sdk:2.4.0'
97
97
  }
98
98
 
@@ -129,7 +129,7 @@ class RookLocalData (
129
129
  {
130
130
  when (it) {
131
131
  SHSyncStatusWithData.RecordsNotFound -> {
132
- promise.reject("SamsungBodySummary", "Records Not Found For Date: $date")
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("HealthConnectSleepSummary", "Records Not Found For Date: $date")
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 source
21
- case status
22
- case imageURL
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: .source)
29
- try container.encode(dataSource.status, forKey: .status)
30
- try container.encode(dataSource.imageURL, forKey: .imageURL)
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rook-sdk",
3
- "version": "2.1.0-rc.1",
3
+ "version": "2.1.1",
4
4
  "description": "Rook sdk for apple health and health connect",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -30,7 +30,8 @@
30
30
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
31
31
  "prepare": "bob build",
32
32
  "release": "release-it",
33
- "prepare-deploy": "node prepare-deploy.js"
33
+ "prepare-deploy": "node prepare-deploy.js",
34
+ "check-status": "git status && git stash"
34
35
  },
35
36
  "keywords": [
36
37
  "react-native",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency "RookSDK", "1.7.8-beta.1"
19
+ s.dependency "RookSDK", "1.7.9"
20
20
 
21
21
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22
22
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.