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

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 (27) hide show
  1. package/android/src/main/java/com/mytatvarnsdk/activity/SearchTransmitterActivity.kt +5 -1
  2. package/android/src/main/java/com/mytatvarnsdk/activity/StartCGMActivity.kt +0 -2
  3. package/android/src/main/res/color/radio_text_selector.xml +1 -1
  4. package/android/src/main/res/layout/activity_help.xml +0 -3
  5. package/android/src/main/res/values/styles.xml +103 -102
  6. package/ios/MyReactNativeBridge.m +113 -13
  7. package/ios/Storyboard/MainCGM.storyboard +44 -44
  8. package/ios/Support/Global.swift +11 -0
  9. package/ios/Support/GlobalYouTubePlayerView.swift +33 -0
  10. package/ios/TableViewCell/NoteTVC/NoteTVC.swift +37 -13
  11. package/ios/TableViewCell/NoteTVC/NoteTVC.xib +2 -2
  12. package/ios/TableViewCell/VIdeoTVC/VideoTVC.swift +10 -4
  13. package/ios/TableViewCell/WatchVideoTVC/WatchVideoTVC.swift +12 -0
  14. package/ios/TableViewCell/WatchVideoTVC/WatchVideoTVC.xib +11 -11
  15. package/ios/ViewControllers/AttachTransmitterViewController.swift +12 -0
  16. package/ios/ViewControllers/ChatWithExpertViewController.swift +1 -0
  17. package/ios/ViewControllers/ConnectToSensorViewController.swift +18 -0
  18. package/ios/ViewControllers/ConnectToTransmitterViewController.swift +15 -1
  19. package/ios/ViewControllers/ProvidePermissionViewController.swift +7 -0
  20. package/ios/ViewControllers/PutOnTheSensorViewController.swift +15 -1
  21. package/ios/ViewControllers/StartConnectionViewController.swift +12 -0
  22. package/ios/ViewModel/FinalViewModel.swift +138 -25
  23. package/ios/icon.xcassets/do_not_throw_sensor.imageset/Contents.json +23 -0
  24. package/ios/icon.xcassets/do_not_throw_sensor.imageset/image with cross.png +0 -0
  25. package/ios/icon.xcassets/do_not_throw_sensor.imageset/image with cross@2x.png +0 -0
  26. package/ios/icon.xcassets/do_not_throw_sensor.imageset/image with cross@3x.png +0 -0
  27. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="cQ9-ft-YLU">
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23727" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="cQ9-ft-YLU">
3
3
  <device id="retina6_12" orientation="portrait" appearance="light"/>
4
4
  <dependencies>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23721"/>
6
6
  <capability name="Named colors" minToolsVersion="9.0"/>
7
7
  <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
8
  <capability name="System colors in document resources" minToolsVersion="11.0"/>
@@ -18,18 +18,18 @@
18
18
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19
19
  <subviews>
20
20
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fFC-8f-zGO" customClass="CustomTopUIView" customModule="react_native_mytatva_rn_sdk">
21
- <rect key="frame" x="0.0" y="103" width="393" height="50"/>
21
+ <rect key="frame" x="0.0" y="162" width="393" height="50"/>
22
22
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
23
23
  <constraints>
24
24
  <constraint firstAttribute="height" constant="50" id="wjY-GE-Sah"/>
25
25
  </constraints>
26
26
  </view>
27
27
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="fh5-Gi-ykn">
28
- <rect key="frame" x="0.0" y="153" width="393" height="599"/>
28
+ <rect key="frame" x="0.0" y="212" width="393" height="506"/>
29
29
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
30
30
  </tableView>
31
31
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YhS-8W-Fy6" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
32
- <rect key="frame" x="16" y="752" width="361" height="66"/>
32
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
33
33
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
34
34
  <constraints>
35
35
  <constraint firstAttribute="height" constant="66" id="K3O-hb-Ury"/>
@@ -71,7 +71,7 @@
71
71
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
72
72
  <subviews>
