-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize iOS-Swift sample by dividing diverent types of operations in different tabs given more room for more tests.
- Loading branch information
Showing
12 changed files
with
846 additions
and
720 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
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
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
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
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 |
---|---|---|
|
@@ -45,6 +45,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |
let httpStatusCodeRange = HttpStatusCodeRange(min: 400, max: 599) | ||
options.failedRequestStatusCodes = [ httpStatusCodeRange ] | ||
} | ||
|
||
SentrySDK.configureScope { (scope) in | ||
scope.setEnvironment("debug") | ||
scope.setTag(value: "swift", key: "language") | ||
|
||
let user = User(userId: "1") | ||
user.email = "[email protected]" | ||
scope.setUser(user) | ||
|
||
if let path = Bundle.main.path(forResource: "Tongariro", ofType: "jpg") { | ||
scope.addAttachment(Attachment(path: path, filename: "Tongariro.jpg", contentType: "image/jpeg")) | ||
} | ||
if let data = "hello".data(using: .utf8) { | ||
scope.addAttachment(Attachment(data: data, filename: "log.txt")) | ||
} | ||
} | ||
} | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
|
Oops, something went wrong.