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

resolve setDebug promise on Android & ios with passed-in value #86

Merged
merged 1 commit into from
Mar 27, 2016

Conversation

pragunvohra
Copy link
Contributor

Worth noting that it looks like doing the following:

initSession()
setDebug(true)
setDebug(false)

will currently leave the debug state as true since false is pretty much
a no-op. This commit at least fixes (on iOS) so that if you do
initSession() then setDebug(false), it doesn’t set debug mode to on.

Both platforms now return a proper bool value of true/false.

Worth noting that it looks like doing the following:

initSession()
setDebug(true)
setDebug(false)

will currently leave the debug state as true since false is pretty much
a no-op. This commit at least fixes (on iOS) so that if you do
initSession() then setDebug(false), it doesn’t set debug mode to on.

Both platforms now return a proper bool value of true/false.
@Sarkar
Copy link
Contributor

Sarkar commented Mar 26, 2016

I noticed this issue in my testing as well - I'm going to look at this over the weekend on Android, too, and try to add to this PR & get it merged in.

thanks for your contributions!

@pragunvohra
Copy link
Contributor Author

Sounds good. No problem.

@aaustin
Copy link
Contributor

aaustin commented Mar 27, 2016

Looks great 👍

@aaustin aaustin merged commit 47024d4 into BranchMetrics:master Mar 27, 2016
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

3 participants