@tryvital/vital-devices-react-native 4.0.0-beta.2 → 4.0.0

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.
Files changed (57) hide show
  1. package/android/build/.transforms/2db9af63fc633260f7ed5aaa5250d7bb/transformed/classes/classes_dex/classes.dex +0 -0
  2. package/android/build/.transforms/8fea68d1f462ae3dea2bf85c44cf813c/transformed/debug/debug_dex/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$Companion.dex +0 -0
  3. package/android/build/.transforms/8fea68d1f462ae3dea2bf85c44cf813c/transformed/debug/debug_dex/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readBloodPressure$1.dex +0 -0
  4. package/android/build/.transforms/8fea68d1f462ae3dea2bf85c44cf813c/transformed/debug/debug_dex/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readGlucoseMeter$1.dex +0 -0
  5. package/android/build/.transforms/8fea68d1f462ae3dea2bf85c44cf813c/transformed/debug/debug_dex/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readLibre1$1.dex +0 -0
  6. package/android/build/.transforms/8fea68d1f462ae3dea2bf85c44cf813c/transformed/debug/debug_dex/com/vitaldevicesreactnative/VitalDevicesReactNativeModule.dex +0 -0
  7. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  8. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$Companion.class +0 -0
  9. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readBloodPressure$1.class +0 -0
  10. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readGlucoseMeter$1.class +0 -0
  11. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readLibre1$1.class +0 -0
  12. package/android/build/intermediates/runtime_library_classes_dir/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule.class +0 -0
  13. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  14. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  15. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  16. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  17. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  18. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  19. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  20. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  21. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  22. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  23. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  24. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  25. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  26. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  27. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  28. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  29. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +1 -1
  33. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  34. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  49. package/android/build/tmp/kotlin-classes/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$Companion.class +0 -0
  50. package/android/build/tmp/kotlin-classes/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readBloodPressure$1.class +0 -0
  51. package/android/build/tmp/kotlin-classes/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readGlucoseMeter$1.class +0 -0
  52. package/android/build/tmp/kotlin-classes/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule$readLibre1$1.class +0 -0
  53. package/android/build/tmp/kotlin-classes/debug/com/vitaldevicesreactnative/VitalDevicesReactNativeModule.class +0 -0
  54. package/android/build.gradle +1 -1
  55. package/android/src/main/java/com/vitaldevicesreactnative/VitalDevicesReactNativeModule.kt +12 -7
  56. package/package.json +1 -1
  57. package/vital-devices-react-native.podspec +1 -1
@@ -130,7 +130,7 @@ repositories {
130
130
  }
131
131
 
132
132
  def kotlin_version = getExtOrDefault('kotlinVersion')
133
- def vital_sdk_version = '3.0.0-beta.2'
133
+ def vital_sdk_version = '3.0.0'
134
134
 
135
135
  dependencies {
136
136
  //noinspection GradleDynamicVersion
@@ -3,7 +3,7 @@ package com.vitaldevicesreactnative
3
3
  import android.util.Log
4
4
  import com.facebook.react.bridge.*
5
5
  import com.facebook.react.modules.core.DeviceEventManagerModule
6
- import io.tryvital.client.services.data.QuantitySamplePayload
6
+ import io.tryvital.client.services.data.LocalQuantitySample
7
7
  import io.tryvital.vitaldevices.*
8
8
  import io.tryvital.vitaldevices.devices.Libre1Reader
9
9
  import kotlinx.coroutines.*
@@ -200,22 +200,27 @@ class VitalDevicesReactNativeModule(reactContext: ReactApplicationContext) :
200
200
  }
201
201
  }
202
202
 
203
- private fun WritableNativeMap.mapSample(it: QuantitySamplePayload) {
204
- putString("id", it.id)
205
- putDouble("value", it.value.toDouble())
203
+ private fun WritableNativeMap.mapSample(it: LocalQuantitySample) {
204
+ if (it.id != null) {
205
+ putString("id", it.id)
206
+ }
207
+ putDouble("value", it.value)
206
208
  putString("unit", it.unit)
207
209
  putDouble("startDate", it.startDate.toEpochMilli().toDouble())
208
210
  putDouble("endDate", it.endDate.toEpochMilli().toDouble())
209
- putString("type", it.type)
211
+
212
+ if (it.type != null) {
213
+ putString("type", it.type!!.rawValue)
214
+ }
210
215
  }
211
216
 
212
217
  @ReactMethod
213
- fun addListener(eventName: String?) {
218
+ fun addListener(@Suppress("UNUSED_PARAMETER") eventName: String?) {
214
219
  // Keep: Required for RN built in Event Emitter Calls.
215
220
  }
216
221
 
217
222
  @ReactMethod
218
- fun removeListeners(count: Int) {
223
+ fun removeListeners(@Suppress("UNUSED_PARAMETER") count: Int) {
219
224
  // Keep: Required for RN built in Event Emitter Calls.
220
225
  }
221
226
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-devices-react-native",
3
- "version": "4.0.0-beta.2",
3
+ "version": "4.0.0",
4
4
  "description": "Client to access Vital's Endpoints",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "VitalDevices", "~> 1.0.0-rc.2"
20
+ s.dependency "VitalDevices", "~> 1.0.0"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then