Skip to content

Commit

Permalink
Update API for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
GLinnik21 committed Sep 5, 2024
1 parent b2fa1ce commit 832b63b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Sources/KSCrashSinks/KSCrashReportSinkEMail.m
Original file line number Diff line number Diff line change
Expand Up @@ -281,18 +281,21 @@ - (void)filterReports:(NSArray<id<KSCrashReport>> *)reports onCompletion:(KSCras

- (id<KSCrashReportFilter>)defaultCrashReportFilterSet
{
return [KSCrashReportFilterPipeline
filterWithFilters:[KSCrashReportFilterJSONEncode
filterWithOptions:KSJSONEncodeOptionSorted | KSJSONEncodeOptionPretty],
[KSCrashReportFilterGZipCompress filterWithCompressionLevel:-1], self, nil];
return [[KSCrashReportFilterPipeline alloc] initWithFilters:@[
[[KSCrashReportFilterJSONEncode alloc] initWithOptions:KSJSONEncodeOptionSorted | KSJSONEncodeOptionPretty],
[[KSCrashReportFilterGZipCompress alloc] initWithCompressionLevel:-1],
self,
]];
}

- (id<KSCrashReportFilter>)defaultCrashReportFilterSetAppleFmt
{
return [KSCrashReportFilterPipeline
filterWithFilters:[KSCrashReportFilterAppleFmt filterWithReportStyle:KSAppleReportStyleSymbolicatedSideBySide],
[KSCrashReportFilterStringToData filter],
[KSCrashReportFilterGZipCompress filterWithCompressionLevel:-1], self, nil];
return [[KSCrashReportFilterPipeline alloc] initWithFilters:@[
[[KSCrashReportFilterAppleFmt alloc] initWithReportStyle:KSAppleReportStyleSymbolicatedSideBySide],
[KSCrashReportFilterStringToData new],
[[KSCrashReportFilterGZipCompress alloc] initWithCompressionLevel:-1],
self,
]];
}

@end
Expand Down

0 comments on commit 832b63b

Please sign in to comment.