-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
6050413
to
d9491c7
Compare
@@ -40,69 +38,70 @@ public object Radiography { | |||
@JvmStatic | |||
@JvmOverloads | |||
public fun scan( | |||
rootView: View? = null, | |||
scanScope: ScanScope = AllWindowsScope, |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filed #72
There was a problem hiding this comment.
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.
Based on #69.
Closes #58.
FocusedWindowViewFilter
is nowFocusedWindowScope
.SlotTable.scan()
is gone.