Skip to content

Commit

Permalink
test: add flag to allow skipping SDK start in sample app (#4189)
Browse files Browse the repository at this point in the history
helped to try reproducing a certain customer use case
  • Loading branch information
armcknight authored Jul 24, 2024
1 parent f1ed6f8 commit 84fdd22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
argument = "--disable-file-io-tracing"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "--skip-sentry-init"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "--disable-spotlight"
isEnabled = "NO">
Expand Down
4 changes: 3 additions & 1 deletion Samples/iOS-Swift/iOS-Swift/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
if ProcessInfo.processInfo.arguments.contains("--io.sentry.wipe-data") {
removeAppData()
}
AppDelegate.startSentry()
if !ProcessInfo.processInfo.arguments.contains("--skip-sentry-init") {
AppDelegate.startSentry()
}

randomDistributionTimer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in
let random = Double.random(in: 0..<1_000)
Expand Down

0 comments on commit 84fdd22

Please sign in to comment.