Skip to content

Add Toothpick.hasScope method for check scope in scopes tree.#318

Merged
dlemures merged 6 commits intostephanenicolas:masterfrom
terrakok:feature/check_scope_in_tree
Feb 4, 2019
Merged

Add Toothpick.hasScope method for check scope in scopes tree.#318
dlemures merged 6 commits intostephanenicolas:masterfrom
terrakok:feature/check_scope_in_tree

Conversation

@terrakok
Copy link
Copy Markdown
Contributor

Example of usage:
We can use it method for first initialization UI scope after Activity restore on Android OS.

At the moment we should to do like this:
BaseFragment.kt
😭😭😭

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 14, 2019

Coverage Status

Coverage increased (+0.09%) to 95.646% when pulling 2fc05f1 on terrakok:feature/check_scope_in_tree into 5f3b2a8 on stephanenicolas:master.

@rovkinmax
Copy link
Copy Markdown

Nice! I've been waiting for this feature for a long time

@terrakok
Copy link
Copy Markdown
Contributor Author

@stephanenicolas @dlemures what do you think about it?

@dlemures dlemures mentioned this pull request Jan 31, 2019
23 tasks
@stephanenicolas stephanenicolas added this to the 2.1 milestone Feb 1, 2019
@terrakok
Copy link
Copy Markdown
Contributor Author

terrakok commented Feb 2, 2019

@stephanenicolas done 👌

//GIVEN

//WHEN
Boolean isFooScopeOpen = Toothpick.isScopeOpen("foo");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

please use a small b boolean.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops :) It's Kotlins habit

@stephanenicolas
Copy link
Copy Markdown
Owner

We will be glad to merge and release after the comments are addressed. Thx @terrakok

@dlemures
Copy link
Copy Markdown
Collaborator

dlemures commented Feb 4, 2019

Looks great :)

@dlemures dlemures merged commit 3b7256e into stephanenicolas:master Feb 4, 2019
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.

6 participants