-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7cb9cc
commit 30418a0
Showing
14 changed files
with
192 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// BugsnagEndpointConfiguration.h | ||
// Bugsnag | ||
// | ||
// Created by Jamie Lynch on 15/04/2020. | ||
// Copyright © 2020 Bugsnag. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* Set the endpoints to send data to. By default we'll send error reports to | ||
* https://notify.bugsnag.com, and sessions to https://sessions.bugsnag.com, but you can | ||
* override this if you are using Bugsnag Enterprise to point to your own Bugsnag endpoints. | ||
*/ | ||
@interface BugsnagEndpointConfiguration : NSObject | ||
|
||
/** | ||
* Configures the endpoint to which events should be sent | ||
*/ | ||
@property NSString *notify; | ||
|
||
/** | ||
* Configures the endpoint to which sessions should be sent | ||
*/ | ||
@property NSString *sessions; | ||
|
||
- (instancetype)initWithNotify:(NSString *)notify sessions:(NSString *)sessions; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// BugsnagEndpointConfiguration.m | ||
// Bugsnag | ||
// | ||
// Created by Jamie Lynch on 15/04/2020. | ||
// Copyright © 2020 Bugsnag. All rights reserved. | ||
// | ||
|
||
#import "BugsnagEndpointConfiguration.h" | ||
|
||
@implementation BugsnagEndpointConfiguration | ||
|
||
- (instancetype)init { | ||
if (self = [super init]) { | ||
_notify = @"https://notify.bugsnag.com"; | ||
_sessions = @"https://sessions.bugsnag.com"; | ||
} | ||
return self; | ||
} | ||
|
||
- (instancetype)initWithNotify:(NSString *)notify sessions:(NSString *)sessions { | ||
if (self = [super init]) { | ||
_notify = notify; | ||
_sessions = sessions; | ||
} | ||
return self; | ||
} | ||
@end |
Oops, something went wrong.