File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
- # Pending
1
+ # Unreleased
2
+ * Fix a crash related to FPRSessionDetails. (#8691 )
3
+
4
+ # Version 8.8.0
2
5
* Create a random number of delay for remote config fetch during app starts.
3
6
* Fix log spamming when Firebase Performance is disabled. (#8423 , #8577 )
4
7
* Fix heap-heap-buffer overflow when decoding strings. (#8628 )
Original file line number Diff line number Diff line change @@ -36,12 +36,13 @@ - (instancetype)initWithSessionId:(NSString *)sessionId options:(FPRSessionOptio
36
36
- (FPRSessionDetails *)copyWithZone : (NSZone *)zone {
37
37
FPRSessionDetails *detailsCopy = [[[self class ] allocWithZone: zone] initWithSessionId: _sessionId
38
38
options: _options];
39
+ detailsCopy.sessionCreationTime = _sessionCreationTime;
39
40
return detailsCopy;
40
41
}
41
42
42
43
- (NSUInteger )sessionLengthInMinutes {
43
44
NSTimeInterval sessionLengthInSeconds = ABS ([self .sessionCreationTime timeIntervalSinceNow ]);
44
- return (sessionLengthInSeconds / 60 );
45
+ return (NSUInteger )( sessionLengthInSeconds / 60 );
45
46
}
46
47
47
48
- (BOOL )isEqual : (FPRSessionDetails *)detailsObject {
Original file line number Diff line number Diff line change @@ -29,6 +29,17 @@ - (void)testInstanceCreation {
29
29
XCTAssertNotNil (details);
30
30
}
31
31
32
+ /* * Validates object copy contains same details as the source. */
33
+ - (void )testInstanceCopy {
34
+ FPRSessionDetails *details = [[FPRSessionDetails alloc ] initWithSessionId: @" random"
35
+ options: FPRSessionOptionsNone];
36
+ FPRSessionDetails *detailsCopy = [details copy ];
37
+ XCTAssertEqual (details.sessionId , detailsCopy.sessionId );
38
+ XCTAssertEqual (details.options , detailsCopy.options );
39
+ XCTAssertEqual (details.sessionLengthInMinutes , detailsCopy.sessionLengthInMinutes );
40
+ XCTAssertNotNil (details);
41
+ }
42
+
32
43
/* * Validated that the details are valid. */
33
44
- (void )testDetailsData {
34
45
FPRSessionDetails *details = [[FPRSessionDetails alloc ] initWithSessionId: @" random"
You can’t perform that action at this time.
0 commit comments