Skip to content

Commit 07394ae

Browse files
committed
MX testing
1 parent 17be974 commit 07394ae

File tree

6 files changed

+19
-4
lines changed

6 files changed

+19
-4
lines changed

.github/workflows/ios_emerge_upload_main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Sentry iOS Upload (Size Analysis)
22

33
on:
4-
push:
4+
pull_request:
55
branches: [main]
6+
paths: [ios/**]
67

78
jobs:
89
build:

ios/HackerNews.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@
12281228
isa = XCRemoteSwiftPackageReference;
12291229
repositoryURL = "https://github.com/getsentry/sentry-cocoa/";
12301230
requirement = {
1231-
branch = autoTrackAppLaunch;
1231+
branch = mxTesting;
12321232
kind = branch;
12331233
};
12341234
};

ios/HackerNews.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/HackerNews/Feed/FeedScreen.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ struct FeedScreen: View {
1313

1414
@Binding var model: AppViewModel
1515
@State private var isAnimating = false
16+
17+
func crash() {
18+
let a = ""
19+
let b = a as! Date
20+
print(b)
21+
}
1622

1723
var body: some View {
1824
VStack(spacing: 8) {
@@ -44,6 +50,10 @@ struct FeedScreen: View {
4450
}
4551
}
4652
.frame(height: 60)
53+
Button("Crash") {
54+
print("going to crash")
55+
crash()
56+
}
4757

4858
// Page view for feeds
4959
TabView(selection: $model.feedState.selectedFeed) {

ios/HackerNews/HNApp.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ struct HackerNewsApp: App {
4242
options.sessionReplay.onErrorSampleRate = 1.0
4343
options.sendDefaultPii = true
4444
options.enableLogs = true
45+
options.experimental.enableSessionReplayInUnreliableEnvironment = true
4546

4647
#if DEBUG
4748
options.environment = "development"

ios/HackerNews/Localizable.xcstrings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@
208208
}
209209
}
210210
}
211+
},
212+
"Crash" : {
213+
211214
},
212215
"feed.type.ask" : {
213216
"extractionState" : "manual",

0 commit comments

Comments
 (0)