react-native-mytatva-rn-sdk 1.2.27 → 1.2.29

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.
@@ -144,7 +144,10 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
144
144
 
145
145
  val pocDevice =
146
146
  RepositoryDevice.getInstance(BApplication.getContext()).latestDeviceIoThread
147
+
147
148
  if (pocDevice != null) {
149
+ Log.d("pocDevice logsss", pocDevice.toString())
150
+
148
151
  if (pocDevice.isUnBind) {
149
152
  postEventDataToAPI(
150
153
  pocDevice,
@@ -153,6 +156,8 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
153
156
  )
154
157
  }
155
158
  } else {
159
+ Log.d("pocDevice logsss", "Data null")
160
+
156
161
  postEventDataToAPI(
157
162
  pocDevice,
158
163
  DeviceStatus.TRANSMITTER_DISCONNECT.id,
@@ -185,11 +190,6 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
185
190
  val bleStatus = bluetoothAdapter?.isEnabled == true
186
191
  var status = ""
187
192
 
188
- Log.d("ble Status", bleStatus.toString())
189
- Log.d("device.isBoundAndConnect Status", device?.isBoundAndConnect.toString())
190
- Log.d("device.isUnBind Status", device?.isUnBind.toString())
191
- Log.d("device.isBoundButDisConnect Status", device?.isBoundButDisConnect.toString())
192
-
193
193
  status = if (mStatus.isEmpty()) {
194
194
  when {
195
195
  device?.isBoundAndConnect == true -> DeviceStatus.CONNECTED.id
@@ -462,6 +462,7 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
462
462
  token = userToken,
463
463
  responseListener = object : AuthenticateSDKService.ResponseListener {
464
464
  override fun onResponseSuccess(response: String) {
465
+ updateSyncMetadata(pocGlucose)
465
466
  Log.d("CGM Data", "Single glucose data uploaded successfully")
466
467
  }
467
468
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mytatva-rn-sdk",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "description": "a package to inject data into visit health pwa",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",