Skip to content

Commit cb17c3f

Browse files
committed
address comments
1 parent 3fa1f1b commit cb17c3f

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=19.0.4
1+
version=19.1.0
22
latestReleasedVersion=19.0.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=19.0.4
1+
version=19.1.0
22
latestReleasedVersion=19.0.3

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/CrashlyticsController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ Task<Void> deleteUnsentReports() {
339339
return unsentReportsHandled.getTask();
340340
}
341341

342-
Void submitAllReports(Task<Settings> settingsDataTask) {
342+
void submitAllReports(Task<Settings> settingsDataTask) {
343343
if (!reportingCoordinator.hasReportsToSend()) {
344344
// Just notify the user that there are no reports and stop.
345345
Logger.getLogger().v("No crash reports are available to be sent.");
346346
unsentReportsAvailable.trySetResult(false);
347-
return null;
347+
return;
348348
}
349349
Logger.getLogger().v("Crash reports are available to be sent.");
350350

@@ -393,7 +393,6 @@ public Task<Void> then(@Nullable Settings appSettingsData) throws Exception {
393393
});
394394
}
395395
});
396-
return null;
397396
}
398397

399398
// region Internal "public" API for data capture

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/CrashlyticsCore.java

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -224,19 +224,11 @@ public boolean onPreExecute(AppData appData, SettingsProvider settingsProvider)
224224
/** Performs background initialization asynchronously on the common worker. */
225225
@CanIgnoreReturnValue
226226
public Task<Void> doBackgroundInitializationAsync(SettingsProvider settingsProvider) {
227-
return crashlyticsWorkers.common.submit(
228-
() -> {
229-
try {
230-
doBackgroundInitialization(settingsProvider);
231-
} catch (Exception e) {
232-
Logger.getLogger().e(e.toString());
233-
}
234-
});
227+
return crashlyticsWorkers.common.submit(() -> doBackgroundInitialization(settingsProvider));
235228
}
236229

237230
/** Performs background initialization synchronously on the calling thread. */
238-
@CanIgnoreReturnValue
239-
private Void doBackgroundInitialization(SettingsProvider settingsProvider) throws Exception {
231+
private void doBackgroundInitialization(SettingsProvider settingsProvider) {
240232
CrashlyticsWorkers.checkBackgroundThread();
241233
// create the marker for this run
242234
markInitializationStarted();
@@ -259,13 +251,10 @@ private Void doBackgroundInitialization(SettingsProvider settingsProvider) throw
259251
Logger.getLogger().w("Previous sessions could not be finalized.");
260252
}
261253

262-
Task<Settings> settings = settingsProvider.getSettingsAsync();
263-
controller.submitAllReports(settings);
264-
return null;
254+
controller.submitAllReports(settingsProvider.getSettingsAsync());
265255
} catch (Exception e) {
266256
Logger.getLogger()
267257
.e("Crashlytics encountered a problem during asynchronous initialization.", e);
268-
throw e;
269258
} finally {
270259
// The only thing that compels us to leave the marker and start synchronously next time
271260
// is not executing all the way through this method. That would indicate that we perhaps

0 commit comments

Comments
 (0)