-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
2 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,6 @@ import Foundation | |
import LaunchAtLogin | ||
import os.log | ||
import OSLog | ||
#if !DEBUG | ||
import Sentry | ||
#endif | ||
import SwiftUI | ||
import UserNotifications | ||
|
||
|
@@ -168,17 +165,7 @@ class AppDelegate: AppHandlers, NSApplicationDelegate { | |
|
||
// Terminate any older versions of process if not running tests | ||
#if !DEBUG | ||
if !AppInfo.isRunningTests && Defaults[.sendCrashReports] { | ||
SentrySDK.start { options in | ||
options.dsn = "https://[email protected]/6013471" | ||
options.enableAutoSessionTracking = true | ||
options.enableAutoPerformanceTracking = true | ||
options.tracesSampleRate = 1.0 | ||
|
||
let user = User() | ||
user.userId = Defaults[.machineUUID] | ||
SentrySDK.setUser(user) | ||
} | ||
if !AppInfo.isRunningTests { | ||
let procs = NSRunningApplication.runningApplications(withBundleIdentifier: Bundle.main.bundleIdentifier!) | ||
if procs.count > 1 { | ||
procs.first?.forceTerminate() | ||
|
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