diff --git a/CHANGELOG.md b/CHANGELOG.md index 11e8c947d..4193d61d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,12 +14,12 @@ ### Dependencies +- Bump Cocoa SDK from v8.42.0 to v8.43.0 ([#2542](https://github.com/getsentry/sentry-dart/pull/2542), [#2548](https://github.com/getsentry/sentry-dart/pull/2548)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8430) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.42.0...8.43.0) - Bump Android SDK from v7.19.0 to v7.20.0 ([#2536](https://github.com/getsentry/sentry-dart/pull/2536), [#2549](https://github.com/getsentry/sentry-dart/pull/2549)) - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7200) - [diff](https://github.com/getsentry/sentry-java/compare/7.19.0...7.20.0) -- Bump Cocoa SDK from v8.42.0 to v8.43.0-beta.1 ([#2542](https://github.com/getsentry/sentry-dart/pull/2542)) - - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8430-beta1) - - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.42.0...8.43.0-beta.1) ## 8.12.0 diff --git a/flutter/ios/Classes/SentryFlutter.swift b/flutter/ios/Classes/SentryFlutter.swift index 44435bea8..84a0fa47b 100644 --- a/flutter/ios/Classes/SentryFlutter.swift +++ b/flutter/ios/Classes/SentryFlutter.swift @@ -113,16 +113,16 @@ public final class SentryFlutter { } #if canImport(UIKit) && !SENTRY_NO_UIKIT && (os(iOS) || os(tvOS)) if let replayOptions = data["replay"] as? [String: Any] { - options.experimental.sessionReplay.sessionSampleRate = + options.sessionReplay.sessionSampleRate = (replayOptions["sessionSampleRate"] as? NSNumber)?.floatValue ?? 0 - options.experimental.sessionReplay.onErrorSampleRate = + options.sessionReplay.onErrorSampleRate = (replayOptions["onErrorSampleRate"] as? NSNumber)?.floatValue ?? 0 // TMP: this doesn't actually mask, just ensures we show the correct // value in tags. https://github.com/getsentry/sentry-cocoa/issues/4666 - options.experimental.sessionReplay.maskAllText = + options.sessionReplay.maskAllText = (replayOptions["maskAllText"] as? Bool) ?? false - options.experimental.sessionReplay.maskAllImages = + options.sessionReplay.maskAllImages = (replayOptions["maskAllImages"] as? Bool) ?? false } #endif diff --git a/flutter/ios/sentry_flutter.podspec b/flutter/ios/sentry_flutter.podspec index 57e1cafc9..b2b1c6154 100644 --- a/flutter/ios/sentry_flutter.podspec +++ b/flutter/ios/sentry_flutter.podspec @@ -16,7 +16,7 @@ Sentry SDK for Flutter with support to native through sentry-cocoa. :tag => s.version.to_s } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' - s.dependency 'Sentry/HybridSDK', '8.43.0-beta.1' + s.dependency 'Sentry/HybridSDK', '8.43.0' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' s.ios.deployment_target = '12.0' diff --git a/flutter/lib/src/native/cocoa/binding.dart b/flutter/lib/src/native/cocoa/binding.dart index fdbf5fb23..13b33db60 100644 --- a/flutter/lib/src/native/cocoa/binding.dart +++ b/flutter/lib/src/native/cocoa/binding.dart @@ -29906,6 +29906,8 @@ class SentryCocoa { late final _sel_setSdkName_1 = _registerName1("setSdkName:"); late final _sel_getSdkName1 = _registerName1("getSdkName"); late final _sel_getSdkVersionString1 = _registerName1("getSdkVersionString"); + late final _sel_addSdkPackage_version_1 = + _registerName1("addSdkPackage:version:"); late final _sel_getExtraContext1 = _registerName1("getExtraContext"); late final _class_SentryId2 = _getClass1("Sentry.SentryId"); late final _sel_startProfilerForTrace_1 = @@ -70745,6 +70747,16 @@ class PrivateSentrySDKOnly extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } + /// Add a package to the SDK packages + static void addSdkPackage_version_( + SentryCocoa _lib, NSString? name, NSString? version) { + _lib._objc_msgSend_515( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_addSdkPackage_version_1, + name?._id ?? ffi.nullptr, + version?._id ?? ffi.nullptr); + } + /// Retrieves extra context static NSDictionary getExtraContext(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_170(