@tryvital/vital-devices-react-native 5.4.1 → 5.4.3

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 @@ repositories {
129
129
  }
130
130
 
131
131
  def kotlin_version = getExtOrDefault('kotlinVersion')
132
- def vital_sdk_version = '4.2.1'
132
+ def vital_sdk_version = '4.2.2'
133
133
 
134
134
  dependencies {
135
135
  //noinspection GradleDynamicVersion
@@ -1,4 +1,4 @@
1
- VitalDevicesReactNative_kotlinVersion=1.8.10
1
+ VitalDevicesReactNative_kotlinVersion=2.0.21
2
2
  VitalDevicesReactNative_minSdkVersion=26
3
3
  VitalDevicesReactNative_targetSdkVersion=33
4
4
  VitalDevicesReactNative_compileSdkVersion=33
@@ -99,7 +99,7 @@ class VitalDevicesReactNativeModule(reactContext: ReactApplicationContext) :
99
99
  @ReactMethod
100
100
  private fun readLibre1(promise: Promise) {
101
101
  mainScope.launch {
102
- val activity = currentActivity ?: return@launch promise.reject("ReadError", "No active Android Activity")
102
+ val activity = reactApplicationContext.currentActivity ?: return@launch promise.reject("ReadError", "No active Android Activity")
103
103
  try {
104
104
  val reader = Libre1Reader.create(activity)
105
105
  val libre1 = reader.read()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-devices-react-native",
3
- "version": "5.4.1",
3
+ "version": "5.4.3",
4
4
  "description": "Client to access Vital's Endpoints",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -48,7 +48,7 @@
48
48
  "registry": "https://registry.npmjs.org/"
49
49
  },
50
50
  "dependencies": {
51
- "@tryvital/vital-core-react-native": "5.4.1",
51
+ "@tryvital/vital-core-react-native": "5.4.3",
52
52
  "react-native-permissions": "^3.6.1"
53
53
  },
54
54
  "peerDependencies": {