-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Team decided to do a breaking change in getErrorReport #306
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,14 +263,14 @@ public static boolean hasCrashedInLastSession() { | |
/** | ||
* Provides information about any available crash report from the last session, if it crashed. | ||
* This method is a synchronous call and blocks caller thread. | ||
* Use {@link #getLastSessionCrashReportAsync(ResultCallback)} for asynchronous call. | ||
* Use {@link #getLastSessionCrashReport(ResultCallback)} for asynchronous call. | ||
* | ||
* @return The crash report from the last session if one was set. | ||
* @see #getLastSessionCrashReportAsync(ResultCallback) | ||
* @see #getLastSessionCrashReport(ResultCallback) | ||
*/ | ||
@Nullable | ||
@WorkerThread | ||
public static ErrorReport getLastSessionCrashReport() { | ||
static ErrorReport getLastSessionCrashReport() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of this, can you call There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe not because it is private? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to check something before I can answer that. |
||
return getInstance().getInstanceLastSessionCrashReport(); | ||
} | ||
|
||
|
@@ -279,8 +279,8 @@ public static ErrorReport getLastSessionCrashReport() { | |
* | ||
* @param callback The callback that will receive crash in the last session. | ||
*/ | ||
public static void getLastSessionCrashReportAsync(ResultCallback<ErrorReport> callback) { | ||
getInstance().getInstanceLastSessionCrashReportAsync(callback); | ||
public static void getLastSessionCrashReport(ResultCallback<ErrorReport> callback) { | ||
getInstance().getInstanceLastSessionCrashReport(callback); | ||
} | ||
|
||
/** | ||
|
@@ -306,9 +306,9 @@ private synchronized ErrorReport getInstanceLastSessionCrashReport() { | |
} | ||
|
||
/** | ||
* Implements {@link #getLastSessionCrashReportAsync(ResultCallback)} at instance level. | ||
* Implements {@link #getLastSessionCrashReport(ResultCallback)} at instance level. | ||
*/ | ||
private synchronized void getInstanceLastSessionCrashReportAsync(final ResultCallback<ErrorReport> callback) { | ||
private synchronized void getInstanceLastSessionCrashReport(final ResultCallback<ErrorReport> callback) { | ||
if (mCountDownLatch == null || mCountDownLatch.getCount() <= 0) | ||
HandlerUtils.runOnUiThread(new Runnable() { | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should wait for new binaries for this change. We don't have this method available in jcenter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops