Skip to content

Merge main into ray/ui-update #724

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

Merged
merged 22 commits into from
Apr 14, 2022
Merged

Merge main into ray/ui-update #724

merged 22 commits into from
Apr 14, 2022

Conversation

rjrjr
Copy link
Contributor

@rjrjr rjrjr commented Apr 14, 2022

This was mostly a mechanical merge except for the poetry benchmark app. @steve-the-edwards, can you confirm I didn't break that? Also curious about your and @RBusarow's reaction to the conversion of MayBeLoadingScreen to a typealias, and our ability to delete the LoadingContainer View subclass entirely.

  • origin/main:
    Bump tutorials to 1.7.0
    Bump okio to 3.0.0
    Finish releasing v1.7.0
    Releasing v1.7.0
    Fixes a typo in step 1 of RELEASING.md
    Exclude Benchmarks for connectedCheck verification instructions
    Fixes memory leak in ViewStateCache.
    Update AGP versions and OptIn Notation
    Refactor Perf Poetry to add Related Benchmarks
    699: Add simulated performance config to Poetry
    Allow repeatOnLifecycle state to be configurable.

c-soon and others added 20 commits March 18, 2022 14:51
While most workflow use cases is likely to be inside an Activity and can specify renderings
to be updated while in the Lifecycle.State.STARTED state, there are certain use cases
where we want the workflow to depend on the application's lifecycle (using ProcessLifecycleOwner.)
which will not work when calling repeatOnLifecycle with Lifecycle.State.STARTED as this state event
is tied to Activities.
…ayout

Allow repeatOnLifecycle state to be configurable.
Use default in the existing Poetry apps but specify simulated config for Performance-Poetry.
699: Add simulated performance config to Poetry
Refactor Perf Poetry to add Related Benchmarks
Update AGP versions, Gradle Versions, and OptIn Notation
`ViewStateCache` was `Parcelable`, in an attempt to simplify `View.onSaveInstanceState()` chores for client container views. That became a source of memory leaks once we added a `WorkflowSavedStateRegistryAggregator` to it, so we've dialed back the convenience.

`ViewStateCache` now offers `save(): Saved` and `restore(saved: Saved)`, where `Saved` is a simple `Parcelable`. Client views are responsible for managing their own subclasses of `View.BaseSavedState`, which is sad but not terribly unusual.
Exclude Benchmarks for connectedCheck verification instructions
* origin/main:
  Bump tutorials to 1.7.0
  Bump okio to 3.0.0
  Finish releasing v1.7.0
  Releasing v1.7.0
  Fixes a typo in step 1 of RELEASING.md
  Exclude Benchmarks for connectedCheck verification instructions
  Fixes memory leak in ViewStateCache.
  Update AGP versions and OptIn Notation
  Refactor Perf Poetry to add Related Benchmarks
  699: Add simulated performance config to Poetry
  Allow repeatOnLifecycle state to be configurable.
import kotlin.reflect.KClass

@OptIn(WorkflowUiExperimentalApi::class)
object LoaderSpinner : AndroidOverlay<LoaderSpinner> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@steve-the-edwards This replaces LoaderContainer. I'm not thrilled that it requires the author to instantiate the Dialog themselves, where with the old one they could just focus on building a view as usual.

I'm inclined to follow up by adding a vanilla Overlay wrapper type that makes any arbitrary screen a full bleed dialog, but that's too much for a merge PR.

@rjrjr
Copy link
Contributor Author

rjrjr commented Apr 14, 2022

This was mostly a mechanical merge except for the poetry benchmark app. @steve-the-edwards, can you confirm I didn't break that?

Oops, I did, crashes on navigation. Following up…

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.

Nice. All makes sense to me. I'll look out for it when you merge back as I have a PR in flight.

@rjrjr
Copy link
Contributor Author

rjrjr commented Apr 14, 2022

Not sure what's going on. LoaderSpinner implements AndroidOverlay but the as check to that effect in OverlayDialogFactoryFinder is failing.

@rjrjr
Copy link
Contributor Author

rjrjr commented Apr 14, 2022

Oops:
Screen Shot 2022-04-14 at 12 56 06 PM

@rjrjr
Copy link
Contributor Author

rjrjr commented Apr 14, 2022

Fixed benchmark poetry. Its spinner is badly sized, another reason to follow up with the Overlay work suggested above. Chatted with Steve, will merge this as is in the meantime.

@rjrjr rjrjr force-pushed the ray/catchup-1.7.0 branch from 03181e6 to 5e72bed Compare April 14, 2022 20:54
@rjrjr rjrjr merged commit 8991cda into ray/ui-update Apr 14, 2022
@rjrjr rjrjr deleted the ray/catchup-1.7.0 branch April 14, 2022 22:16
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.

5 participants