73
73
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XDU-Zi-fE4" customClass="CustomStepProgressBar" customModule="react_native_mytatva_rn_sdk">
74
- <rect key="frame" x="0.0" y="109" width="393" height="50"/>
74
+ <rect key="frame" x="0.0" y="168" width="393" height="50"/>
75
75
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
76
76
  <constraints>
77
77
  <constraint firstAttribute="height" constant="50" id="K14-fi-MgF"/>
@@ -103,18 +103,18 @@
103
103
  </userDefinedRuntimeAttributes>
104
104
  </view>
105
105
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rSx-yY-DdK" customClass="CustomTopUIView" customModule="react_native_mytatva_rn_sdk">
106
- <rect key="frame" x="0.0" y="59" width="393" height="50"/>
106
+ <rect key="frame" x="0.0" y="118" width="393" height="50"/>
107
107
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
108
108
  <constraints>
109
109
  <constraint firstAttribute="height" constant="50" id="aiE-bd-1tZ"/>
110
110
  </constraints>
111
111
  </view>
112
112
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="1vf-ou-Qmv">
113
- <rect key="frame" x="0.0" y="159" width="393" height="593"/>
113
+ <rect key="frame" x="0.0" y="218" width="393" height="500"/>
114
114
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
115
115
  </tableView>
116
116
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AQl-Jn-Wa0" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
117
- <rect key="frame" x="16" y="752" width="361" height="66"/>
117
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
118
118
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
119
119
  <constraints>
120
120
  <constraint firstAttribute="height" constant="66" id="sIT-eW-BCD"/>
@@ -158,35 +158,35 @@
158
158
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
159
159
  <subviews>
160
160
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fH3-bH-YxA" customClass="CustomTopUIView" customModule="react_native_mytatva_rn_sdk">
161
- <rect key="frame" x="0.0" y="59" width="393" height="50"/>
161
+ <rect key="frame" x="0.0" y="118" width="393" height="50"/>
162
162
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
163
163
  <constraints>
164
164
  <constraint firstAttribute="height" constant="50" id="Tqw-Jl-0hv"/>
165
165
  </constraints>
166
166
  </view>
167
167
  <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="mandala" translatesAutoresizingMaskIntoConstraints="NO" id="crM-eS-ayc">
168
- <rect key="frame" x="0.0" y="666" width="393" height="194"/>
168
+ <rect key="frame" x="0.0" y="632" width="393" height="194"/>
169
169
  <constraints>
170
170
  <constraint firstAttribute="height" constant="194" id="hX5-gh-vZG"/>
171
171
  </constraints>
172
172
  </imageView>
173
173
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="i12-6A-QOu">
174
- <rect key="frame" x="0.0" y="159" width="393" height="593"/>
174
+ <rect key="frame" x="0.0" y="218" width="393" height="500"/>
175
175
  <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
176
176
  </tableView>
177
177
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CmY-eg-8go">
178
- <rect key="frame" x="0.0" y="744" width="393" height="108"/>
178
+ <rect key="frame" x="0.0" y="710" width="393" height="142"/>
179
179
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
180
180
  </view>
181
181
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XFB-fg-Bkm" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
182
- <rect key="frame" x="16" y="752" width="361" height="66"/>
182
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
183
183
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
184
184
  <constraints>
185
185
  <constraint firstAttribute="height" constant="66" id="ONd-Dx-0RW"/>
186
186
  </constraints>
187
187
  </view>
188
188
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="x0O-jV-obj" customClass="CustomStepProgressBar" customModule="react_native_mytatva_rn_sdk">
189
- <rect key="frame" x="0.0" y="109" width="393" height="50"/>
189
+ <rect key="frame" x="0.0" y="168" width="393" height="50"/>
190
190
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
191
191
  <constraints>
192
192
  <constraint firstAttribute="height" constant="50" id="XB7-fH-wfQ"/>
@@ -270,28 +270,28 @@
270
270
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
271
271
  <subviews>
