-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKSCrashInstallationFile.m
More file actions
45 lines (35 loc) · 907 Bytes
/
KSCrashInstallationFile.m
File metadata and controls
45 lines (35 loc) · 907 Bytes
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
43
44
45
//
// KSCrashInstallationFile.m
// TestCrash
//
// Created by zhangjunbo on 14-7-28.
// Copyright (c) 2014年 ZhangJunbo. All rights reserved.
//
#import "KSCrashInstallationFile.h"
#import "KSCrashInstallation+Private.h"
#import "ARCSafe_MemMgmt.h"
#import "KSSingleton.h"
#import "KSCrashReportSinkFile.h"
@implementation KSCrashInstallationFile
IMPLEMENT_EXCLUSIVE_SHARED_INSTANCE(KSCrashInstallationFile)
@synthesize fileDir = _fileDir;
- (id) init
{
if((self = [super initWithRequiredProperties:nil]))
{
}
return self;
}
- (void) dealloc
{
as_release(_url);
as_release(_userName);
as_release(_userEmail);
as_superdealloc();
}
- (id<KSCrashReportFilter>) sink
{
KSCrashReportSinkFile* sink = [KSCrashReportSinkFile sinkWithFileDir:self.fileDir];
return [KSCrashReportFilterPipeline filterWithFilters:[sink defaultCrashReportFilterSet], nil];
}
@end