-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: we need to make these changes in the public release pr
- Loading branch information
1 parent
165e716
commit ec5c3cd
Showing
3 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,14 +71,11 @@ - (IBAction)captureUserFeedback:(id)sender | |
captureError:error | ||
withScopeBlock:^(SentryScope *_Nonnull scope) { [scope setLevel:kSentryLevelFatal]; }]; | ||
|
||
SentryFeedback *feedback = [[SentryFeedback alloc] | ||
initWithMessage:@"It broke on iOS-ObjectiveC. I don't know why, but this happens." | ||
name:@"John Me" | ||
email:@"[email protected]" | ||
source:SentryFeedbackSourceCustom | ||
associatedEventId:nil | ||
screenshot:nil]; | ||
[SentrySDK captureUserFeedback:feedback]; | ||
SentryUserFeedback *userFeedback = [[SentryUserFeedback alloc] initWithEventId:eventId]; | ||
userFeedback.comments = @"It broke on iOS-ObjectiveC. I don't know why, but this happens."; | ||
userFeedback.email = @"[email protected]"; | ||
userFeedback.name = @"John Me"; | ||
[SentrySDK captureUserFeedback:userFeedback]; | ||
} | ||
|
||
- (IBAction)captureError:(id)sender | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,8 +143,17 @@ class ExtraViewController: UIViewController { | |
|
||
@IBAction func captureUserFeedback(_ sender: UIButton) { | ||
highlightButton(sender) | ||
let feedback = SentryFeedback(message: "It broke on iOS-Swift. I don't know why, but this happens.", name: "John Me", email: "[email protected]", source: .custom, associatedEventId: nil, screenshot: nil) | ||
SentrySDK.capture(userFeedback: feedback) | ||
let error = NSError(domain: "UserFeedbackErrorDomain", code: 0, userInfo: [NSLocalizedDescriptionKey: "This never happens."]) | ||
|
||
let eventId = SentrySDK.capture(error: error) { scope in | ||
scope.setLevel(.fatal) | ||
} | ||
|
||
let userFeedback = UserFeedback(eventId: eventId) | ||
userFeedback.comments = "It broke on iOS-Swift. I don't know why, but this happens." | ||
userFeedback.email = "[email protected]" | ||
userFeedback.name = "John Me" | ||
SentrySDK.capture(userFeedback: userFeedback) | ||
} | ||
|
||
@IBAction func permissions(_ sender: UIButton) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters