Skip to content

Commit

Permalink
Add internal modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Mar 19, 2023
1 parent d861720 commit 8f50963
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ sealed interface RoboComponent {
}

companion object {
val defaultChildVisitor: (Any, CaptureOptions) -> List<RoboComponent> =
internal val defaultChildVisitor: (Any, CaptureOptions) -> List<RoboComponent> =
{ platformNode: Any, captureOptions: CaptureOptions ->
when {
hasCompose && platformNode is androidx.compose.ui.platform.AbstractComposeView -> {
Expand Down Expand Up @@ -197,7 +197,7 @@ class CaptureOptions(
) : CaptureType
}

val shouldTakeBitmap: Boolean = when (captureType) {
internal val shouldTakeBitmap: Boolean = when (captureType) {
is CaptureType.Dump -> {
if (captureType.takeScreenShot && !isNativeGraphicsEnabled()) {
throw IllegalArgumentException("Please update Robolectric Robolectric 4.10 Alpha 1 and Add @GraphicsMode(GraphicsMode.Mode.NATIVE) or use takeScreenShot = false")
Expand All @@ -218,7 +218,6 @@ internal val CaptureOptions.CaptureType.roboComponentChildVisitor: (Any, Capture
get() {
return when (this) {
is CaptureOptions.CaptureType.Dump -> RoboComponent.defaultChildVisitor

is CaptureOptions.CaptureType.Screenshot -> { _, _ -> listOf() }
}
}
Expand Down

0 comments on commit 8f50963

Please sign in to comment.