Skip to content

Commit

Permalink
Merge 02b7ffb into 1d128a6
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin authored Jan 29, 2025
2 parents 1d128a6 + 02b7ffb commit 5e89626
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
- Add SentryHub to all log messages in the Hub (#4753)
- More detailed log message when can't start session in SentryHub (#4752)

### Features

- Add `showMaskPreview` to `SentrySDK.replay` api to debug replay masking (#4761)

## 8.44.0-beta.1

### Fixes
Expand Down
25 changes: 17 additions & 8 deletions Samples/iOS-Swift/iOS-Swift/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FfQ-2y-q0S">
<rect key="frame" x="0.0" y="35" width="152" height="28"/>
<rect key="frame" x="0.0" y="31" width="152" height="28"/>
<accessibility key="accessibilityConfiguration" identifier="uiEventTests"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="UI event tests"/>
Expand All @@ -929,7 +929,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Did-Hh-ggK">
<rect key="frame" x="0.0" y="70" width="152" height="28"/>
<rect key="frame" x="0.0" y="62" width="152" height="28"/>
<accessibility key="accessibilityConfiguration" identifier="captureMessageButton"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="Message"/>
Expand All @@ -938,31 +938,31 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FrJ-bO-5YO">
<rect key="frame" x="0.0" y="105" width="152" height="28"/>
<rect key="frame" x="0.0" y="93.5" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="User Feedback"/>
<connections>
<action selector="captureUserFeedback:" destination="VqS-l1-kwe" eventType="touchUpInside" id="SKR-5v-uQQ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="b7Z-ga-DoR" userLabel="HighCpuLoad">
<rect key="frame" x="0.0" y="140" width="152" height="28"/>
<rect key="frame" x="0.0" y="124.5" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="HighCpuLoad"/>
<connections>
<action selector="highCPULoad:" destination="VqS-l1-kwe" eventType="touchUpInside" id="BDO-dm-Ckm"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="E4G-h5-Sio">
<rect key="frame" x="0.0" y="175" width="152" height="28"/>
<rect key="frame" x="0.0" y="155.5" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="permissions"/>
<connections>
<action selector="permissions:" destination="VqS-l1-kwe" eventType="touchUpInside" id="XBK-Ht-N5S"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YeN-3i-awu">
<rect key="frame" x="0.0" y="210" width="152" height="28"/>
<rect key="frame" x="0.0" y="186.5" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Flush"/>
Expand All @@ -971,7 +971,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="chU-g8-yNX">
<rect key="frame" x="0.0" y="245" width="152" height="28"/>
<rect key="frame" x="0.0" y="218" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Cause frozen frames"/>
Expand All @@ -980,14 +980,23 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="M3X-e9-STj">
<rect key="frame" x="0.0" y="280" width="152" height="28"/>
<rect key="frame" x="0.0" y="249" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Web View"/>
<connections>
<action selector="openWeb:" destination="VqS-l1-kwe" eventType="touchUpInside" id="AUt-Af-7f1"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7Dq-nW-2pX">
<rect key="frame" x="0.0" y="280" width="152" height="28"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Masking Preview"/>
<connections>
<action selector="showMaskingPreview:" destination="VqS-l1-kwe" eventType="touchUpInside" id="hx1-Nn-QVp"/>
</connections>
</button>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalSpacing" translatesAutoresizingMaskIntoConstraints="NO" id="ULj-Tl-kYs">
Expand Down
4 changes: 4 additions & 0 deletions Samples/iOS-Swift/iOS-Swift/ExtraViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ class ExtraViewController: UIViewController {
displayStringForUITest(string: appSupportDirectory)
}

@IBAction func showMaskingPreview(_ sender: Any) {
SentrySDK.replay.showMaskPreview(0.5)
}

func displayStringForUITest(string: String) {
dataMarshalingField.text = string
dataMarshalingField.isHidden = false
Expand Down
Loading

0 comments on commit 5e89626

Please sign in to comment.