react-native-mytatva-rn-sdk 1.2.59 → 1.2.60

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.
@@ -192,16 +192,16 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
192
192
  val startDate = sensor.startDate
193
193
  val endDate = sensor.endDate
194
194
  val sensorId = sensor.sensorId
195
- val currentPatientId = patientId
195
+ /* val currentPatientId = patientId
196
196
  val lastPatientId = prefsHelper?.lastPatientId
197
- val lastSensorId = prefsHelper?.qrInformation?.sensor
197
+ val lastSensorId = prefsHelper?.qrInformation?.sensor */
198
198
 
199
199
 
200
- if (lastPatientId != null && lastSensorId != null && lastPatientId.isNotEmpty() && lastSensorId.isNotEmpty() && (lastPatientId != currentPatientId || lastSensorId != sensorId)) {
200
+ /* if (lastPatientId != null && lastSensorId != null && lastPatientId.isNotEmpty() && lastSensorId.isNotEmpty() && (lastPatientId != currentPatientId || lastSensorId != sensorId)) {
201
201
  Log.d("delete1111", "deleting database");
202
202
  mModel.clearAllGlucoseAndDeviceData()
203
203
  return
204
- }
204
+ } */
205
205
 
206
206
  if (isCurrentDateInRange(startDate, endDate)) {
207
207
  println("Current date is in range")
@@ -217,8 +217,9 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
217
217
  pocDevice.qrMessage, envType
218
218
  )
219
219
  } else {
220
- prefsHelper?.lastPatientId = currentPatientId
221
- prefsHelper?.qrInformation?.sensor = sensorId
220
+ /* prefsHelper?.lastPatientId = currentPatientId
221
+ prefsHelper?.qrInformation?.sensor = sensorId
222
+ */
222
223
  }
223
224
  } else {
224
225
  postEventDataToAPI(
@@ -597,10 +598,10 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
597
598
 
598
599
  CoroutineScope(Dispatchers.IO).launch {
599
600
  // Step 1: Clear DB first if needed
600
- if (isForClear) {
601
+ /* if (isForClear) {
601
602
  Log.d("delete1111-observe", "observe delete")
602
603
  mModel.clearAllGlucoseAndDeviceData() // suspend or blocking DB operation
603
- }
604
+ } */
604
605
 
605
606
  // Step 2: Back to main thread to stop observers and proceed
606
607
  withContext(Dispatchers.Main) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mytatva-rn-sdk",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "description": "a package to inject data into visit health pwa",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",