@@ -87,15 +87,11 @@ - (void)prepareAndSubmitReport:(FIRCLSInternalReport *)report
8787 // symbolication operation may be computationally intensive.
8888 FIRCLSApplicationActivity (
8989 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+ }];
9995
10096 // Run on-device symbolication before packaging if we should process
10197 if (shouldProcess) {
@@ -177,7 +173,8 @@ - (void)uploadPackagedReportAtPath:(NSString *)path
177173
178174 FIRCLSReportAdapter *adapter = [[FIRCLSReportAdapter alloc ] initWithPath: path
179175 googleAppId: self .googleAppID
180- installIDModel: self .installIDModel];
176+ installIDModel: self .installIDModel
177+ fiid: self .fiid];
181178
182179 GDTCOREvent *event = [self .googleTransport eventForTransport ];
183180 event.dataObject = adapter;
0 commit comments