Skip to content
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

Merged
merged 2 commits into from Jan 19, 2017

Conversation

guperrot
Copy link
Member

The sync version is no longer available as a public method, and the async method loses its suffix.

The sync version is no longer available as a public method, and the async method loses its suffix.
@guperrot guperrot requested a review from jaeklim January 18, 2017 20:27
@msftclas
Copy link

Hi @guperrot, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Guillaume Perrot). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

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>() {
Copy link
Contributor

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.

Copy link
Member Author

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() {
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Member Author

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.

@guperrot guperrot force-pushed the error_report_async_api_changes branch from 0b43b3c to 4180f41 Compare January 18, 2017 22:13

import static com.microsoft.azure.mobile.sasquatch.activities.MainActivity.LOG_TAG;

public class GetLastSessionErrorReportFeatureTest {
Copy link
Contributor

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?

Copy link
Member Author

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.

@codecov-io
Copy link

codecov-io commented Jan 18, 2017

Current coverage is 100% (diff: 100%)

Merging #306 into develop will not change coverage

@@           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          

Powered by Codecov. Last update 88f4f33...4180f41

@guperrot guperrot merged commit d5881c4 into develop Jan 19, 2017
@guperrot guperrot deleted the error_report_async_api_changes branch January 19, 2017 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants