@@ -87,15 +87,11 @@ - (void)prepareAndSubmitReport:(FIRCLSInternalReport *)report
87
87
// symbolication operation may be computationally intensive.
88
88
FIRCLSApplicationActivity (
89
89
FIRCLSApplicationActivityDefault, @" Crashlytics Crash Report Processing" , ^{
90
- // Run this only once because it can be run multiple times in succession,
91
- // and if it's slow it could delay crash upload too much without providing
92
- // user benefit.
93
- static dispatch_once_t regenerateOnceToken;
94
- dispatch_once (®enerateOnceToken, ^{
95
- // Check to see if the FID has rotated before we construct the payload
96
- // so that the payload has an updated value.
97
- [self .installIDModel regenerateInstallIDIfNeeded ];
98
- });
90
+ // Check to see if the FID has rotated before we construct the payload
91
+ // so that the payload has an updated value.
92
+ [self .installIDModel regenerateInstallIDIfNeededWithBlock: ^(NSString *_Nonnull newFIID) {
93
+ self.fiid = [newFIID copy ];
94
+ }];
99
95
100
96
// Run on-device symbolication before packaging if we should process
101
97
if (shouldProcess) {
@@ -177,7 +173,8 @@ - (void)uploadPackagedReportAtPath:(NSString *)path
177
173
178
174
FIRCLSReportAdapter *adapter = [[FIRCLSReportAdapter alloc ] initWithPath: path
179
175
googleAppId: self .googleAppID
180
- installIDModel: self .installIDModel];
176
+ installIDModel: self .installIDModel
177
+ fiid: self .fiid];
181
178
182
179
GDTCOREvent *event = [self .googleTransport eventForTransport ];
183
180
event.dataObject = adapter;
0 commit comments