272
272
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="haN-BL-ASF" customClass="CustomTopUIView" customModule="react_native_mytatva_rn_sdk">
273
- <rect key="frame" x="0.0" y="59" width="393" height="50"/>
273
+ <rect key="frame" x="0.0" y="118" width="393" height="50"/>
274
274
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
275
275
  <constraints>
276
276
  <constraint firstAttribute="height" constant="50" id="yW0-QC-kR5"/>
277
277
  </constraints>
278
278
  </view>
279
279
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="yzp-ig-pvY">
280
- <rect key="frame" x="0.0" y="159" width="393" height="593"/>
280
+ <rect key="frame" x="0.0" y="218" width="393" height="500"/>
281
281
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
282
282
  </tableView>
283
283
  <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="mandala" translatesAutoresizingMaskIntoConstraints="NO" id="hwc-Oa-iYH">
284
- <rect key="frame" x="0.0" y="666" width="393" height="194"/>
284
+ <rect key="frame" x="0.0" y="632" width="393" height="194"/>
285
285
  <constraints>
286
286
  <constraint firstAttribute="height" constant="194" id="QdS-Zu-X3b"/>
287
287
  </constraints>
288
288
  </imageView>
289
289
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="l0o-eD-Pb5">
290
- <rect key="frame" x="0.0" y="744" width="393" height="108"/>
290
+ <rect key="frame" x="0.0" y="710" width="393" height="142"/>
291
291
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
292
292
  </view>
293
293
  <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="Kbd-47-Mnv">
294
- <rect key="frame" x="16" y="752" width="361" height="66"/>
294
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
295
295
  <subviews>
296
296
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NeN-5b-i9Q" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
297
297
  <rect key="frame" x="0.0" y="0.0" width="172.66666666666666" height="66"/>
@@ -310,7 +310,7 @@
310
310
  </subviews>
311
311
  </stackView>
312
312
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4tM-0Q-AXJ" customClass="CustomStepProgressBar" customModule="react_native_mytatva_rn_sdk">
313
- <rect key="frame" x="0.0" y="109" width="393" height="50"/>
313
+ <rect key="frame" x="0.0" y="168" width="393" height="50"/>
314
314
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
315
315
  <constraints>
316
316
  <constraint firstAttribute="height" constant="50" id="e9u-51-9h6"/>
@@ -395,18 +395,18 @@
395
395
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
396
396
  <subviews>
397
397
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AkJ-se-Ei7" customClass="CustomTopUIView" customModule="react_native_mytatva_rn_sdk">
398
- <rect key="frame" x="0.0" y="59" width="393" height="50"/>
398
+ <rect key="frame" x="0.0" y="118" width="393" height="50"/>
399
399
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
400
400
  <constraints>
401
401
  <constraint firstAttribute="height" constant="50" id="g3g-P4-aP5"/>
402
402
  </constraints>
403
403
  </view>
404
404
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="trT-VU-g4T">
405
- <rect key="frame" x="0.0" y="159" width="393" height="593"/>
405
+ <rect key="frame" x="0.0" y="218" width="393" height="500"/>
406
406
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
407
407
  </tableView>
408
408
  <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="sKn-Lj-c6a">
409
- <rect key="frame" x="16" y="752" width="361" height="66"/>
409
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
410
410
  <subviews>
411
411
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5mf-WM-nZT" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
412
412
  <rect key="frame" x="0.0" y="0.0" width="172.66666666666666" height="66"/>
@@ -425,7 +425,7 @@
425
425
  </subviews>
426
426
  </stackView>
427
427
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kp5-Fq-Vw1" customClass="CustomStepProgressBar" customModule="react_native_mytatva_rn_sdk">
428
- <rect key="frame" x="0.0" y="109" width="393" height="50"/>
428
+ <rect key="frame" x="0.0" y="168" width="393" height="50"/>
429
429
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
430
430
  <constraints>
431
431
  <constraint firstAttribute="height" constant="50" id="Jlz-l1-bM6"/>
@@ -505,18 +505,18 @@
505
505
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
506
506
  <subviews>
