Skip to content

Commit

Permalink
ref: convert SentryScope (Private) category to an interface extension
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Aug 18, 2023
1 parent 01a28a9 commit a312f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
18 changes: 1 addition & 17 deletions Sources/Sentry/SentryScope.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#import "SentryScope.h"
#import "NSMutableDictionary+Sentry.h"
#import "SentryAttachment+Private.h"
#import "SentryBreadcrumb.h"
Expand All @@ -7,6 +6,7 @@
#import "SentryGlobalEventProcessor.h"
#import "SentryLevelMapper.h"
#import "SentryLog.h"
#import "SentryScope+Private.h"
#import "SentryScopeObserver.h"
#import "SentrySession.h"
#import "SentrySpan.h"
Expand All @@ -19,11 +19,6 @@
@interface
SentryScope ()

/**
* Set global user -> thus will be sent with every event
*/
@property (atomic, strong) SentryUser *_Nullable userObject;

/**
* Set global tags -> these will be sent with every event
*/
Expand All @@ -34,12 +29,6 @@
*/
@property (atomic, strong) NSMutableDictionary<NSString *, id> *extraDictionary;

/**
* used to add values in event context.
*/
@property (atomic, strong)
NSMutableDictionary<NSString *, NSDictionary<NSString *, id> *> *contextDictionary;

/**
* Contains the breadcrumbs which will be sent with the event
*/
Expand All @@ -50,11 +39,6 @@
*/
@property (atomic, copy) NSString *_Nullable distString;

/**
* The environment used in this scope.
*/
@property (atomic, copy) NSString *_Nullable environmentString;

/**
* Set the fingerprint of an event to determine the grouping
*/
Expand Down
4 changes: 2 additions & 2 deletions Sources/Sentry/include/SentryScope+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
NS_ASSUME_NONNULL_BEGIN

@interface
SentryScope (Private)
SentryScope ()

@property (atomic, copy, readonly, nullable) NSString *environmentString;
@property (atomic, copy, nullable) NSString *environmentString;

@property (atomic, strong, readonly) NSArray<SentryAttachment *> *attachments;

Expand Down

0 comments on commit a312f76

Please sign in to comment.