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

Increase defensiveness #6

Merged
merged 2 commits into from
Jun 18, 2018
Merged

Conversation

mikehardy
Copy link
Member

@mikehardy mikehardy commented Jun 18, 2018

I took every usage of the API and add defensive checks of return values, and tried to behave appropriately depending on the context if we got an error from the API

This should help with ankidroid/Anki-Android#4617 as I think API consumers were just copy-pasting code from the sample app (like normal people would) and thus their apps were crashing if the API didn't work as expected

I also discovered how to finally expose the source of the deprecation warnings I was getting from the compiler, and de-linted that as a separate commit (it was just a deprecated abstract method we have to override to be concrete, unavoidable)

@timrae timrae merged commit 7d4cc8f into ankidroid:master Jun 18, 2018
@mikehardy mikehardy deleted the increase-defensiveness branch June 18, 2018 16:05
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

2 participants