Skip to content

Commit

Permalink
Merge branch 'main' into feat/support-allow-urls-deny-urls
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaintz authored Sep 4, 2024
2 parents 99a6f98 + 3a16179 commit 10639ce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8360)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.35.1...8.36.0)

### Fixes

- Only access renderObject if `hasSize` is true ([#2263](https://github.com/getsentry/sentry-dart/pull/2263))

## 8.8.0

### Features
Expand Down
4 changes: 0 additions & 4 deletions dart/lib/src/transport/spotlight_http_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ class SpotlightHttpTransport extends Transport {
Future<void> _sendToSpotlight(SentryEnvelope envelope) async {
envelope.header.sentAt = _options.clock();

// Screenshots do not work currently https://github.com/getsentry/spotlight/issues/274
envelope.items
.removeWhere((element) => element.header.contentType == 'image/png');

final spotlightRequest = await _requestHandler.createRequest(envelope);

final response = await _options.httpClient
Expand Down
2 changes: 1 addition & 1 deletion flutter/ios/Classes/SentryFlutterPluginApple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
case "nativeCrash":
crash()

case "sendReplayForEvent":
case "captureReplay":
#if canImport(UIKit) && !SENTRY_NO_UIKIT && (os(iOS) || os(tvOS))
PrivateSentrySDKOnly.captureReplay()
result(PrivateSentrySDKOnly.getReplayId())
Expand Down
2 changes: 1 addition & 1 deletion flutter/lib/src/view_hierarchy/sentry_tree_walker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class _TreeWalker {
double? alpha;

final renderObject = element.renderObject;
if (renderObject is RenderBox) {
if (renderObject is RenderBox && renderObject.hasSize) {
final offset = renderObject.localToGlobal(Offset.zero);
if (offset.dx > 0) {
x = offset.dx;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:sentry_flutter/src/event_processor/url_filter/url_filter_event_p
// can be tested on command line with
// `flutter test --platform=chrome test/event_processor/url_filter/web_url_filter_event_processor_test.dart`
// The URL looks something like this: http://localhost:58551/event_processor/url_filter/web_url_filter_event_processor_test.html

void main() {
group(UrlFilterEventProcessor, () {
late Fixture fixture;
Expand Down

0 comments on commit 10639ce

Please sign in to comment.