Skip to content

Commit

Permalink
chore(deps): update Cocoa SDK to v8.43.0 (#2548)
Browse files Browse the repository at this point in the history
* chore: update flutter/scripts/update-cocoa.sh to 8.43.0

* format

* update

* fix options

* update optiosn

* fix options

* revert

* revert to main

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: GIancarlo Buenaflor <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent 85b58ca commit 3a4de05
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions flutter/ios/Classes/SentryFlutter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flutter/ios/sentry_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 12 additions & 0 deletions flutter/lib/src/native/cocoa/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3a4de05

Please sign in to comment.