-
Notifications
You must be signed in to change notification settings - Fork 101
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
Import workflow-kotlin-compose repo into the compose/ directory. #301
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add workaround for Nexus issue with sha256/512 checksums.
Remove unused JMH dependencies and configuration.
* zachklipp/cleanup-dependencies: Remove unused dependencies.
Upgrade workflow dependencies to latest version.
Cleanup how ComposableViewFactory handles initial rendering.
`ComposeWorkflow` is like a `StatelessWorkflow`, but it has a special `render` method: it's a `@Composable` function, and it functions like the body of a `bindCompose` lambda where the rendering is just the workflow's props and a `Sink` accepting `OutputT`s.
* zachklipp/composeworkflow: Introduce ComposeWorkflow, a self-rendering Workflow.
This is the Compose analog to `WorkflowViewStub`, and delegates to `WorkflowViewStub` except when the child `ViewFactory` was also created with `bindCompose`. In that case, it just invokes that factory's Composable function directly to avoid jumping back out into legacy View land.
Add the ability to display nested renderings with bindCompose.
…pose factories. Also introduces a `ComposeViewFactoryRoot` `ViewEnvironment` key to allow "initializing" ambients and other compose context for all nested composables. Fixes #9.
Make nested bindCompose factories child compositions of outer bindCompose factories.
Requires forcing the version of the coroutine libraries that the Workflow core artifacts transitively bring in down to 1.3.0, due to a bug in version dev10 of Compose (see #13, and [this slack message](https://kotlinlang.slack.com/archives/CJLTWPH7S/p1589450805381700?thread_ts=1588232959.054500&cid=CJLTWPH7S)).
Add previews to composables in samples.
Move all common UI test dependencies into shared setup file.
…h Compose's Preview.
Introduce tooling module with support for previewing ViewBindings with Compose's Preview.
This is the third flavor of integration, it replaces `setContentWorkflow`, `WorkflowLayout`, `WorkflowRunnerViewModel`, etc., and makes it really easy to run a `Workflow` inside a pure Compose app. It's compatible with `ViewEnvironment`/`ViewRegistry`, but doesn't require it – it gives you the root rendering, and you can do whatever you want with it. It also supports running root `ComposeWorkflow`s directly, since they are self-rendering.
Introduce WorkflowContainer for running a workflow inside a Compose app.
This change reorganizes some of the wrapper logic to live closer to related code, and moves a bunch of internal-only helper code into an internal package to make the public API more browseable.
Input to legacy views hosted inside a composition seems to (partially) work now! The positions are a little off, but you can see buttons being clicked. There's a bug in our subcomposition infra that causes infinite rerenders, and prevents updates from actually showing up in legacy views, but I'll fix that in a follow- up.
Upgrade Compose to dev11.
Upgrade gradle to latest version.
Upgrade Compose to latest version.
Upgrade Gradle to latest version.
Upgrade AGP to alpha14.
Upgrade AGP.
Fix the samples not being full-size.
Upgrade compose to alpha06.
This seems to fix #79.
Upgrade Compose to alpha07.
Update indentation to match latest code style.
…d team in CODEOWNERS.
Replace individual UI Systems team members with the ui-systems-android team in CODEOWNERS.
…o the main workflow-kotlin repo.
Move everything into a compose subdirectory to prep for importing into the main workflow-kotlin repo.
…pose * compose/main: (66 commits) Move everything into a compose subdirectory to prep for importing into the main workflow-kotlin repo. Replace individual UI Systems team members with the ui-systems-android team in CODEOWNERS. Update indentation to match latest code style. Upgrade Compose to alpha07. Fix the samples not being full-size. Upgrade compose to alpha06. Upgrade AGP. Upgrade AGP to alpha14. Upgrade Gradle to latest version. Upgrade Compose to latest version. Remove redundant parentheses after @composable annotations. Remove coroutine forced dependency resolution. Upgrade Compose and AGP to latest versions. Upgrade Kotlin to 1.4.10. Upgrade Compose to alpha02. Upgrade AGP to 4.2.0-alpha10. Upgrade gradle to 6.6.1. Upgrade Compose to 1.0.0-alpha01. Upgrade to Kotlin 1.4. Upgrade Gradle to 6.6. ...
Since there are a lot of commits here, note the last one in particular: 6a9257c. This commit excludes the compose directory from some of our build tooling. |
zach-klippenstein
force-pushed
the
zachklipp/import-compose
branch
from
February 4, 2021 21:41
35455c3
to
526d9b5
Compare
zach-klippenstein
force-pushed
the
zachklipp/import-compose
branch
from
February 4, 2021 22:02
526d9b5
to
6a9257c
Compare
rjrjr
approved these changes
Feb 4, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #289.