507
507
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W82-vT-aEf" customClass="CustomTopUIView" customModule="react_native_mytatva_rn_sdk">
508
- <rect key="frame" x="0.0" y="59" width="393" height="50"/>
508
+ <rect key="frame" x="0.0" y="118" width="393" height="50"/>
509
509
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
510
510
  <constraints>
511
511
  <constraint firstAttribute="height" constant="50" id="PS5-9f-5RH"/>
512
512
  </constraints>
513
513
  </view>
514
514
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="gMI-um-05K">
515
- <rect key="frame" x="0.0" y="159" width="393" height="593"/>
515
+ <rect key="frame" x="0.0" y="218" width="393" height="500"/>
516
516
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
517
517
  </tableView>
518
518
  <stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="ybX-sX-E4M">
519
- <rect key="frame" x="16" y="752" width="361" height="66"/>
519
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
520
520
  <subviews>
521
521
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U5E-OC-0rd" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
522
522
  <rect key="frame" x="0.0" y="0.0" width="172.66666666666666" height="66"/>
@@ -535,7 +535,7 @@
535
535
  </subviews>
536
536
  </stackView>
537
537
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dhf-me-AEI" customClass="CustomStepProgressBar" customModule="react_native_mytatva_rn_sdk">
538
- <rect key="frame" x="0.0" y="109" width="393" height="50"/>
538
+ <rect key="frame" x="0.0" y="168" width="393" height="50"/>
539
539
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
540
540
  <constraints>
541
541
  <constraint firstAttribute="height" constant="50" id="5zv-tQ-qal"/>
@@ -610,7 +610,7 @@
610
610
  <navigationController automaticallyAdjustsScrollViewInsets="NO" id="cQ9-ft-YLU" sceneMemberID="viewController">
611
611
  <toolbarItems/>
612
612
  <navigationBar key="navigationBar" contentMode="scaleToFill" id="g1F-Kt-YV8">
613
- <rect key="frame" x="0.0" y="59" width="393" height="44"/>
613
+ <rect key="frame" x="0.0" y="118" width="393" height="44"/>
614
614
  <autoresizingMask key="autoresizingMask"/>
615
615
  </navigationBar>
616
616
  <nil name="viewControllers"/>
@@ -631,18 +631,18 @@
631
631
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
632
632
  <subviews>
633
633
  <tableView clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" bouncesZoom="NO" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="PkU-bi-Z7R">
634
- <rect key="frame" x="0.0" y="103" width="393" height="649"/>
634
+ <rect key="frame" x="0.0" y="162" width="393" height="556"/>
635
635
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
636
636
  </tableView>
637
637
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pPO-wM-DEK" customClass="CustomOverlayButton" customModule="react_native_mytatva_rn_sdk">
638
- <rect key="frame" x="16" y="752" width="361" height="66"/>
638
+ <rect key="frame" x="16" y="718" width="361" height="66"/>
639
639
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
640
640
  <constraints>
641
641
  <constraint firstAttribute="height" constant="66" id="lrs-IF-5kz"/>
642
642
  </constraints>
643
643
  </view>
644
644
  <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Qog-1G-Sn9">
645
- <rect key="frame" x="16" y="59" width="80" height="44"/>
645
+ <rect key="frame" x="16" y="118" width="80" height="44"/>
646
646
  <constraints>
647
647
  <constraint firstAttribute="width" constant="80" id="8jt-YZ-Opl"/>
648
648
  <constraint firstAttribute="height" constant="44" id="L2k-Wc-OCX"/>
@@ -689,7 +689,7 @@
689
689
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
690
690
  <subviews>
691
691
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fTl-aF-Jas" customClass="CustomView" customModule="MyTatvaCare" customModuleProvider="target">
692
- <rect key="frame" x="16" y="381.66666666666669" width="361" height="80"/>
692
+ <rect key="frame" x="16" y="347.66666666666669" width="361" height="80"/>
693
693
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
694
694
  <constraints>
695
695
  <constraint firstAttribute="height" constant="80" id="Zrr-vH-hGz"/>
