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

Cleanup refactor #233

Merged
merged 7 commits into from
Aug 16, 2017
Merged

Cleanup refactor #233

merged 7 commits into from
Aug 16, 2017

Conversation

simonracz
Copy link
Contributor

Main change that could affect iOS is that the cleanup command now sends a parameter stopRunner. iOS can simply ignore it.

PR to let Travis do its job.

@simonracz simonracz merged commit 70d61d3 into master Aug 16, 2017
@simonracz simonracz deleted the cleanup_refactor branch August 16, 2017 08:30
@wix wix locked and limited conversation to collaborators Jul 23, 2018
ReactNativeSupport.removeEspressoIdlingResources(reactNativeHostHolder);
}
} catch (JSONException e) {
Log.e(LOG_TAG, "cleanup cmd doesn't have stopRunner param");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simonracz I'm working on refactoring this switch/case clause (almost done), and couldn't help but wonder whether there was a particular reason no to fallback to a stopRunner=false behavior in case stopRunner was not provided. It's easy to do so using optBoolean("stopRunner", false) (instead of getBoolean()). I'd appreciate your input :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... or should it actually be a fallback to true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @d4vidi ,

The short answer is, I don't remember. :)

In general treat my code as POC. So, feel free to refactor it and double check my decisions.

For this specific case, I think it would be safe to go with optBoolean here.

Cheers,
Simon

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds about right :) so what's left now is to decided whether the default should be true or false :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants