Skip to content

Conversation

@rjrjr
Copy link
Collaborator

@rjrjr rjrjr commented Nov 19, 2020

AndroidViewRendering is implemented by renderings that can provide their own
ViewFactory. ViewRegistry.buildView looks to see if a given rendering
implements that method if it fails to find an entry for it -- note that we
look for a registration first, so ViewRegistry is able override the default.

Given this, it's no longer crucial for developers to define and provide a
ViewRegistry, so we get rid of all the nannying that forced them to provide
one.

Updates the samples to use the new interface and drop their ViewRegistry
instances where possible.

@rjrjr

This comment has been minimized.

@rjrjr

This comment has been minimized.

@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch from 7ac619d to 727ab92 Compare November 19, 2020 02:37
@rjrjr

This comment has been minimized.

@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch from 727ab92 to 4e63f72 Compare November 19, 2020 17:55
@rjrjr rjrjr changed the title Makes ViewRegistry extra for experts instead of torture for the masses. Introduces AndroidViewRendering, de-emphasizes ViewRegistry Nov 19, 2020
@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch 7 times, most recently from 8a2ef20 to 9ec46e7 Compare November 20, 2020 00:06
@rjrjr rjrjr marked this pull request as ready for review November 20, 2020 00:08
@rjrjr rjrjr requested a review from a team as a code owner November 20, 2020 00:08
@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch 5 times, most recently from e9cc34f to 48a52bb Compare November 20, 2020 18:11
@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch from 48a52bb to 28f96d0 Compare November 21, 2020 00:28
@rjrjr
Copy link
Collaborator Author

rjrjr commented Nov 21, 2020

Update renames *View back to *Rendering.

@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch from 28f96d0 to e49d9a9 Compare November 21, 2020 01:40
@rjrjr
Copy link
Collaborator Author

rjrjr commented Nov 21, 2020

Rebasing, rebasing, I can't keep up with Zach!

`AndroidViewRendering` is implemented by renderings that can provide their own
`ViewFactory`. `ViewRegistry.buildView` looks to see if a given rendering
implements that method if it fails to find an entry for it -- note that we
look for a registration first, so `ViewRegistry` is able override the default.

Given this, it's no longer crucial for developers to define and provide a
`ViewRegistry`, so we get rid of all the nannying that forced them to provide
one.

Updates the samples to use the new interface and drop their `ViewRegistry`
instances where possible.
@rjrjr rjrjr force-pushed the ray/shorter-path-to-ViewRendering branch from e49d9a9 to efb518b Compare November 21, 2020 01:49
@rjrjr rjrjr merged commit 990c131 into main Nov 21, 2020
@rjrjr rjrjr deleted the ray/shorter-path-to-ViewRendering branch November 21, 2020 02:38
@rjrjr rjrjr added this to the v1.0.0-beta.1 milestone Nov 21, 2020
Copy link
Contributor

@steve-the-edwards steve-the-edwards left a comment

Choose a reason for hiding this comment

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

Cool; will this be the first in a category of "Platform"ViewRendering interfaces do you think>

@zach-klippenstein
Copy link
Collaborator

The idea was always for workflow to be able to support different ui frameworks. That doesn't change with this. Although we don't have any immediate plans to implement support for other ones at this time.

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