-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathEarlyConfiguration.h
More file actions
42 lines (33 loc) · 1.45 KB
/
EarlyConfiguration.h
File metadata and controls
42 lines (33 loc) · 1.45 KB
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
41
42
//
// EarlyConfiguration.h
// BugsnagPerformance-iOS
//
// Created by Karl Stenerud on 02.05.23.
// Copyright © 2023 Bugsnag. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
* The early confguration happens duing the library early init phase (before main is called), and thus cannot be done
* using a configuration object passed in by the user (because control hasn't been passed to user code yet).
* Instead, we get the early configuration from the app's Info.plist file and environment variables.
*/
@interface BSGEarlyConfiguration : NSObject
/**
* Configure from Info.plist
* This constructor extracts a dictionary from the contents of Info.plist and calls the other constructor.
*/
- (instancetype) initWithEarlyPhaseStartTime:(CFAbsoluteTime)startTime;
/**
* Configure from an Info.plist style dictionary.
*/
- (instancetype) initWithBundleDictionary:(NSDictionary *)dict earlyPhaseStartTime:(CFAbsoluteTime)startTime;
+ (NSDictionary * _Nullable)bsg_loadConfigWithBundle:(NSBundle *)bundle;
+ (NSDictionary * _Nullable)bsg_loadConfigFromInfoDictionary:(NSDictionary * _Nullable)infoDictionary;
@property(nonatomic, readonly) BOOL enableSwizzling;
@property(nonatomic, readonly) BOOL swizzleViewLoadPreMain;
@property(nonatomic, readwrite) BOOL appWasLaunchedPreWarmed;
@property(nonatomic, readonly) CFAbsoluteTime earlyPhaseStartTime;
@property(nonatomic, readonly) BOOL isDevelopment;
@end
NS_ASSUME_NONNULL_END