Skip to content

Commit

Permalink
chore(deps): update Cocoa SDK to v8.43.0-beta.1 (#2542)
Browse files Browse the repository at this point in the history
* chore(deps): update Cocoa SDK to v8.43.0-beta.1

* chore: update changelog

* chore: update changelog of another entry

* update SentryFlutterReplayScreenshotProvider

* chore: update cocoa maskAll* tags

* lint
  • Loading branch information
vaind authored Jan 2, 2025
1 parent 5e45246 commit ca5fef3
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@

### Enhancements

- Replay: improve performance of screenshot data to native recorder ([#2530](https://github.com/getsentry/sentry-dart/pull/2530))
- Replay: improve iOS native interop performance ([#2530](https://github.com/getsentry/sentry-dart/pull/2530))
- Replay: improve orientation change tracking accuracy on Android ([#2540](https://github.com/getsentry/sentry-dart/pull/2540))

### Dependencies

- Bump Android SDK from v7.19.0 to v7.19.1 ([#2536](https://github.com/getsentry/sentry-dart/pull/2536))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7191)
- [diff](https://github.com/getsentry/sentry-java/compare/7.19.0...7.19.1)
- 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
5 changes: 5 additions & 0 deletions flutter/example/ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
7 changes: 7 additions & 0 deletions flutter/ios/Classes/SentryFlutter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ public final class SentryFlutter {
(replayOptions["sessionSampleRate"] as? NSNumber)?.floatValue ?? 0
options.experimental.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 =
(replayOptions["maskAllText"] as? Bool) ?? false
options.experimental.sessionReplay.maskAllImages =
(replayOptions["maskAllImages"] as? Bool) ?? false
}
#endif
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ - (instancetype _Nonnull)initWithChannel:
}

- (void)imageWithView:(UIView *_Nonnull)view
options:(id<SentryRedactOptions> _Nonnull)options
onComplete:(void (^_Nonnull)(UIImage *_Nonnull))onComplete {
// Replay ID may be null if session replay is disabled.
// Replay is still captured for on-error replays.
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.42.0'
s.dependency 'Sentry/HybridSDK', '8.43.0-beta.1'
s.ios.dependency 'Flutter'
s.osx.dependency 'FlutterMacOS'
s.ios.deployment_target = '12.0'
Expand Down
4 changes: 4 additions & 0 deletions flutter/lib/src/native/sentry_native_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ class SentryNativeChannel
'replay': <String, dynamic>{
'sessionSampleRate': options.experimental.replay.sessionSampleRate,
'onErrorSampleRate': options.experimental.replay.onErrorSampleRate,
// TMP: this doesn't actually mask, just ensures we show the correct
// value in tags. https://github.com/getsentry/sentry-cocoa/issues/4666
'maskAllText': options.experimental.privacyForReplay.maskAllText,
'maskAllImages': options.experimental.privacyForReplay.maskAllImages,
},
'enableSpotlight': options.spotlight.enabled,
'spotlightUrl': options.spotlight.url,
Expand Down
4 changes: 4 additions & 0 deletions flutter/test/integrations/init_native_sdk_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ void main() {
'replay': <String, dynamic>{
'sessionSampleRate': null,
'onErrorSampleRate': null,
'maskAllText': true,
'maskAllImages': true,
},
'enableSpotlight': false,
'spotlightUrl': null,
Expand Down Expand Up @@ -177,6 +179,8 @@ void main() {
'replay': <String, dynamic>{
'sessionSampleRate': 0.1,
'onErrorSampleRate': 0.2,
'maskAllText': true,
'maskAllImages': true,
},
'enableSpotlight': true,
'spotlightUrl': 'http://localhost:8969/stream',
Expand Down

0 comments on commit ca5fef3

Please sign in to comment.