Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update releaseName default value #267

Merged
merged 14 commits into from
Nov 15, 2023
Merged
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _None._

### Internal Changes

_None._
- The default `releaseName` value now includes the CFBundleIdentifierKey, CFBundleShortVersionString, and CFBundleVersionKey [#267]

-->

Expand Down
1 change: 0 additions & 1 deletion Sources/Remote Logging/Crash Logging/CrashLogging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public class CrashLogging {
options.diagnosticLevel = .error

options.environment = self.dataProvider.buildType
options.releaseName = self.dataProvider.releaseName
options.enableAutoSessionTracking = self.dataProvider.shouldEnableAutomaticSessionTracking
options.enableAppHangTracking = self.dataProvider.enableAppHangTracking
options.enableCaptureFailedRequests = self.dataProvider.enableCaptureFailedRequests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public protocol CrashLoggingDataProvider {
var sentryDSN: String { get }
var userHasOptedOut: Bool { get }
var buildType: String { get }
var releaseName: String { get }
var currentUser: TracksUser? { get }
var additionalUserData: [String: Any] { get }
var shouldEnableAutomaticSessionTracking: Bool { get }
Expand All @@ -22,10 +21,6 @@ public protocol CrashLoggingDataProvider {
/// Default implementations of common protocol properties
public extension CrashLoggingDataProvider {

var releaseName: String {
return Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as! String
}

var additionalUserData: [String: Any] {
return [ : ]
}
Expand Down