react-native-mytatva-rn-sdk 1.2.33 → 1.2.34

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.
@@ -321,18 +321,12 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
321
321
  fun reconnectCgmTracky(token: String) {
322
322
  try {
323
323
  userToken = token
324
- val intent = if (areAllPermissionsGranted()) {
325
- Intent(currentActivity, SearchTransmitterActivity::class.java).putExtra(
324
+ currentActivity?.startActivity(
325
+ Intent(currentActivity, StartCGMActivity::class.java).putExtra(
326
326
  "IsForReconnect",
327
327
  true
328
328
  )
329
- } else {
330
- Intent(currentActivity, PermissionActivity::class.java).putExtra(
331
- "IsForReconnect",
332
- true
333
- )
334
- }
335
- currentActivity?.startActivity(intent)
329
+ )
336
330
  } catch (e: Exception) {
337
331
  Log.e("reconnectCgmTracky", "reconnectCgmTracky: ${e.message}")
338
332
  }
@@ -348,27 +342,6 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
348
342
  }
349
343
  }
350
344
 
351
- private fun areAllPermissionsGranted(): Boolean {
352
- val requiredPermissions = mutableListOf<String>()
353
-
354
- // Add Bluetooth permissions
355
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
356
- requiredPermissions.addAll(PermissionUtils.BLUETOOTH_S)
357
- }
358
-
359
- // Add location permissions
360
- requiredPermissions.addAll(PermissionUtils.LOCAL_PERMISSION)
361
-
362
- // Add camera permission
363
- requiredPermissions.addAll(PermissionUtils.CAMERA_PERMISSION)
364
-
365
- return requiredPermissions.all {
366
- ContextCompat.checkSelfPermission(
367
- mReactContext!!,
368
- it
369
- ) == PackageManager.PERMISSION_GRANTED
370
- }
371
- }
372
345
 
373
346
  @ReactMethod
