Skip to content

Commit 58deb9b

Browse files
authored
change naming to match android (#167)
1 parent 1e576bb commit 58deb9b

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

Leanplum-SDK/Classes/LPCrashHandler.h renamed to Leanplum-SDK/Classes/LPExceptionHandler.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// LPCrashHandler.h
2+
// LPExceptionHandler.h
33
// Leanplum iOS SDK Version 2.0.6
44
//
55
// Copyright (c) 2018 Leanplum, Inc. All rights reserved.
@@ -23,13 +23,13 @@
2323

2424
#import <Foundation/Foundation.h>
2525

26-
@protocol LPCrashReporting
26+
@protocol LPExceptionReporting
2727
-(void)reportException:(NSException *)exception;
2828
@end
2929

30-
@interface LPCrashHandler : NSObject
30+
@interface LPExceptionHandler : NSObject
3131

32-
+(instancetype)sharedCrashHandler;
32+
+(instancetype)sharedExceptionHandler;
3333
-(void)reportException:(NSException *)exception;
3434

3535
@end

Leanplum-SDK/Classes/LPCrashHandler.m renamed to Leanplum-SDK/Classes/LPExceptionHandler.m

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// LPCrashHandler.h
2+
// LPExceptionHandler.h
33
// Leanplum iOS SDK Version 2.0.6
44
//
55
// Copyright (c) 2018 Leanplum, Inc. All rights reserved.
@@ -21,25 +21,25 @@
2121
// specific language governing permissions and limitations
2222
// under the License.
2323

24-
#import "LPCrashHandler.h"
24+
#import "LPExceptionHandler.h"
2525

26-
@interface LPCrashHandler()
26+
@interface LPExceptionHandler()
2727

28-
@property (nonatomic, strong) id<LPCrashReporting> crashReporter;
28+
@property (nonatomic, strong) id<LPExceptionReporting> exceptionReporter;
2929

3030
@end
3131

32-
@implementation LPCrashHandler
32+
@implementation LPExceptionHandler
3333

34-
+(instancetype)sharedCrashHandler
34+
+(instancetype)sharedExceptionHandler
3535
{
36-
static LPCrashHandler *sharedCrashHandler = nil;
36+
static LPExceptionHandler *sharedExceptionHandler = nil;
3737
@synchronized(self) {
38-
if (!sharedCrashHandler) {
39-
sharedCrashHandler = [[self alloc] init];
38+
if (!sharedExceptionHandler) {
39+
sharedExceptionHandler = [[self alloc] init];
4040
}
4141
}
42-
return sharedCrashHandler;
42+
return sharedExceptionHandler;
4343
}
4444

4545
-(instancetype)init
@@ -53,16 +53,16 @@ -(instancetype)init
5353

5454
-(void)initializeLeanplumReporter
5555
{
56-
Class LPCrashReporterClass = NSClassFromString(@"LPCrashReporter");
57-
if (LPCrashReporterClass) {
58-
_crashReporter = [[LPCrashReporterClass alloc] init];
56+
Class LPExceptionReporterClass = NSClassFromString(@"LPExceptionReporter");
57+
if (LPExceptionReporterClass) {
58+
_exceptionReporter = [[LPExceptionReporterClass alloc] init];
5959
}
6060
}
6161

6262
-(void)reportException:(NSException *)exception
6363
{
64-
if (self.crashReporter) {
65-
[self.crashReporter reportException:exception];
64+
if (self.exceptionReporter) {
65+
[self.exceptionReporter reportException:exception];
6666
}
6767
}
6868

Leanplum-SDK/Classes/Utils.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#import "Utils.h"
2626
#import <CommonCrypto/CommonDigest.h>
27-
#import "LPCrashHandler.h"
27+
#import "LPExceptionHandler.h"
2828

2929
@implementation Utils
3030

@@ -84,12 +84,12 @@ +(NSString *)urlEncodedStringFromString:(NSString *)urlString {
8484

8585
+ (void)initExceptionHandling
8686
{
87-
[LPCrashHandler sharedCrashHandler];
87+
[LPExceptionHandler sharedExceptionHandler];
8888
}
8989

9090
+ (void)handleException:(NSException *)exception
9191
{
92-
[[LPCrashHandler sharedCrashHandler] reportException:exception];
92+
[[LPExceptionHandler sharedExceptionHandler] reportException:exception];
9393
}
9494

9595
@end

0 commit comments

Comments
 (0)