@@ -701,16 +701,16 @@
701
701
  </userDefinedRuntimeAttributes>
702
702
  </view>
703
703
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="iv6-8Y-xdi">
704
- <rect key="frame" x="16" y="401.66666666666674" width="361" height="416.33333333333326"/>
704
+ <rect key="frame" x="16" y="367.66666666666674" width="361" height="416.33333333333326"/>
705
705
  <subviews>
706
706
  <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Khd-dl-lEo" customClass="CustomView" customModule="MyTatvaCare" customModuleProvider="target">
707
- <rect key="frame" x="16" y="133.66666666666669" width="329" height="149.66666666666669"/>
707
+ <rect key="frame" x="16" y="133.66666666666663" width="329" height="149.66666666666663"/>
708
708
  <subviews>
709
709
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Xvb-0o-mhH">
710
710
  <rect key="frame" x="0.0" y="0.0" width="329" height="58"/>
711
711
  <subviews>
712
712
  <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Important Note" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rjj-Gh-uNU">
713
- <rect key="frame" x="16" y="19" width="297" height="20.333333333333329"/>
713
+ <rect key="frame" x="16" y="19.000000000000057" width="297" height="20.333333333333329"/>
714
714
  <fontDescription key="fontDescription" name=".AppleSystemUIFont" family=".AppleSystemUIFont" pointSize="17"/>
715
715
  <nil key="textColor"/>
716
716
  <nil key="highlightedColor"/>
@@ -725,7 +725,7 @@
725
725
  </constraints>
726
726
  </view>
727
727
  <stackView opaque="NO" contentMode="scaleToFill" spacing="12" translatesAutoresizingMaskIntoConstraints="NO" id="yVH-6s-MTN">
728
- <rect key="frame" x="16" y="74" width="297" height="59.666666666666657"/>
728
+ <rect key="frame" x="16" y="74.000000000000057" width="297" height="59.666666666666657"/>
729
729
  <subviews>
730
730
  <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="If you have already put on the sensor then it is recommended to complete your journey" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xrZ-Sw-wjn">
731
731
  <rect key="frame" x="0.0" y="0.0" width="297" height="59.666666666666664"/>
@@ -803,7 +803,7 @@
803
803
  </constraints>
804
804
  </view>
805
805
  <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KNt-W5-PCU">
806
- <rect key="frame" x="329" y="396" width="32" height="32"/>
806
+ <rect key="frame" x="329" y="362" width="32" height="32"/>
807
807
  <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
808
808
  <state key="normal" image="ic_close_popup"/>
809
809
  <connections>
@@ -847,7 +847,7 @@
847
847
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
848
848
  <subviews>
849
849
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="acE-9b-zEU" customClass="CustomView" customModule="MyTatvaCare" customModuleProvider="target">
850
- <rect key="frame" x="16" y="498.33333333333326" width="361" height="80"/>
850
+ <rect key="frame" x="16" y="464.33333333333331" width="361" height="79.999999999999943"/>
851
851
  <color key="backgroundColor" systemColor="systemBackgroundColor"/>
852
852
  <constraints>
853
853
  <constraint firstAttribute="height" constant="80" id="vQ8-VT-xEb"/>
@@ -859,10 +859,10 @@
859
859
  </userDefinedRuntimeAttributes>
860
860
  </view>
861
861
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jBQ-Ld-Eau">
862
- <rect key="frame" x="16" y="518.33333333333337" width="361" height="299.66666666666663"/>
862
+ <rect key="frame" x="16" y="484.33333333333326" width="361" height="299.66666666666674"/>
863
863
  <subviews>
864
864
  <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nOY-sn-yyW" customClass="CustomView" customModule="MyTatvaCare" customModuleProvider="target">
865
- <rect key="frame" x="16" y="133.66666666666663" width="329" height="156"/>
865
+ <rect key="frame" x="16" y="133.66666666666669" width="329" height="156"/>
866
866
  <subviews>
867
867
  <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_settings" translatesAutoresizingMaskIntoConstraints="NO" id="qyt-bO-X2D">