374
347
  fun observeGlucoseData(token: String) {
@@ -136,8 +136,8 @@ class ConnectSensorActivity : BaseBleActivity() {
136
136
  binding.btnSupport.tvProceed.text = "Contact Support"
137
137
  binding.btnRetry.tvProceed.text = "Retry"
138
138
 
139
- binding.btnWatchDemo.post {
140
- binding.btnWatchDemo.setOnClickListener {
139
+ binding.llWatchDemo.post {
140
+ binding.llWatchDemo.setOnClickListener {
141
141
  Log.d("CLICK", "Layout Clicked")
142
142
  startActivity(
143
143
  Intent(this, VideoActivity::class.java).putExtra("VideoId", "zRlFFdr-QD4")
@@ -318,6 +318,13 @@ class ConnectSensorActivity : BaseBleActivity() {
318
318
  ProgressManagement.getInstance().dismissWait(this)
319
319
  if (isForReconnect) {
320
320
  sendDataToRN("")
321
+ startActivity(
322
+ Intent(this, SensorConnectSuccessActivity::class.java)
323
+ .putExtra(
324
+ "IsForReconnect",
325
+ true
326
+ )
327
+ )
321
328
  } else {
322
329
  startActivity(Intent(this, SensorConnectSuccessActivity::class.java))
323
330
  }
@@ -130,8 +130,8 @@ class SearchTransmitterActivity : BaseBleActivity() {
130
130
  binding.btnSupport.tvProceed.text = "Contact Support"
131
131
  binding.btnRetry.tvProceed.text = "Retry"
132
132
 
133
- binding.btnWatchDemo.post {
134
- binding.btnWatchDemo.setOnClickListener {
133
+ binding.llWatchDemo.post {
134
+ binding.llWatchDemo.setOnClickListener {
135
135
  Log.d("CLICK", "Layout Clicked")
136
136
  val intent = Intent(this, VideoActivity::class.java)
137
137
  intent.putExtra("VideoId", "zRlFFdr-QD4")
@@ -36,127 +36,138 @@ import java.util.Locale
36
36
 
37
37
 
38
38
  class SensorConnectSuccessActivity : AppCompatActivity() {
39
- private lateinit var binding: ActivitySensorConnectSuccessBinding
40
- lateinit var authenticateSDKService: AuthenticateSDKService
41
- private val job = Job()
42
- private val scope = CoroutineScope(Dispatchers.IO + job)
43
-
44
- override fun onCreate(savedInstanceState: Bundle?) {
45
- super.onCreate(savedInstanceState)
46
- binding = ActivitySensorConnectSuccessBinding.inflate(layoutInflater)
47
- enableEdgeToEdge()
48
- setContentView(binding.root)
49
- ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
50
- val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
51
- v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
52
- insets
53
- }
39
+ private lateinit var binding: ActivitySensorConnectSuccessBinding
40
+ lateinit var authenticateSDKService: AuthenticateSDKService
41
+ private val job = Job()
42
+ private val scope = CoroutineScope(Dispatchers.IO + job)
43
+ private var isForReconnect: Boolean = false
44
+
45
+ override fun onCreate(savedInstanceState: Bundle?) {
46
+ super.onCreate(savedInstanceState)
47
+ binding = ActivitySensorConnectSuccessBinding.inflate(layoutInflater)
48
+ enableEdgeToEdge()
49
+ setContentView(binding.root)
50
+ ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
51
+ val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
52
+ v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
53
+ insets
54
+ }
54
55
 
55
- init()
56
- }
56
+ init()
57
+ }
57
58
 
58
- private fun init() {
59
- val formatter = SimpleDateFormat("hh:mm a", Locale.getDefault())
60
- binding.tvDateTime.text = "Connected on ${formatter.format(Date()).uppercase()}"
59
+ private fun init() {
60
+ isForReconnect = intent.getBooleanExtra("IsForReconnect", false)
61
61
 
62
- Glide.with(this)
63
- .asGif()
64
- .load(R.drawable.success_anim)
65
- .into(binding.ivSuccess)
62
+ val formatter = SimpleDateFormat("hh:mm a", Locale.getDefault())
63
+ binding.tvDateTime.text = "Connected on ${formatter.format(Date()).uppercase()}"
66
64
 
67
- authenticateSDKService = AuthenticateSDKService(scope = scope)
65
+ Glide.with(this)
66
+ .asGif()
67
+ .load(R.drawable.success_anim)
68
+ .into(binding.ivSuccess)
68
69
 
69
- binding.toolbar.btnWhatsapp.setOnClickListener {
70
- startActivity(Intent(this, HelpActivity::class.java))
71
- }
70
+ authenticateSDKService = AuthenticateSDKService(scope = scope)
72
71
 
73
- binding.toolbar.btnWatchDemo.setOnClickListener {
74
- startActivity(
75
- Intent(this, VideoActivity::class.java).putExtra("VideoId", "r5Zemc4R044")
76
- )
77
- }
72
+ binding.toolbar.btnWhatsapp.setOnClickListener {
73
+ startActivity(Intent(this, HelpActivity::class.java))
74
+ }
78
75
 
79
- binding.commonButton.btnProceed.setOnClickListener {
80
- startActivity(Intent(this, PlaceSensorActivity::class.java))
81
- finish()
82
- }
76
+ binding.toolbar.btnWatchDemo.setOnClickListener {
77
+ startActivity(
78
+ Intent(this, VideoActivity::class.java).putExtra("VideoId", "r5Zemc4R044")
79
+ )
80
+ }
83
81
 
84
- binding.toolbar.btnClose.setOnClickListener {
85
- openExitDialog()
86
- }
82
+ binding.commonButton.btnProceed.setOnClickListener {
83
+ if (isForReconnect) {
84
+ startActivity(Intent(this, PlaceTransmitterActivity::class.java))
85
+ } else {
86
+ startActivity(Intent(this, PlaceSensorActivity::class.java))
87
+ }
88
+ finish()
89
+ }
87
90
 
88
- val callback: OnBackPressedCallback = object : OnBackPressedCallback(true) {
89
- override fun handleOnBackPressed() {
90
- openExitDialog()
91
- }
92
- }
93
- onBackPressedDispatcher.addCallback(this, callback)
94
-
95
- postEventDataToAPI()
96
- }
97
-
98
- private fun postEventDataToAPI() {
99
- val sharedPreferencesLibraryUtil = SharedPreferencesLibraryUtil(this)
100
- val information = sharedPreferencesLibraryUtil.qrInformation
101
-
102
- val rawData = JSONObject()
103
- rawData.put("transmitterName", information.transmitterName)
104
- rawData.put("SensorId", information.sensor)
105
- rawData.put("R", information.r)
106
- rawData.put("K", information.k)
107
- rawData.put("Sensor", information.sensor)
108
- rawData.put("timeInMillis", information.timeInMillis)
109
-
110
- val obj = JSONObject()
111
- obj.put("sensorId", information.sensor)
112
- obj.put("status", DeviceStatus.CONNECTED.id)
113
- obj.put("rawData", rawData)
114
-
115
- authenticateSDKService.postDeviceData(
116
- environment = if ("uat".uppercase() == "PROD") TATVA_ENVIRONMENT.PROD else TATVA_ENVIRONMENT.STAGE,
117
- data = obj.toString(),
118
- token = CgmTrackyLibModule.userToken,
119
- loaderListener = object : LoaderListener {
120
- override fun onShowLoader() {
121
- ProgressManagement.getInstance()
122
- .showWait(this@SensorConnectSuccessActivity, ProgressType.PROGRESSDIALOG_CONNECT, null)
91
+ binding.toolbar.btnClose.setOnClickListener {
92
+ openExitDialog()
123
93
  }
124
94
 
125
- override fun onHideLoader() {
126
- ProgressManagement.getInstance().dismissWait(this@SensorConnectSuccessActivity)
95
+ val callback: OnBackPressedCallback = object : OnBackPressedCallback(true) {
96
+ override fun handleOnBackPressed() {
97
+ openExitDialog()
98
+ }
127
99
  }
128
- }
129
- )
130
- }
100
+ onBackPressedDispatcher.addCallback(this, callback)
101
+
102
+ postEventDataToAPI()
103
+ }
104
+
105
+ private fun postEventDataToAPI() {
106
+ val sharedPreferencesLibraryUtil = SharedPreferencesLibraryUtil(this)
107
+ val information = sharedPreferencesLibraryUtil.qrInformation
108
+
109
+ val rawData = JSONObject()
110
+ rawData.put("transmitterName", information.transmitterName)
111
+ rawData.put("SensorId", information.sensor)
112
+ rawData.put("R", information.r)
113
+ rawData.put("K", information.k)
114
+ rawData.put("Sensor", information.sensor)
115
+ rawData.put("timeInMillis", information.timeInMillis)
116
+
117
+ val obj = JSONObject()
118
+ obj.put("sensorId", information.sensor)
119
+ obj.put("status", DeviceStatus.CONNECTED.id)
120
+ obj.put("rawData", rawData)
121
+
122
+ authenticateSDKService.postDeviceData(
123
+ environment = if ("uat".uppercase() == "PROD") TATVA_ENVIRONMENT.PROD else TATVA_ENVIRONMENT.STAGE,
124
+ data = obj.toString(),
125
+ token = CgmTrackyLibModule.userToken,
126
+ loaderListener = object : LoaderListener {
127
+ override fun onShowLoader() {
128
+ ProgressManagement.getInstance()
129
+ .showWait(
130
+ this@SensorConnectSuccessActivity,
131
+ ProgressType.PROGRESSDIALOG_CONNECT,
132
+ null
133
+ )
134
+ }
135
+
136
+ override fun onHideLoader() {
137
+ ProgressManagement.getInstance().dismissWait(this@SensorConnectSuccessActivity)
138
+ }
139
+ }
140
+ )
141
+ }
131
142
 
132
- private fun openExitDialog() {
133
- val binding = ExitDialogBottomsheetBinding.inflate(layoutInflater)
143
+ private fun openExitDialog() {
144
+ val binding = ExitDialogBottomsheetBinding.inflate(layoutInflater)
134
145
 
135
- val dialog = Dialog(this)
136
- dialog.requestWindowFeature(Window.FEATURE_NO_TITLE)
137
- dialog.setContentView(binding.root)
146
+ val dialog = Dialog(this)
147
+ dialog.requestWindowFeature(Window.FEATURE_NO_TITLE)
148
+ dialog.setContentView(binding.root)
138
149
 
139
- val window = dialog.window
140
- window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
141
- window?.setGravity(Gravity.BOTTOM)
142
- window?.setBackgroundDrawable(Color.TRANSPARENT.toDrawable())
150
+ val window = dialog.window
151
+ window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
152
+ window?.setGravity(Gravity.BOTTOM)
153
+ window?.setBackgroundDrawable(Color.TRANSPARENT.toDrawable())
143
154
 
144
- binding.btnExit.tvProceed.text = "Exit"
155
+ binding.btnExit.tvProceed.text = "Exit"
145
156
 
146
- binding.btnExit.root.setOnClickListener(View.OnClickListener { v: View? ->
147
- finish()
148
- dialog.dismiss()
149
- })
157
+ binding.btnExit.root.setOnClickListener(View.OnClickListener { v: View? ->
158
+ finish()
159
+ dialog.dismiss()
160
+ })
150
161
 
151
- binding.btnCancel.root.setOnClickListener(View.OnClickListener { v: View? ->
152
- dialog.dismiss()
153
- })
162
+ binding.btnCancel.root.setOnClickListener(View.OnClickListener { v: View? ->
163
+ dialog.dismiss()
164
+ })
154
165
 
155
- binding.closeButton.setOnClickListener(View.OnClickListener { v: View? ->
156
- dialog.dismiss()
157
- })
166
+ binding.closeButton.setOnClickListener(View.OnClickListener { v: View? ->
167
+ dialog.dismiss()
168
+ })
158
169
 
159
- dialog.show()
160
- }
170
+ dialog.show()
171
+ }
161
172
 
162
173
  }
@@ -2,7 +2,9 @@ package com.mytatvarnsdk.activity
2
2
 
3
3
  import android.app.Dialog
4
4
  import android.content.Intent
5
+ import android.content.pm.PackageManager
5
6
  import android.graphics.Color
7
+ import android.os.Build
6
8
  import android.os.Bundle
7
9
  import android.view.Gravity
8
10
  import android.view.View
@@ -11,9 +13,11 @@ import android.view.Window
11
13
  import androidx.activity.OnBackPressedCallback
12
14
  import androidx.activity.enableEdgeToEdge
13
15
  import androidx.appcompat.app.AppCompatActivity
16
+ import androidx.core.content.ContextCompat
14
17
  import androidx.core.graphics.drawable.toDrawable
15
18
  import androidx.core.view.ViewCompat
16
19
  import androidx.core.view.WindowInsetsCompat
20
+ import com.mytatvarnsdk.CgmTrackyLibModule.Companion.mReactContext
17
21
  import com.mytatvarnsdk.R
18
22
  import com.mytatvarnsdk.databinding.ActivityStartCgmactivityBinding
19
23
  import com.mytatvarnsdk.databinding.ExitDialogBottomsheetBinding
@@ -21,6 +25,7 @@ import com.mytatvarnsdk.databinding.ExitDialogBottomsheetBinding
21
25
 
22
26
  class StartCGMActivity : AppCompatActivity() {
23
27
  private lateinit var binding: ActivityStartCgmactivityBinding
28
+ private var isForReconnect: Boolean = false
24
29
 
25
30
  override fun onCreate(savedInstanceState: Bundle?) {
26
31
  super.onCreate(savedInstanceState)
@@ -37,9 +42,31 @@ class StartCGMActivity : AppCompatActivity() {
37
42
  }
38
43
 
39
44
  private fun init() {
40
- binding.commonButton.tvProceed.text = "Start Connection Journey"
45
+ isForReconnect = intent.getBooleanExtra("IsForReconnect", false)
46
+
47
+ if (isForReconnect) {
48
+ binding.commonButton.tvProceed.text = "Start Reconnection Journey"
49
+ } else {
50
+ binding.commonButton.tvProceed.text = "Start Connection Journey"
51
+ }
52
+
41
53
  binding.commonButton.btnProceed.setOnClickListener {
42
- startActivity(Intent(this@StartCGMActivity, PermissionActivity::class.java))
54
+ if (isForReconnect) {
55
+ val intent = if (areAllPermissionsGranted()) {
56
+ Intent(this, SearchTransmitterActivity::class.java).putExtra(
57
+ "IsForReconnect",
58
+ true
59
+ )
60
+ } else {
61
+ Intent(this, PermissionActivity::class.java).putExtra(
62
+ "IsForReconnect",
63
+ true
64
+ )
65
+ }
66
+ startActivity(intent)
67
+ } else {
68
+ startActivity(Intent(this@StartCGMActivity, PermissionActivity::class.java))
69
+ }
43
70
  finish()
44
71
  }
45
72
 
@@ -65,6 +92,29 @@ class StartCGMActivity : AppCompatActivity() {
65
92
  onBackPressedDispatcher.addCallback(this, callback)
66
93
  }
67
94
 
95
+ private fun areAllPermissionsGranted(): Boolean {
96
+ val requiredPermissions = mutableListOf<String>()
97
+
98
+ // Add Bluetooth permissions
99
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
100
+ requiredPermissions.addAll(PermissionUtils.BLUETOOTH_S)
101
+ }
102
+
103
+ // Add location permissions
104
+ requiredPermissions.addAll(PermissionUtils.LOCAL_PERMISSION)
105
+
106
+ // Add camera permission
107
+ requiredPermissions.addAll(PermissionUtils.CAMERA_PERMISSION)
108
+
109
+ return requiredPermissions.all {
110
+ ContextCompat.checkSelfPermission(
111
+ mReactContext!!,
112
+ it
113
+ ) == PackageManager.PERMISSION_GRANTED
114
+ }
115
+ }
116
+
117
+
68
118
  private fun openExitDialog() {
69
119
  val binding = ExitDialogBottomsheetBinding.inflate(layoutInflater)
70
120
 
@@ -440,8 +440,8 @@
440
440
  </androidx.constraintlayout.widget.ConstraintLayout>
441
441
 
442
442
 
443
- <androidx.appcompat.widget.LinearLayoutCompat
444
- android:id="@+id/btnWatchDemo"
443
+ <LinearLayout
444
+ android:id="@+id/llWatchDemo"
445
445
  android:layout_width="match_parent"
446
446
  android:layout_height="wrap_content"
447
447
  android:layout_marginHorizontal="20dp"
@@ -473,7 +473,7 @@
473
473
  android:textColor="#2D3282"
474
474
  android:textSize="@dimen/text_12sp" />
475
475
 
476
- </androidx.appcompat.widget.LinearLayoutCompat>
476
+ </LinearLayout>
477
477
 
478
478
  <TextView
479
479
  android:layout_width="0dp"
@@ -488,7 +488,7 @@
488
488
  android:textSize="14sp"
489
489
  app:layout_constraintEnd_toEndOf="parent"
490
490
  app:layout_constraintStart_toStartOf="parent"
491
- app:layout_constraintTop_toBottomOf="@id/btnWatchDemo" />
491
+ app:layout_constraintTop_toBottomOf="@id/llWatchDemo" />
492
492
 
493
493
 
494
494
  <androidx.appcompat.widget.LinearLayoutCompat
@@ -691,8 +691,8 @@
691
691
  </androidx.constraintlayout.widget.ConstraintLayout>
692
692
 
693
693
 
694
- <androidx.appcompat.widget.LinearLayoutCompat
695
- android:id="@+id/btnWatchDemo"
694
+ <LinearLayout
695
+ android:id="@+id/llWatchDemo"
696
696
  android:layout_width="match_parent"
697
697
  android:layout_height="wrap_content"
698
698
  android:layout_marginHorizontal="20dp"
@@ -724,7 +724,7 @@
724
724
  android:textColor="#2D3282"
725
725
  android:textSize="@dimen/text_12sp" />
726
726
 
727
- </androidx.appcompat.widget.LinearLayoutCompat>
727
+ </LinearLayout>
728
728
 
729
729
  <TextView
730
730
  android:layout_width="0dp"
@@ -739,7 +739,7 @@
739
739
  android:textSize="14sp"
740
740
  app:layout_constraintEnd_toEndOf="parent"
741
741
  app:layout_constraintStart_toStartOf="parent"
742
- app:layout_constraintTop_toBottomOf="@id/btnWatchDemo" />
742
+ app:layout_constraintTop_toBottomOf="@id/llWatchDemo" />
743
743
 
744
744
 
745
745
  <androidx.appcompat.widget.LinearLayoutCompat
@@ -1,198 +1,269 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
- xmlns:app="http://schemas.android.com/apk/res-auto"
4
- android:id="@+id/main"
5
- android:layout_width="match_parent"
6
- android:layout_height="match_parent"
7
- android:background="@android:color/white">
8
-
9
- <include
10
- android:id="@+id/toolbar"
11
- layout="@layout/layout_toolbar"
12
- app:layout_constraintEnd_toEndOf="parent"
13
- app:layout_constraintStart_toStartOf="parent"
14
- app:layout_constraintTop_toTopOf="parent" />
15
-
16
- <androidx.constraintlayout.widget.ConstraintLayout
17
- android:id="@+id/llProgress"
3
+ xmlns:app="http://schemas.android.com/apk/res-auto"
4
+ android:id="@+id/main"
18
5
  android:layout_width="match_parent"
19
- android:layout_height="wrap_content"
20
- app:layout_constraintTop_toBottomOf="@+id/toolbar">
6
+ android:layout_height="match_parent"
7
+ android:background="@android:color/white">
21
8
 
22
- <View
23
- android:id="@+id/view1"
24
- android:layout_width="0dp"
25
- android:layout_height="4dp"
26
- android:layout_marginHorizontal="5dp"
27
- android:layout_marginVertical="10dp"
28
- android:background="@drawable/bg_green_progress"
29
- app:layout_constraintEnd_toStartOf="@id/view2"
30
- app:layout_constraintHorizontal_chainStyle="spread"
31
- app:layout_constraintHorizontal_weight="1.3"
32
- app:layout_constraintStart_toStartOf="parent"
33
- app:layout_constraintTop_toTopOf="parent" />
9
+ <include
10
+ android:id="@+id/toolbar"
11
+ layout="@layout/layout_toolbar"
12
+ app:layout_constraintEnd_toEndOf="parent"
13
+ app:layout_constraintStart_toStartOf="parent"
14
+ app:layout_constraintTop_toTopOf="parent" />
34
15
 
35
- <TextView
36
- android:id="@+id/tvDivide1"
37
- android:layout_width="wrap_content"
38
- android:layout_height="wrap_content"
39
- android:layout_marginTop="5dp"
40
- android:fontFamily="@font/roboto_semibold"
41
- android:text="Connect Sensor"
42
- android:textColor="#299D6B"
43
- android:textSize="11sp"
44
- app:layout_constraintEnd_toEndOf="@+id/view3"
45
- app:layout_constraintStart_toStartOf="@+id/view3"
46
- app:layout_constraintTop_toBottomOf="@+id/view3" />
16
+ <androidx.constraintlayout.widget.ConstraintLayout
17
+ android:id="@+id/llProgress"
18
+ android:layout_width="match_parent"
19
+ android:layout_height="wrap_content"
20
+ app:layout_constraintTop_toBottomOf="@+id/toolbar">
47
21
 
48
- <View
49
- android:id="@+id/view2"
50
- android:layout_width="0dp"
51
- android:layout_height="4dp"
52
- android:layout_marginHorizontal="5dp"
53
- android:layout_marginVertical="10dp"
54
- android:background="@drawable/bg_green_progress"
55
- app:layout_constraintEnd_toStartOf="@id/view3"
56
- app:layout_constraintHorizontal_weight="1.3"
57
- app:layout_constraintStart_toEndOf="@id/view1"
58
- app:layout_constraintTop_toTopOf="parent" />
22
+ <View
23
+ android:id="@+id/view1"
24
+ android:layout_width="0dp"
25
+ android:layout_height="4dp"
26
+ android:layout_marginHorizontal="5dp"
27
+ android:layout_marginVertical="10dp"
28
+ android:background="@drawable/bg_green_progress"
29
+ app:layout_constraintEnd_toStartOf="@id/view2"
30
+ app:layout_constraintHorizontal_chainStyle="spread"
31
+ app:layout_constraintHorizontal_weight="1.3"
32
+ app:layout_constraintStart_toStartOf="parent"
33
+ app:layout_constraintTop_toTopOf="parent" />
59
34
 
60
- <TextView
61
- android:id="@+id/tvDivide2"
62
- android:layout_width="wrap_content"
63
- android:layout_height="wrap_content"
64
- android:layout_marginTop="5dp"
65
- android:fontFamily="@font/roboto_semibold"
66
- android:text="Place Sensor"
67
- android:textColor="#D0D5DD"
68
- android:textSize="11sp"
69
- app:layout_constraintEnd_toEndOf="@+id/view4"
70
- app:layout_constraintStart_toStartOf="@+id/view4"
71
- app:layout_constraintTop_toBottomOf="@+id/view4" />
35
+ <TextView
36
+ android:id="@+id/tvDivide1"
37
+ android:layout_width="wrap_content"
38
+ android:layout_height="wrap_content"
39
+ android:layout_marginTop="5dp"
40
+ android:fontFamily="@font/roboto_semibold"
41
+ android:text="Connect Sensor"
42
+ android:textColor="#299D6B"
43
+ android:textSize="11sp"
44
+ app:layout_constraintEnd_toEndOf="@+id/view3"
45
+ app:layout_constraintStart_toStartOf="@+id/view3"
46
+ app:layout_constraintTop_toBottomOf="@+id/view3" />
72
47
 
73
- <View
74
- android:id="@+id/view3"
75
- android:layout_width="0dp"
76
- android:layout_height="4dp"
77
- android:layout_marginHorizontal="5dp"
78
- android:layout_marginVertical="10dp"
79
- android:background="@drawable/bg_green_progress"
80
- app:layout_constraintEnd_toStartOf="@id/view4"
81
- app:layout_constraintHorizontal_weight="3"
82
- app:layout_constraintStart_toEndOf="@id/view2"
83
- app:layout_constraintTop_toTopOf="parent" />
48
+ <View
49
+ android:id="@+id/view2"
50
+ android:layout_width="0dp"
51
+ android:layout_height="4dp"
52
+ android:layout_marginHorizontal="5dp"
53
+ android:layout_marginVertical="10dp"
54
+ android:background="@drawable/bg_green_progress"
55
+ app:layout_constraintEnd_toStartOf="@id/view3"
56
+ app:layout_constraintHorizontal_weight="1.3"
57
+ app:layout_constraintStart_toEndOf="@id/view1"
58
+ app:layout_constraintTop_toTopOf="parent" />
59
+
60
+ <TextView
61
+ android:id="@+id/tvDivide2"
62
+ android:layout_width="wrap_content"
63
+ android:layout_height="wrap_content"
64
+ android:layout_marginTop="5dp"
65
+ android:fontFamily="@font/roboto_semibold"
66
+ android:text="Place Sensor"
67
+ android:textColor="#D0D5DD"
68
+ android:textSize="11sp"
69
+ app:layout_constraintEnd_toEndOf="@+id/view4"
70
+ app:layout_constraintStart_toStartOf="@+id/view4"
71
+ app:layout_constraintTop_toBottomOf="@+id/view4" />
72
+
73
+ <View
74
+ android:id="@+id/view3"
75
+ android:layout_width="0dp"
76
+ android:layout_height="4dp"
77
+ android:layout_marginHorizontal="5dp"
78
+ android:layout_marginVertical="10dp"
79
+ android:background="@drawable/bg_green_progress"
80
+ app:layout_constraintEnd_toStartOf="@id/view4"
81
+ app:layout_constraintHorizontal_weight="3"
82
+ app:layout_constraintStart_toEndOf="@id/view2"
83
+ app:layout_constraintTop_toTopOf="parent" />
84
+
85
+ <View
86
+ android:id="@+id/view4"
87
+ android:layout_width="0dp"
88
+ android:layout_height="4dp"
89
+ android:layout_marginHorizontal="5dp"
90
+ android:layout_marginVertical="10dp"
91
+ android:background="@drawable/bg_grey"
92
+ app:layout_constraintEnd_toStartOf="@id/view5"
93
+ app:layout_constraintHorizontal_weight="3"
94
+ app:layout_constraintStart_toEndOf="@id/view3"
95
+ app:layout_constraintTop_toTopOf="parent" />
96
+
97
+ <View
98
+ android:id="@+id/view5"
99
+ android:layout_width="0dp"
100
+ android:layout_height="4dp"
101
+ android:layout_marginHorizontal="5dp"
102
+ android:layout_marginVertical="10dp"
103
+ android:background="@drawable/bg_grey"
104
+ app:layout_constraintEnd_toEndOf="parent"
105
+ app:layout_constraintHorizontal_weight="1.3"
106
+ app:layout_constraintStart_toEndOf="@id/view4"
107
+ app:layout_constraintTop_toTopOf="parent" />
108
+
109
+ </androidx.constraintlayout.widget.ConstraintLayout>
84
110
 
85
- <View
86
- android:id="@+id/view4"
87
- android:layout_width="0dp"
88
- android:layout_height="4dp"
89
- android:layout_marginHorizontal="5dp"
90
- android:layout_marginVertical="10dp"
91
- android:background="@drawable/bg_grey"
92
- app:layout_constraintEnd_toStartOf="@id/view5"
93
- app:layout_constraintHorizontal_weight="3"
94
- app:layout_constraintStart_toEndOf="@id/view3"
95
- app:layout_constraintTop_toTopOf="parent" />
96
111
 
97
112
  <View
98
- android:id="@+id/view5"
99
- android:layout_width="0dp"
100
- android:layout_height="4dp"
101
- android:layout_marginHorizontal="5dp"
102
- android:layout_marginVertical="10dp"
103
- android:background="@drawable/bg_grey"
104
- app:layout_constraintEnd_toEndOf="parent"
105
- app:layout_constraintHorizontal_weight="1.3"
106
- app:layout_constraintStart_toEndOf="@id/view4"
107
- app:layout_constraintTop_toTopOf="parent" />
108
-
109
- </androidx.constraintlayout.widget.ConstraintLayout>
110
-
111
-
112
- <View
113
- android:id="@+id/divider"
114
- android:layout_width="match_parent"
115
- android:layout_height="2dp"
116
- android:layout_marginTop="5dp"
117
- android:background="#F2F4F7"
118
- app:layout_constraintTop_toBottomOf="@+id/llProgress" />
113
+ android:id="@+id/divider"
114
+ android:layout_width="match_parent"
115
+ android:layout_height="2dp"
116
+ android:layout_marginTop="5dp"
117
+ android:background="#F2F4F7"
118
+ app:layout_constraintTop_toBottomOf="@+id/llProgress" />
119
119
 
120
120
 
121
- <androidx.constraintlayout.widget.ConstraintLayout
122
- android:id="@+id/searchingLayout"
123
- android:layout_width="match_parent"
124
- android:layout_height="wrap_content"
125
- android:layout_marginStart="24dp"
126
- android:layout_marginTop="20dp"
127
- android:layout_marginEnd="24dp"
128
- android:background="@drawable/bg_light_blue"
129
- android:padding="16dp"
130
- app:layout_constraintEnd_toEndOf="parent"
131
- app:layout_constraintStart_toStartOf="parent"
132
- app:layout_constraintTop_toBottomOf="@id/divider">
133
-
134
-
135
- <androidx.appcompat.widget.AppCompatImageView
136
- android:id="@+id/ivCgm"
137
- android:layout_width="150dp"
138
- android:layout_height="140dp"
139
- app:layout_constraintBottom_toTopOf="@+id/tvTitle"
140
- app:layout_constraintEnd_toEndOf="parent"
141
- app:layout_constraintStart_toStartOf="parent"
142
- app:layout_constraintTop_toTopOf="parent"
143
- app:srcCompat="@drawable/img_cgm_device" />
144
-
145
-
146
- <androidx.appcompat.widget.AppCompatImageView
147
- android:id="@+id/ivSuccess"
148
- android:layout_width="35dp"
149
- android:layout_height="35dp"
150
- android:layout_marginBottom="25dp"
151
- app:layout_constraintBottom_toBottomOf="@+id/ivCgm"
152
- app:layout_constraintEnd_toEndOf="@+id/ivCgm"
153
- app:layout_constraintStart_toStartOf="@+id/ivCgm"
154
- app:layout_constraintTop_toTopOf="@+id/ivCgm" />
121
+ <androidx.constraintlayout.widget.ConstraintLayout
122
+ android:id="@+id/searchingLayout"
123
+ android:layout_width="match_parent"
124
+ android:layout_height="wrap_content"
125
+ android:layout_marginStart="24dp"
126
+ android:layout_marginTop="20dp"
127
+ android:layout_marginEnd="24dp"
128
+ android:background="@drawable/bg_light_blue"
129
+ android:padding="16dp"
130
+ app:layout_constraintEnd_toEndOf="parent"
131
+ app:layout_constraintStart_toStartOf="parent"
132
+ app:layout_constraintTop_toBottomOf="@id/divider">
155
133
 
156
134
 
157
- <TextView
158
- android:id="@+id/tvTitle"
159
- android:layout_width="0dp"
160
- android:layout_height="wrap_content"
161
- android:layout_marginTop="20dp"
162
- android:fontFamily="@font/playfairdisplay_bold"
163
- android:gravity="center"
164
- android:text="Sensor Connected Successfully"
165
- android:textAlignment="center"
166
- android:textColor="#101828"
167
- android:textSize="24sp"
168
- app:layout_constraintBottom_toTopOf="@+id/tvDateTime"
169
- app:layout_constraintEnd_toEndOf="parent"
170
- app:layout_constraintStart_toStartOf="parent"
171
- app:layout_constraintTop_toBottomOf="@+id/ivCgm" />
135
+ <androidx.appcompat.widget.AppCompatImageView
136
+ android:id="@+id/ivCgm"
137
+ android:layout_width="150dp"
138
+ android:layout_height="140dp"
139
+ app:layout_constraintBottom_toTopOf="@+id/tvTitle"
140
+ app:layout_constraintEnd_toEndOf="parent"
141
+ app:layout_constraintStart_toStartOf="parent"
142
+ app:layout_constraintTop_toTopOf="parent"
143
+ app:srcCompat="@drawable/img_cgm_device" />
144
+
145
+
146
+ <androidx.appcompat.widget.AppCompatImageView
147
+ android:id="@+id/ivSuccess"
148
+ android:layout_width="35dp"
149
+ android:layout_height="35dp"
150
+ android:layout_marginBottom="25dp"
151
+ app:layout_constraintBottom_toBottomOf="@+id/ivCgm"
152
+ app:layout_constraintEnd_toEndOf="@+id/ivCgm"
153
+ app:layout_constraintStart_toStartOf="@+id/ivCgm"
154
+ app:layout_constraintTop_toTopOf="@+id/ivCgm" />
155
+
156
+
157
+ <TextView
158
+ android:id="@+id/tvTitle"
159
+ android:layout_width="0dp"
160
+ android:layout_height="wrap_content"
161
+ android:layout_marginTop="20dp"
162
+ android:fontFamily="@font/playfairdisplay_bold"
163
+ android:gravity="center"
164
+ android:text="Sensor Connected Successfully"
165
+ android:textAlignment="center"
166
+ android:textColor="#101828"
167
+ android:textSize="24sp"
168
+ app:layout_constraintBottom_toTopOf="@+id/tvDateTime"
169
+ app:layout_constraintEnd_toEndOf="parent"
170
+ app:layout_constraintStart_toStartOf="parent"
171
+ app:layout_constraintTop_toBottomOf="@+id/ivCgm" />
172
+
173
+ <TextView
174
+ android:id="@+id/tvDateTime"
175
+ android:layout_width="0dp"
176
+ android:layout_height="wrap_content"
177
+ android:layout_marginTop="20dp"
178
+ android:fontFamily="@font/roboto_regular"
179
+ android:gravity="center"
180
+ android:text="Connected on 12:00PM, 03:00 PM"
181
+ android:textColor="#101828"
182
+ android:textSize="15sp"
183
+ app:layout_constraintBottom_toBottomOf="parent"
184
+ app:layout_constraintEnd_toEndOf="parent"
185
+ app:layout_constraintStart_toStartOf="parent"
186
+ app:layout_constraintTop_toBottomOf="@+id/tvTitle" />
187
+ </androidx.constraintlayout.widget.ConstraintLayout>
188
+
172
189
 
173
190
  <TextView
174
- android:id="@+id/tvDateTime"
175
- android:layout_width="0dp"
176
- android:layout_height="wrap_content"
177
- android:layout_marginTop="20dp"
178
- android:fontFamily="@font/roboto_regular"
179
- android:gravity="center"
180
- android:text="Connected on 12:00PM, 03:00 PM"
181
- android:textColor="#101828"
182
- android:textSize="15sp"
183
- app:layout_constraintBottom_toBottomOf="parent"
184
- app:layout_constraintEnd_toEndOf="parent"
185
- app:layout_constraintStart_toStartOf="parent"
186
- app:layout_constraintTop_toBottomOf="@+id/tvTitle" />
187
- </androidx.constraintlayout.widget.ConstraintLayout>
188
-
189
- <include
190
- android:id="@+id/commonButton"
191
- layout="@layout/layout_button"
192
- android:layout_width="match_parent"
193
- android:layout_height="wrap_content"
194
- app:layout_constraintBottom_toBottomOf="parent"
195
- app:layout_constraintEnd_toEndOf="parent"
196
- app:layout_constraintStart_toStartOf="parent" />
191
+ android:id="@+id/tvNote"
192
+ android:layout_width="match_parent"
193
+ android:layout_height="wrap_content"
194
+ android:layout_marginStart="24dp"
195
+ android:layout_marginTop="20dp"
196
+ android:layout_marginEnd="24dp"
197
+ android:background="@drawable/bg_yellow_top"
198
+ android:fontFamily="@font/roboto_bold"
199
+ android:padding="10dp"
200
+ android:text="Important Note"
201
+ android:textColor="#101828"
202
+ android:textSize="16sp"
203
+ app:layout_constraintEnd_toEndOf="parent"
204
+ app:layout_constraintStart_toStartOf="parent"
205
+ app:layout_constraintTop_toBottomOf="@+id/searchingLayout" />
206
+
207
+ <androidx.constraintlayout.widget.ConstraintLayout
208
+ android:layout_width="match_parent"
209
+ android:layout_height="wrap_content"
210
+ android:layout_marginStart="24dp"
211
+ android:layout_marginEnd="24dp"
212
+ android:background="@drawable/bg_yellow_bottom"
213
+ app:layout_constraintTop_toBottomOf="@+id/tvNote">
214
+
215
+ <androidx.appcompat.widget.AppCompatImageView
216
+ android:id="@+id/ivBox"
217
+ android:layout_width="100dp"
218
+ android:layout_height="100dp"
219
+ android:layout_margin="10dp"
220
+ app:layout_constraintBottom_toBottomOf="parent"
221
+ app:layout_constraintEnd_toStartOf="@+id/tvDesc1"
222
+ app:layout_constraintStart_toStartOf="parent"
223
+ app:layout_constraintTop_toTopOf="parent"
224
+ app:srcCompat="@drawable/img_sensor_cross" />
225
+
226
+ <TextView
227
+ android:id="@+id/tvDesc1"
228
+ android:layout_width="0dp"
229
+ android:layout_height="wrap_content"
230
+ android:fontFamily="@font/roboto_semibold"
231
+ android:text="Don’t throw away the sensor case. "
232
+ android:textColor="#101828"
233
+ android:textSize="14sp"
234
+ app:layout_constraintBottom_toTopOf="@+id/tvDesc2"
235
+ app:layout_constraintEnd_toEndOf="parent"
236
+ app:layout_constraintStart_toEndOf="@+id/ivBox"
237
+ app:layout_constraintTop_toTopOf="@id/ivBox"
238
+ app:layout_constraintVertical_chainStyle="packed" />
239
+
240
+
241
+ <TextView
242
+ android:id="@+id/tvDesc2"
243
+ android:layout_width="0dp"
244
+ android:layout_height="wrap_content"
245
+ android:layout_marginTop="5dp"
246
+ android:fontFamily="@font/roboto_regular"
247
+ android:paddingHorizontal="10dp"
248
+ android:text="This might be used in case of any troubleshooting"
249
+ android:textColor="#101828"
250
+ android:textSize="14sp"
251
+ app:layout_constraintBottom_toBottomOf="@id/ivBox"
252
+ app:layout_constraintEnd_toEndOf="parent"
253
+ app:layout_constraintStart_toEndOf="@+id/ivBox"
254
+ app:layout_constraintTop_toBottomOf="@+id/tvDesc1"
255
+ app:layout_constraintVertical_chainStyle="packed" />
256
+
257
+
258
+ </androidx.constraintlayout.widget.ConstraintLayout>
259
+
260
+ <include
261
+ android:id="@+id/commonButton"
262
+ layout="@layout/layout_button"
263
+ android:layout_width="match_parent"
264
+ android:layout_height="wrap_content"
265
+ app:layout_constraintBottom_toBottomOf="parent"
266
+ app:layout_constraintEnd_toEndOf="parent"
267
+ app:layout_constraintStart_toStartOf="parent" />
197
268
 
198
269
  </androidx.constraintlayout.widget.ConstraintLayout>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mytatva-rn-sdk",
3
- "version": "1.2.33",
3
+ "version": "1.2.34",
4
4
  "description": "a package to inject data into visit health pwa",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",