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

Introduce ScanScope, a more flexible way to define what to scan. #70

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

zach-klippenstein
Copy link
Collaborator

@zach-klippenstein zach-klippenstein commented Aug 31, 2020

Based on #69.
Closes #58.

FocusedWindowViewFilter is now FocusedWindowScope. SlotTable.scan() is gone.

@@ -40,69 +38,70 @@ public object Radiography {
@JvmStatic
@JvmOverloads
public fun scan(
rootView: View? = null,
scanScope: ScanScope = AllWindowsScope,
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes me happy!

@ExperimentalRadiographyComposeApi
@JvmStatic
@JvmOverloads
fun composeTestTagScope(
Copy link
Contributor

Choose a reason for hiding this comment

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

Might want to explain what a TestTag is and even link to the doc. https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/package-summary#(androidx.compose.ui.Modifier).testTag(kotlin.String)

Applies a tag to allow modified element to be found in tests.

It's not clear how this relates to Radiography.

Copy link
Contributor

Choose a reason for hiding this comment

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

filed #72

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, I linked to the docs in the ViewFilter for test tags, but forgot to do so here.

Base automatically changed from zachklipp/generic-tree-nodes to main September 1, 2020 06:21
@pyricau pyricau merged commit 8951bca into main Sep 1, 2020
@pyricau pyricau deleted the zachklipp/scanscope branch September 1, 2020 06:32
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.

Drop SlotTable.scan, add composable selection support
2 participants