868
868
  <rect key="frame" x="16" y="16" width="297" height="70"/>
@@ -906,7 +906,7 @@
906
906
  </userDefinedRuntimeAttributes>
907
907
  </view>
908
908
  <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="axE-kI-X3J">
909
- <rect key="frame" x="16" y="28.33333333333325" width="329" height="81.333333333333314"/>
909
+ <rect key="frame" x="16" y="28.333333333333307" width="329" height="81.333333333333314"/>
910
910
  <string key="text">If bluetooth permission is turned off. To continue syncing your CGM, please enable Bluetooth access for GoodFlip in your phone Settings</string>
911
911
  <fontDescription key="fontDescription" type="system" pointSize="17"/>
912
912
  <nil key="textColor"/>
@@ -934,7 +934,7 @@
934
934
  </constraints>
935
935
  </view>
936
936
  <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3VD-WB-QbJ">
937
- <rect key="frame" x="329" y="512.66666666666663" width="32" height="32"/>
937
+ <rect key="frame" x="329" y="478.66666666666669" width="32" height="32"/>
938
938
  <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
939
939
  <state key="normal" image="ic_close_popup"/>
940
940
  <connections>
@@ -6,11 +6,19 @@
6
6
  //
7
7
 
8
8
  import Foundation
9
+ import AVFoundation
10
+ import AVKit
11
+
9
12
 
10
13
  enum Enum_stroyboard: String {
11
14
  case Main = "MainCGM"
12
15
  }
13
16
 
