Skip to content

Commit 78e25e9

Browse files
committed
use the sdk wrapper in the swift clip too
1 parent c3a3862 commit 78e25e9

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

Samples/iOS-Swift/iOS-SwiftClip/AppDelegate.swift

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,7 @@ import UIKit
66
class AppDelegate: UIResponder, UIApplicationDelegate {
77

88
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
9-
10-
SentrySDK.start { options in
11-
options.dsn = "https://[email protected]/5428557"
12-
options.beforeSend = { event in
13-
return event
14-
}
15-
options.debug = true
16-
// Sampling 100% - In Production you probably want to adjust this
17-
options.tracesSampleRate = 1.0
18-
options.sessionTrackingIntervalMillis = 5_000
19-
options.initialScope = { scope in
20-
injectGitInformation(scope: scope)
21-
return scope
22-
}
23-
24-
// Experimental features
25-
options.experimental.enableFileManagerSwizzling = true
26-
options.sessionReplay.enableExperimentalViewRenderer = true
27-
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
28-
options.sessionReplay.enableFastViewRendering = false
29-
}
30-
9+
SentrySDKWrapper.shared.startSentry()
3110
return true
3211
}
3312

@@ -38,11 +17,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3817
// Use this method to select a configuration to create the new scene with.
3918
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
4019
}
41-
42-
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
43-
// Called when the user discards a scene session.
44-
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
45-
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
46-
}
47-
4820
}

0 commit comments

Comments
 (0)