File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed
Public/FirebaseCrashlytics Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+ - [ added] Added stackFrameWithAddress API for recording custom errors that are symbolicated on the backend (#5975 ).
3
+
1
4
# v4.5.0
2
5
- [ fixed] Fixed a compiler warning and removed unused networking code (#6210 ).
3
6
- [ fixed] Fixed a crash that occurred rarely when trying to restart a URL session task without a valid request (#5984 ).
Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ - (instancetype)initWithSymbol:(NSString *)symbol file:(NSString *)file line:(NS
47
47
return self;
48
48
}
49
49
50
+ + (instancetype )stackFrameWithAddress : (NSUInteger )address {
51
+ FIRStackFrame *frame = [self stackFrame ];
52
+
53
+ [frame setAddress: address];
54
+
55
+ return frame;
56
+ }
57
+
50
58
+ (instancetype )stackFrameWithSymbol : (NSString *)symbol file : (NSString *)file line : (NSInteger )line {
51
59
return [[FIRStackFrame alloc ] initWithSymbol: symbol file: file line: line];
52
60
}
@@ -57,14 +65,6 @@ + (instancetype)stackFrame {
57
65
return [[self alloc ] init ];
58
66
}
59
67
60
- + (instancetype )stackFrameWithAddress : (NSUInteger )address {
61
- FIRStackFrame *frame = [self stackFrame ];
62
-
63
- [frame setAddress: address];
64
-
65
- return frame;
66
- }
67
-
68
68
+ (instancetype )stackFrameWithSymbol : (NSString *)symbol {
69
69
FIRStackFrame *frame = [self stackFrame ];
70
70
Original file line number Diff line number Diff line change @@ -36,6 +36,16 @@ NS_SWIFT_NAME(StackFrame)
36
36
*/
37
37
- (instancetype )initWithSymbol:(NSString *)symbol file:(NSString *)file line:(NSInteger )line;
38
38
39
+ /* *
40
+ * Creates a symbolicated Stack Frame from an address. The address will be
41
+ * symbolicated in the Crashlytics backend for the customer and reported in the
42
+ * Crahslytics dashboard with the appropriate file name and line number. If an
43
+ * invalid address is provided it will appear in the dashboard as <missing>.
44
+ *
45
+ * @param address - the address where the exception occurred
46
+ */
47
+ + (instancetype )stackFrameWithAddress:(NSUInteger )address;
48
+
39
49
/* *
40
50
* Creates a symbolicated Stack Frame with the given required fields. Symbolicated
41
51
* Stack Frames will appear in the Crashlytics dashboard as reported in these fields. *
You can’t perform that action at this time.
0 commit comments