Skip to content

Commit 8f8395a

Browse files
authored
Merge pull request #28 from CrashOps/0.3.04
v0.3.04
2 parents dbf7118 + 0c4a433 commit 8f8395a

File tree

10 files changed

+488
-168
lines changed

10 files changed

+488
-168
lines changed

CrashOps.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "CrashOps"
19-
s.version = "0.2.17"
20-
s.summary = "CrashOps helps you monitor your app's stability."
19+
s.version = "0.3.04"
20+
s.summary = "CrashOps monitors your app's stability and vulnerability."
2121

2222
# This description is used to generate tags and improve search results.
2323
# * Think: What does it do? Why did you write it? What is the focus?
2424
# * Try to keep it short, snappy and to the point.
2525
# * Write the description between the DESC delimiters below.
2626
# * Finally, don't worry about the indent, CocoaPods strips it!
27-
s.description = "CrashOps lets you monitor your app's stability and vulnerability, by giving you error and crash reports, with a supporting platform by CrashOps servers."
27+
s.description = "CrashOps lets you monitor your app's stability and vulnerability by giving you error and crash reports with the supporting platform by CrashOps servers."
2828

2929
s.homepage = "https://github.com/CrashOps/iOS-SDK"
3030
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"

CrashOps/Facade/CrashOps.m

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ @implementation CrashOps
3434
@synthesize isTracingScreens;
3535

3636
- (instancetype)init {
37+
return [CrashOps shared];
38+
}
39+
40+
- (instancetype)initWithCoder:(NSCoder *)coder {
3741
self = [super init];
3842

3943
if (self) {
@@ -59,6 +63,12 @@ - (void)deleteOldReports {
5963
[[KSCrash sharedInstance] deleteAllReports];
6064
}
6165

66+
- (void)setMetadata:(NSMutableDictionary *)metadata {
67+
if ([metadata isKindOfClass: [NSDictionary class]]) {
68+
self.metadata = metadata;
69+
}
70+
}
71+
6272
- (void)throwException {
6373
[NSException raise:@"CrashOps test exception" format: @""];
6474
}
@@ -76,7 +86,7 @@ +(BOOL)isRunningOnDebugMode {
7686
}
7787

7888
+ (NSString *)sdkVersion {
79-
return @"0.2.17";
89+
return @"0.3.04";
8090
}
8191

8292
- (void) crash {
@@ -91,7 +101,7 @@ - (void) crash {
91101
+ (CrashOps *)sharedInstance {
92102
static dispatch_once_t onceToken;
93103
dispatch_once(&onceToken, ^{
94-
_sharedInstance = [[CrashOps alloc] init];
104+
_sharedInstance = [[CrashOps alloc] initWithCoder: nil];
95105
});
96106

97107
return _sharedInstance;
@@ -143,7 +153,7 @@ +(void)initialize {
143153
@end
144154

145155
//! Project version number for CrashOps.
146-
//double CrashOpsVersionNumber = 0.00823;
156+
//double CrashOpsVersionNumber = 0.0304;
147157

148158
//! Project version string for CrashOps.
149-
//const unsigned char CrashOpsVersionString[] = "0.0.823";
159+
//const unsigned char CrashOpsVersionString[] = "0.3.04";

CrashOps/Logic/CrashOpsController.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#import <Foundation/Foundation.h>
1616
#import "ScreenTracer.h"
17+
#import "ScreenDetails.h"
18+
1719
/**
1820
A private class that is responsible on our core actions.
1921
*/
@@ -56,8 +58,15 @@
5658

5759
+(NSString *) toJsonString:(NSDictionary *) jsonDictionary;
5860

61+
-(void) flushToDisk:(ScreenDetails *) screenDetails;
62+
63+
+(NSString *) screenTracesFolderFromSessionId:(NSString *) sessionId;
64+
65+
+ (void) logInternalError:(NSString *) sdkError;
66+
5967
@end
6068

69+
6170
@interface NSMutableDictionary<KeyType, ObjectType> (CO_NilSafeDictionary)
6271

6372
- (BOOL) co_setOptionalObject:(ObjectType)anObject forKey:(KeyType <NSCopying>)aKey;

0 commit comments

Comments
 (0)