Skip to content

Commit 5da364f

Browse files
committed
Makes origin field private
1 parent 2081760 commit 5da364f

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Features
66

7-
- Added breadcrumb.origin field (#4358)
7+
- Added breadcrumb.origin private field (#4358)
88
- Custom redact modifier for SwiftUI (#4362)
99

1010
### Improvements

Sources/Sentry/Public/SentryBreadcrumb.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ NS_SWIFT_NAME(Breadcrumb)
3434
*/
3535
@property (nonatomic, copy, nullable) NSString *type;
3636

37-
/**
38-
* Origin of the breadcrumb that is used to identify source of the breadcrumb
39-
* For example hybrid SDKs can identify native breadcrumbs from JS or Flutter
40-
*/
41-
@property (nonatomic, copy, nullable) NSString *origin;
42-
4337
/**
4438
* Message for the breadcrumb
4539
*/

Sources/Sentry/SentryBreadcrumb.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#import "SentryBreadcrumb.h"
2+
#import "SentryBreadcrumb+Private.h"
23
#import "SentryDateUtils.h"
34
#import "SentryLevelMapper.h"
45
#import "SentryNSDictionarySanitize.h"

Sources/Sentry/SentryCrashReportConverter.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#import "SentryCrashReportConverter.h"
2+
#import "SentryBreadcrumb+Private.h"
23
#import "SentryBreadcrumb.h"
34
#import "SentryCrashStackCursor.h"
45
#import "SentryDateUtils.h"

Sources/Sentry/include/HybridPublic/SentryBreadcrumb+Private.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
@interface SentryBreadcrumb ()
44

5+
/**
6+
* Origin of the breadcrumb that is used to identify source of the breadcrumb
7+
* For example hybrid SDKs can identify native breadcrumbs from JS or Flutter
8+
*/
9+
@property (nonatomic, copy, nullable) NSString *origin;
10+
511
/**
612
* Initializes a SentryBreadcrumb from a JSON object.
713
* @param dictionary The dictionary containing breadcrumb data.
814
* @return The SentryBreadcrumb.
915
*/
10-
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
16+
- (instancetype _Nonnull)initWithDictionary:(NSDictionary *_Nonnull)dictionary;
1117
@end

Tests/SentryTests/SentryInterfacesTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#import <XCTest/XCTest.h>
22

3+
#import "SentryBreadcrumb+Private.h"
34
#import "SentryBreadcrumb.h"
45
#import "SentryDateUtils.h"
56
#import "SentryEvent.h"

Tests/SentryTests/SentryTests-Bridging-Header.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#import "SentryAutoBreadcrumbTrackingIntegration.h"
5959
#import "SentryAutoSessionTrackingIntegration.h"
6060
#import "SentryBooleanSerialization.h"
61+
#import "SentryBreadcrumb+Private.h"
6162
#import "SentryBreadcrumbDelegate.h"
6263
#import "SentryBreadcrumbTracker.h"
6364
#import "SentryByteCountFormatter.h"

Tests/SentryTests/SentryTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#import "SentryMeta.h"
1111
#import "SentryOptions+HybridSDKs.h"
1212
#import "SentrySDK+Private.h"
13+
#import <SentryBreadcrumb+Private.h>
1314
#import <XCTest/XCTest.h>
1415
@import Sentry;
1516

0 commit comments

Comments
 (0)