forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSentrySdkInfo.h
40 lines (31 loc) · 1.07 KB
/
SentrySdkInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import "SentrySerializable.h"
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
* Describes the Sentry SDK and its configuration used to capture and transmit an event.
*
* Both name and version are required.
*
* For more info checkout: https://develop.sentry.dev/sdk/event-payloads/sdk/
*/
@interface SentrySdkInfo : NSObject <SentrySerializable>
SENTRY_NO_INIT
/**
* The name of the SDK.
*
* Examples: sentry.cocoa, sentry.cocoa.vapor, ...
*/
@property (nonatomic, readonly, copy) NSString *name;
/**
* The version of the SDK. It should have the Semantic Versioning format MAJOR.MINOR.PATCH, without
* any prefix (no v or anything else in front of the major version number).
*
* Examples: 0.1.0, 1.0.0, 2.0.0-beta0
*/
@property (nonatomic, readonly, copy) NSString *version;
- (instancetype)initWithName:(NSString *)name
andVersion:(NSString *)version NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithDict:(NSDictionary *)dict;
- (instancetype)initWithDict:(NSDictionary *)dict orDefaults:(SentrySdkInfo *)info;
@end
NS_ASSUME_NONNULL_END