Skip to content

Commit

Permalink
"change this from a category to a class extension (anonymous category…
Browse files Browse the repository at this point in the history
…) then you don't have to redeclare the property in SentrySession.m; instead, you can just `#include "SentrySession+Private.h""
  • Loading branch information
kevinrenskers committed Nov 23, 2022
1 parent 5feef19 commit 95a3f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions Sources/Sentry/SentrySession.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import "SentrySession.h"
#import "NSDate+SentryExtras.h"
#import "SentryCurrentDate.h"
#import "SentryInstallation.h"
#import "SentryLog.h"
#import "SentrySession+Private.h"

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -22,11 +22,6 @@
}
}

@interface
SentrySession ()
@property (nonatomic) NSUInteger errors;
@end

@implementation SentrySession

@synthesize flagInit = _init;
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/include/SentrySession+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
NSString *nameForSentrySessionStatus(SentrySessionStatus status);

@interface
SentrySession (Private)
SentrySession ()

@property (nonatomic) NSUInteger errors;

Expand Down

0 comments on commit 95a3f67

Please sign in to comment.