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
Conversation
The sync version is no longer available as a public method, and the async method loses its suffix.
Hi @guperrot, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
@@ -55,16 +56,15 @@ protected void onCreate(Bundle savedInstanceState) { | |||
MobileCenter.start(getApplication(), getAppSecret(), Analytics.class, Crashes.class); | |||
|
|||
Log.i(LOG_TAG, "Crashes.hasCrashedInLastSession=" + Crashes.hasCrashedInLastSession()); | |||
new AsyncTask<Void, Void, Void>() { | |||
Crashes.getLastSessionCrashReport(new ResultCallback<ErrorReport>() { |
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
*/ | ||
@Nullable | ||
@WorkerThread | ||
public static ErrorReport getLastSessionCrashReport() { |
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.
Instead of this, can you call getInstance().getInstanceLastSessionCrashReport()
directly from Xamarin?
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.
Maybe not because it is private?
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.
I have to check something before I can answer that.
0b43b3c
to
4180f41
Compare
|
||
import static com.microsoft.azure.mobile.sasquatch.activities.MainActivity.LOG_TAG; | ||
|
||
public class GetLastSessionErrorReportFeatureTest { |
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.
Do you really want to have Test
at the end of the class name?
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.
Yeah, it's a feature test, the one for get last session error report. So it's a get last session error report feature test.
Current coverage is 100% (diff: 100%)@@ develop #306 diff @@
=====================================
Files 60 60
Lines 2725 2725
Methods 0 0
Messages 0 0
Branches 499 499
=====================================
Hits 2725 2725
Misses 0 0
Partials 0 0
|
The sync version is no longer available as a public method, and the async method loses its suffix.