Skip to content

Conversation

@rjrjr
Copy link
Collaborator

@rjrjr rjrjr commented Jun 10, 2022

Wrapping is finally as simple as it should be.

Also moves ScreenViewRunner to a better home in ScreenViewHolder.kt.

@rjrjr rjrjr requested review from a team and zach-klippenstein as code owners June 10, 2022 01:55
Wrapping is finally as simple as it should be.

Also moves `ScreenViewRunner` to a better home in `ScreenViewHolder.kt`.
* Environment.EMPTY + (ReverseNeutronFlowPolarity to true)
* )
* }
* }
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome examples! Thank-you!

Comment on lines +248 to +251
public inline fun <
reified WrapperT : Screen,
WrappedT : Screen
> forWrapper(
Copy link
Contributor

Choose a reason for hiding this comment

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

This formatting looks odd to me? Can we move the generics up on the same line and the function name too?

Base automatically changed from ray/ssr-800 to main June 10, 2022 16:23
@rjrjr
Copy link
Collaborator Author

rjrjr commented Jun 10, 2022

Uh oh, samples:tictactoe:app:connectedDebugAndroidTest failed in CI but not locally. New flake? Cosmic ray?

@rjrjr rjrjr merged commit 3f7c5c8 into main Jun 10, 2022
@rjrjr rjrjr deleted the ray/ScreenViewFactory-tweaks branch June 10, 2022 17:49
Comment on lines -356 to -362
public inline fun <
reified WrapperT : Screen,
WrappedT : Screen
> ScreenViewFactory<WrappedT>.toUnwrappingViewFactory(
crossinline unwrap: (wrapperScreen: WrapperT) -> WrappedT,
): ScreenViewFactory<WrapperT> =
toUnwrappingViewFactory(unwrap) { _, ws, e, su -> su(unwrap(ws), e) }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I already regret deleting this, probably going to bring it back.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, still no use case.

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.

4 participants