Skip to content

Commit

Permalink
Remove Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jan 3, 2024
1 parent 37afd37 commit 0c8e812
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 57 deletions.
25 changes: 0 additions & 25 deletions Pareto Security.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@
4F74B7D7275114EA00F1FC11 /* Dashlane.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F74B7D4275114EA00F1FC11 /* Dashlane.swift */; };
4F74B7D8275114EA00F1FC11 /* Enpass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F74B7D5275114EA00F1FC11 /* Enpass.swift */; };
4F74B7D9275114EA00F1FC11 /* Enpass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F74B7D5275114EA00F1FC11 /* Enpass.swift */; };
4F7739F4271EB3AD008B1584 /* Sentry in Frameworks */ = {isa = PBXBuildFile; productRef = 4F7739F3271EB3AD008B1584 /* Sentry */; };
4F7739F7271EBC2F008B1584 /* Sentry in Frameworks */ = {isa = PBXBuildFile; productRef = 4F7739F6271EBC2F008B1584 /* Sentry */; };
4F79F78D273BF6300082A5EB /* ChecksView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F79F78C273BF6300082A5EB /* ChecksView.swift */; };
4F79F78E273BF6300082A5EB /* ChecksView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F79F78C273BF6300082A5EB /* ChecksView.swift */; };
4F81C10826EB5D270065F548 /* URL.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F81C10726EB5D270065F548 /* URL.swift */; };
Expand Down Expand Up @@ -407,7 +405,6 @@
4F37E7382718122E00A2B254 /* Version in Frameworks */,
4F37E7392718122E00A2B254 /* Path in Frameworks */,
4F37E73A2718122E00A2B254 /* Alamofire in Frameworks */,
4F7739F7271EBC2F008B1584 /* Sentry in Frameworks */,
4F37E73B2718122E00A2B254 /* Defaults in Frameworks */,
4F37E73C2718122E00A2B254 /* SwiftSocket in Frameworks */,
4F37E73D2718122E00A2B254 /* LaunchAtLogin in Frameworks */,
Expand Down Expand Up @@ -440,7 +437,6 @@
4F14487726D8EB2E00A5BA34 /* Version in Frameworks */,
4F14487A26D8EB7A00A5BA34 /* Path in Frameworks */,
4FF515C126F7B362008D135E /* Alamofire in Frameworks */,
4F7739F4271EB3AD008B1584 /* Sentry in Frameworks */,
4F6A0E1326CE608C003B00A3 /* Defaults in Frameworks */,
4F1AE88B26F9FC150084A381 /* SwiftSocket in Frameworks */,
4F103012269F1C65008C1E86 /* LaunchAtLogin in Frameworks */,
Expand Down Expand Up @@ -753,7 +749,6 @@
4F37E7032718122E00A2B254 /* Alamofire */,
4F37E7052718122E00A2B254 /* SwiftSocket */,
4F37E7072718122E00A2B254 /* JWTDecode */,
4F7739F6271EBC2F008B1584 /* Sentry */,
4F923CF427569E6300070551 /* Cache */,
4F1E6DDA2760081300FD3F01 /* Regex */,
4FAF5BC12895583A004E9615 /* Setapp */,
Expand Down Expand Up @@ -824,7 +819,6 @@
4FF515C026F7B362008D135E /* Alamofire */,
4F1AE88A26F9FC150084A381 /* SwiftSocket */,
4F196CD52714B51900A2A7B8 /* JWTDecode */,
4F7739F3271EB3AD008B1584 /* Sentry */,
4F923CEC2756918E00070551 /* Cache */,
4F6EF891275FEE6C00752559 /* Regex */,
4F3EF0A428AEA05F00D83F4E /* Yams */,
Expand Down Expand Up @@ -873,7 +867,6 @@
4FF515BF26F7B362008D135E /* XCRemoteSwiftPackageReference "Alamofire" */,
4F1AE88926F9FC150084A381 /* XCRemoteSwiftPackageReference "SwiftSocket" */,
4F196CD42714B51900A2A7B8 /* XCRemoteSwiftPackageReference "JWTDecode.swift" */,
4F7739F2271EB3AD008B1584 /* XCRemoteSwiftPackageReference "sentry-cocoa" */,
4F923CEB2756918E00070551 /* XCRemoteSwiftPackageReference "Cache" */,
4F6EF890275FEE6C00752559 /* XCRemoteSwiftPackageReference "Regex" */,
4FAF5BC02895583A004E9615 /* XCRemoteSwiftPackageReference "Setapp-framework" */,
Expand Down Expand Up @@ -1819,14 +1812,6 @@
kind = branch;
};
};
4F7739F2271EB3AD008B1584 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/getsentry/sentry-cocoa";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 7.0.0;
};
};
4F923CEB2756918E00070551 /* XCRemoteSwiftPackageReference "Cache" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/hyperoslo/Cache";
Expand Down Expand Up @@ -1947,16 +1932,6 @@
package = 4F6EF890275FEE6C00752559 /* XCRemoteSwiftPackageReference "Regex" */;
productName = Regex;
};
4F7739F3271EB3AD008B1584 /* Sentry */ = {
isa = XCSwiftPackageProductDependency;
package = 4F7739F2271EB3AD008B1584 /* XCRemoteSwiftPackageReference "sentry-cocoa" */;
productName = Sentry;
};
4F7739F6271EBC2F008B1584 /* Sentry */ = {
isa = XCSwiftPackageProductDependency;
package = 4F7739F2271EB3AD008B1584 /* XCRemoteSwiftPackageReference "sentry-cocoa" */;
productName = Sentry;
};
4F923CEC2756918E00070551 /* Cache */ = {
isa = XCSwiftPackageProductDependency;
package = 4F923CEB2756918E00070551 /* XCRemoteSwiftPackageReference "Cache" */;
Expand Down
11 changes: 0 additions & 11 deletions Pareto/AppHandlers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ import OSLog
import ServiceManagement
import SwiftUI

#if !DEBUG
import Sentry
#endif

class AppHandlers: NSObject, NetworkHandlerObserver {
var statusBar: StatusBarController?
var updater: AppUpdater?
Expand Down Expand Up @@ -369,13 +365,6 @@ class AppHandlers: NSObject, NetworkHandlerObserver {
}

public func processAction(_ url: URL) {
#if !DEBUG
let crumb = Breadcrumb()
crumb.level = SentryLevel.info
crumb.category = "processAction"
crumb.message = url.debugDescription
SentrySDK.addBreadcrumb(crumb: crumb)
#endif
switch url.host {
#if !SETAPP_ENABLED
case "enrollSingle":
Expand Down
2 changes: 1 addition & 1 deletion Pareto/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>5286</string>
<string>5292</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
15 changes: 1 addition & 14 deletions Pareto/ParetoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import Foundation
import LaunchAtLogin
import os.log
import OSLog
#if !DEBUG
import Sentry
#endif
import SwiftUI
import UserNotifications

Expand Down Expand Up @@ -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()
Expand Down
6 changes: 0 additions & 6 deletions Pareto/Views/Settings/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ struct GeneralSettingsView: View {
Toggle("Update app to pre-release builds", isOn: $betaChannel)
}
}
Section(
footer: Text("Helps us to spot issues with the app.").font(.footnote)) {
VStack(alignment: .leading) {
Toggle("Send crash reports", isOn: $sendCrashReports)
}
}
#if DEBUG
HStack {
Button("Reset Settings") {
Expand Down

0 comments on commit 0c8e812

Please sign in to comment.