From 2168584a26a37211cf6eeb82922d0aedfec8134e Mon Sep 17 00:00:00 2001 From: Alexey Troshkov <55428673+alexey-troshkov@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:05:57 +0300 Subject: [PATCH 1/2] v3.0.7 --- PianoAnalytics-AppExtension.podspec | 2 +- PianoAnalytics.podspec | 2 +- Sources/PianoAnalytics/PianoAnalytics.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PianoAnalytics-AppExtension.podspec b/PianoAnalytics-AppExtension.podspec index 4587f6c..51fa15a 100644 --- a/PianoAnalytics-AppExtension.podspec +++ b/PianoAnalytics-AppExtension.podspec @@ -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' diff --git a/PianoAnalytics.podspec b/PianoAnalytics.podspec index 1f5fead..fbf32b0 100644 --- a/PianoAnalytics.podspec +++ b/PianoAnalytics.podspec @@ -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' diff --git a/Sources/PianoAnalytics/PianoAnalytics.swift b/Sources/PianoAnalytics/PianoAnalytics.swift index ff08726..14d991d 100644 --- a/Sources/PianoAnalytics/PianoAnalytics.swift +++ b/Sources/PianoAnalytics/PianoAnalytics.swift @@ -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 /// From 5332934e4441de68c498f239fd7cf41daac316dd Mon Sep 17 00:00:00 2001 From: Alexey Troshkov <55428673+alexey-troshkov@users.noreply.github.com> Date: Wed, 1 Nov 2023 10:59:46 +0400 Subject: [PATCH 2/2] v3.0.7 --- PianoAnalytics-AppExtension.podspec | 2 +- PianoAnalytics.podspec | 2 +- Sources/PianoAnalytics/PianoAnalytics.swift | 2 +- Sources/PianoAnalytics/Steps/CrashHandlingStep.swift | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PianoAnalytics-AppExtension.podspec b/PianoAnalytics-AppExtension.podspec index 4587f6c..51fa15a 100644 --- a/PianoAnalytics-AppExtension.podspec +++ b/PianoAnalytics-AppExtension.podspec @@ -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' diff --git a/PianoAnalytics.podspec b/PianoAnalytics.podspec index 1f5fead..fbf32b0 100644 --- a/PianoAnalytics.podspec +++ b/PianoAnalytics.podspec @@ -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' diff --git a/Sources/PianoAnalytics/PianoAnalytics.swift b/Sources/PianoAnalytics/PianoAnalytics.swift index ff08726..14d991d 100644 --- a/Sources/PianoAnalytics/PianoAnalytics.swift +++ b/Sources/PianoAnalytics/PianoAnalytics.swift @@ -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 /// diff --git a/Sources/PianoAnalytics/Steps/CrashHandlingStep.swift b/Sources/PianoAnalytics/Steps/CrashHandlingStep.swift index 9dac673..c33c6d4 100644 --- a/Sources/PianoAnalytics/Steps/CrashHandlingStep.swift +++ b/Sources/PianoAnalytics/Steps/CrashHandlingStep.swift @@ -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 @@ -59,6 +59,10 @@ final class CrashHandlingStep: Step { } } } + + if CrashHandlingStep.defaultHandler == nil { + CrashHandlingStep.defaultHandler = NSGetUncaughtExceptionHandler() + } self.privacyStep = ps self.exceptionHandler = { exception in