Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Sources/Sentry/SentryDependencyContainer.m
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,7 @@ - (SentryDebugImageProvider *)debugImageProvider SENTRY_THREAD_SANITIZER_DOUBLE_
}

#if SENTRY_HAS_UIKIT
- (SentryWatchdogTerminationScopeObserver *)getWatchdogTerminationScopeObserverWithOptions:
(SentryOptions *)options
- (id<SentryScopeObserver>)getWatchdogTerminationScopeObserverWithOptions:(SentryOptions *)options
{
// This method is only a factory, therefore do not keep a reference.
// The scope observer will be created each time it is needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ - (BOOL)installWithOptions:(SentryOptions *)options

self.appStateManager = appStateManager;

SentryWatchdogTerminationScopeObserver *scopeObserver =
[SentryDependencyContainer.sharedInstance
getWatchdogTerminationScopeObserverWithOptions:options];
id<SentryScopeObserver> scopeObserver = [SentryDependencyContainer.sharedInstance
getWatchdogTerminationScopeObserverWithOptions:options];

[SentrySDKInternal.currentHub configureScope:^(SentryScope *_Nonnull outerScope) {
// Add the observer to the scope so that it can be notified when the scope changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
@class SentryScreenshotSource;
@class SentryViewHierarchyProvider;
@class SentryUIViewControllerPerformanceTracker;
@class SentryWatchdogTerminationScopeObserver;
@class SentryWatchdogTerminationAttributesProcessor;
@protocol SentryScopeObserver;
#endif // SENTRY_UIKIT_AVAILABLE

#if SENTRY_HAS_UIKIT
Expand Down Expand Up @@ -136,8 +136,7 @@ SENTRY_NO_INIT
@property (nonatomic, strong) id<SentryObjCRuntimeWrapper> objcRuntimeWrapper;

#if SENTRY_HAS_UIKIT
- (SentryWatchdogTerminationScopeObserver *)getWatchdogTerminationScopeObserverWithOptions:
(SentryOptions *)options;
- (id<SentryScopeObserver>)getWatchdogTerminationScopeObserverWithOptions:(SentryOptions *)options;
@property (nonatomic, strong)
SentryWatchdogTerminationAttributesProcessor *watchdogTerminationAttributesProcessor;
#endif
Expand Down
3 changes: 2 additions & 1 deletion Sources/Sentry/include/SentryScope+Private.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#import <Foundation/Foundation.h>

#import "SentryScope.h"
#import "SentryScopeObserver.h"

@class SentryAttachment;
@class SentryPropagationContext;
@class SentrySession;

@protocol SentryScopeObserver;

NS_ASSUME_NONNULL_BEGIN

@interface SentryScope ()
Expand Down
Loading