Skip to content

Commit

Permalink
Merge pull request #18 from at-internet/develop
Browse files Browse the repository at this point in the history
v3.0.7
  • Loading branch information
alexey-troshkov authored Nov 2, 2023
2 parents 1611b84 + be05aa4 commit 04464de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PianoAnalytics-AppExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'PianoAnalytics-AppExtension'
s.version = '3.0.6'
s.version = '3.0.7'
s.summary = 'Piano Analytics solution for extension Apple devices'
s.homepage = 'https://github.com/at-internet/piano-analytics-apple'
s.documentation_url = 'https://developers.atinternet-solutions.com/piano-analytics'
Expand Down
2 changes: 1 addition & 1 deletion PianoAnalytics.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'PianoAnalytics'
s.version = '3.0.6'
s.version = '3.0.7'
s.summary = 'Piano Analytics library for Apple devices'
s.homepage = 'https://github.com/at-internet/piano-analytics-apple'
s.documentation_url = 'https://developers.atinternet-solutions.com/piano-analytics'
Expand Down
2 changes: 1 addition & 1 deletion Sources/PianoAnalytics/PianoAnalytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public final class PianoAnalytics {
// MARK: PUBLIC SECTION

/// SDK version
public static let sdkVersion = "3.0.5"
public static let sdkVersion = "3.0.7"

/// Send event
///
Expand Down
6 changes: 5 additions & 1 deletion Sources/PianoAnalytics/Steps/CrashHandlingStep.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class CrashHandlingStep: Step {
return _instance ?? CrashHandlingStep(ps: ps)
}

private static let defaultHandler : (@convention(c) (NSException) -> Swift.Void)? = NSGetUncaughtExceptionHandler()
private static var defaultHandler : (@convention(c) (NSException) -> Swift.Void)? = nil
private final let exceptionHandler : (@convention(c) (NSException) -> Swift.Void)?
private final let signalHandler : (@convention(c) (Int32) -> Swift.Void)
private final let privacyStep: PrivacyStep
Expand All @@ -59,6 +59,10 @@ final class CrashHandlingStep: Step {
}
}
}

if CrashHandlingStep.defaultHandler == nil {
CrashHandlingStep.defaultHandler = NSGetUncaughtExceptionHandler()
}

self.privacyStep = ps
self.exceptionHandler = { exception in
Expand Down

0 comments on commit 04464de

Please sign in to comment.