17
+ var watchCGMVideo = "https://www.youtube.com/embed/r5Zemc4R044?si=RPvayD39VzsZuXsA"
18
+ var applyingTheSensor = "https://www.youtube.com/embed/1C7VK2d5niY?si=WnhABizZL-oRvhBV"
19
+ var connectionJourneyError = "https://www.youtube.com/embed/mVMBdUeTlhc?si=ODZSiDW96UqyFiZb"
20
+ var qrScanFailed = "https://www.youtube.com/embed/zRlFFdr-QD4?si=hjq4fQDysfkTOPLh"
21
+
14
22
  func loadImage(named: String) -> UIImage? {
15
23
  if let resourceBundleURL = Bundle(for: ImageTVC.self).url(forResource: "TatvaPodResources", withExtension: "bundle"),
16
24
  let resourceBundle = Bundle(url: resourceBundleURL) {
@@ -21,3 +29,6 @@ func loadImage(named: String) -> UIImage? {
21
29
  }
22
30
  return nil
23
31
  }
32
+
33
+
34
+
@@ -0,0 +1,33 @@
1
+ //
2
+ // GlobalYouTubePlayerView.swift
3
+ // TatvacareApp
4
+ //
5
+ // Created by The Coding Studio on 27/06/25.
6
+ //
7
+
8
+ import UIKit
9
+ import WebKit
10
+
11
+ class WebViewController: UIViewController {
12
+ var webView: WKWebView!
13
+ var videoURL: URL?
14
+
15
+ override func viewDidLoad() {
16
+ super.viewDidLoad()
17
+ view.backgroundColor = .white
18
+
19
+ // Setup WebView
20
+ let config = WKWebViewConfiguration()
21
+ config.allowsInlineMediaPlayback = true
22
+
23
+ webView = WKWebView(frame: view.bounds, configuration: config)
24
+ webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
25
+ view.addSubview(webView)
26
+
27
+ // Load video URL
28
+ if let url = videoURL {
29
+ let request = URLRequest(url: url)
30
+ webView.load(request)
31
+ }
32
+ }
33
+ }
@@ -14,32 +14,56 @@ class NoteTVC: UITableViewCell {
14
14
  @IBOutlet weak var imageViewLeft: UIImageView!
15
15
  @IBOutlet weak var heightConstraint: NSLayoutConstraint!
16
16
 
17
+
17
18
  override func awakeFromNib() {
18
19
  super.awakeFromNib()
19
- // Initialization code
20
-
21
- imageViewLeft.image = loadImage(named: "do_not_place_inside")
22
20
  labelTitle.text = "Important Note"
23
-
24
21
  labelTitle.font = FontManager.font(ofSize: 20, weight: .medium)
25
-
26
22
  labelTitle.textColor = CustomColor.shared.primaryBlack
27
-
28
- setImportantNote()
29
23
  }
24
+
25
+ func setImportantNote(isFromSuccessConnection: Bool) {
26
+ var first = ""
27
+ var second = ""
28
+
29
+ if isFromSuccessConnection {
30
+ imageViewLeft.image = loadImage(named: "do_not_throw_sensor")
31
+ first = "Don’t throw away the sensor case.\n"
32
+ second = "This might be used in case of any troubleshooting"
33
+ } else {
34
+ imageViewLeft.image = loadImage(named: "do_not_place_inside")
35
+ first = "Don't place your transmitter back in the charging pod.\n"
36
+ second = "Doing this will break connection with the app"
37
+ }
38
+
39
+ let paragraphStyle = NSMutableParagraphStyle()
40
+ paragraphStyle.lineSpacing = 4
30
41
 
31
- override func setSelected(_ selected: Bool, animated: Bool) {
32
- super.setSelected(selected, animated: animated)
42
+ let attributedString = NSMutableAttributedString(string: first, attributes: [
43
+ .paragraphStyle: paragraphStyle,
44
+ .font: FontManager.font(ofSize: 14, weight: .semibold),
45
+ .foregroundColor: CustomColor.shared.primaryBlack
46
+ ])
47
+
48
+ let secondAttributes: [NSAttributedString.Key: Any] = [
49
+ .paragraphStyle: paragraphStyle,
50
+ .foregroundColor: CustomColor.shared.primaryBlack,
51
+ .font: FontManager.font(ofSize: 14, weight: .regular)
52
+ ]
33
53
 
34
- // Configure the view for the selected state
54
+ let secondPart = NSAttributedString(string: second, attributes: secondAttributes)
55
+ attributedString.append(secondPart)
56
+ labelDesc.attributedText = attributedString
35
57
  }
58
+
59
+
36
60
  func setImportantNote() {
37
-
61
+ imageViewLeft.image = loadImage(named: "do_not_place_inside")
38
62
  let first = "Don't place your transmitter back in the charging pod.\n"
39
- let second = "Doing this will break connection with the app"
63
+ let second = "Don’t unlock your sensor before putting it the sensor on your skin"
40
64
 
41
65
  let paragraphStyle = NSMutableParagraphStyle()
42
- paragraphStyle.lineSpacing = 4 // Space in points between lines
66
+ paragraphStyle.lineSpacing = 4
43
67
 
44
68
  let attributedString = NSMutableAttributedString(string: first, attributes: [
45
69
  .paragraphStyle: paragraphStyle,
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23727" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
3
  <device id="retina6_12" orientation="portrait" appearance="light"/>
4
4
  <dependencies>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23721"/>
6
6
  <capability name="Safe area layout guides" minToolsVersion="9.0"/>
7
7
  <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8
8
  </dependencies>
@@ -8,21 +8,27 @@
8
8
  import UIKit
9
9
 
10
10
  class VideoTVC: UITableViewCell {
11
+
11
12
  @IBOutlet weak var imageViewBackground: UIImageView!
12
13
  @IBOutlet weak var imageViewPlay: UIImageView!
13
14
  @IBOutlet weak var buttonPlay: UIButton!
14
15
 
16
+ var onPlayVideo: (() -> Void)?
17
+
15
18
  override func awakeFromNib() {
16
19
  super.awakeFromNib()
17
20
  // Initialization code
18
21
  imageViewPlay.loadGif(named: "play")
19
22
  imageViewBackground.contentMode = .scaleAspectFill
20
- }
23
+ imageViewPlay.isUserInteractionEnabled = true
24
+ let tapGesture = UITapGestureRecognizer(target: self, action: #selector(playButtonTapped))
25
+ imageViewPlay.addGestureRecognizer(tapGesture)
21
26
 
22
- override func setSelected(_ selected: Bool, animated: Bool) {
23
- super.setSelected(selected, animated: animated)
27
+ }
24
28
 
25
- // Configure the view for the selected state
29
+ @objc func playButtonTapped() {
30
+ onPlayVideo?()
26
31
  }
32
+
27
33
 
28
34
  }
@@ -15,13 +15,20 @@ class WatchVideoTVC: UITableViewCell {
15
15
 
16
16
  @IBOutlet var ic_play: UIImageView!
17
17
 
18
+ var onPlayVideo: (() -> Void)?
19
+
18
20
  override func awakeFromNib() {
19
21
  super.awakeFromNib()
20
22
  // Initialization code
21
23
  ic_play.image = loadImage(named: "ic_play")
24
+ ic_play.isUserInteractionEnabled = true
22
25
  descLabel.textColor = CustomColor.shared.gray
23
26
  labelDetails.textColor = CustomColor.shared.indigo
24
27
 
28
+
29
+ let tapGesture = UITapGestureRecognizer(target: self, action: #selector(playButtonTapped))
30
+ ic_play.addGestureRecognizer(tapGesture)
31
+
25
32
  descLabel.font = FontManager.font(ofSize: 14, weight: .regular)
26
33
  labelDetails.font = FontManager.font(ofSize: 14, weight: .regular)
27
34
 
@@ -37,4 +44,9 @@ class WatchVideoTVC: UITableViewCell {
37
44
  // Configure the view for the selected state
38
45
  }
39
46
 
47
+ @objc func playButtonTapped() {
48
+ onPlayVideo?()
49
+ }
50
+
51
+
40
52
  }
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23727" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
3
  <device id="retina6_12" orientation="portrait" appearance="light"/>
4
4
  <dependencies>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23721"/>
6
6
  <capability name="Safe area layout guides" minToolsVersion="9.0"/>
7
7
  <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8
8
  </dependencies>
@@ -19,15 +19,6 @@
19
19
  <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hRp-m4-Tuq" customClass="CustomView" customModule="react_native_mytatva_rn_sdk">
20
20
  <rect key="frame" x="16" y="35" width="355" height="50"/>
21
21
  <subviews>
22
- <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_play" translatesAutoresizingMaskIntoConstraints="NO" id="Umd-MQ-s3f">
23
- <rect key="frame" x="16" y="13" width="24" height="24"/>
24
- <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
25
- <color key="tintColor" red="0.26666666666666666" green="0.29803921568627451" blue="0.90588235294117647" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
26
- <constraints>
27
- <constraint firstAttribute="height" constant="24" id="1Ee-Ed-JVm"/>
28
- <constraint firstAttribute="width" constant="24" id="WkM-t4-OJ6"/>
29
- </constraints>
30
- </imageView>
31
22
  <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="----" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="UQS-v6-r3g">
32
23
  <rect key="frame" x="56" y="8" width="283" height="34"/>
33
24
  <fontDescription key="fontDescription" type="system" pointSize="17"/>
@@ -46,6 +37,15 @@
46
37
  <rect key="frame" x="0.0" y="0.0" width="355" height="50"/>
47
38
  <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
48
39
  </button>
40
+ <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_play" translatesAutoresizingMaskIntoConstraints="NO" id="Umd-MQ-s3f">
41
+ <rect key="frame" x="16" y="13" width="24" height="24"/>
42
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
43
+ <color key="tintColor" red="0.26666666666666666" green="0.29803921568627451" blue="0.90588235294117647" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
44
+ <constraints>
45
+ <constraint firstAttribute="height" constant="24" id="1Ee-Ed-JVm"/>
46
+ <constraint firstAttribute="width" constant="24" id="WkM-t4-OJ6"/>
47
+ </constraints>
48
+ </imageView>
49
49
  </subviews>
50
50
  <color key="backgroundColor" red="0.7803921568627451" green="0.84313725490196079" blue="0.99607843137254903" alpha="1" colorSpace="calibratedRGB"/>
51
51
  <constraints>