Skip to content

Conversation

@rjrjr
Copy link
Collaborator

@rjrjr rjrjr commented Jan 17, 2024

In preparation for (finally!) locking down the workflow-ui API, renames the com.squareup.workflow1.ui.container package to navigation, since that's the common theme of nearly everything in there. I think this simple change should help make our navigation story a bit more self documentating. Yes, I'll still write navigation docs.

Other changes:

  • View.setBackHandler moves from ui to ui.navigation
  • EnvironmentScreen, Screen.withEnvironment(), Screen.withRegistry() which this PR moves up to the ui package. References to these had bled out into other spots already, so this feels like a move in the right direction.
  • OnBackPressedDispatcherOwnerKey moves from ui to ui.androidx

Also, note that the packages of the deprecated classes in the container-android and container-common modules were not changed, since they're about to be deleted.

@rjrjr rjrjr requested review from a team and zach-klippenstein as code owners January 17, 2024 19:52
@rjrjr rjrjr force-pushed the ray/container-is-navigation branch 3 times, most recently from 51083d9 to 7f37cfc Compare January 18, 2024 00:51
Copy link
Contributor

@ekeitho ekeitho left a comment

Choose a reason for hiding this comment

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

LGTM

@rjrjr rjrjr force-pushed the ray/container-is-navigation branch from 7f37cfc to ed2ecc4 Compare January 18, 2024 01:52
@rjrjr
Copy link
Collaborator Author

rjrjr commented Jan 18, 2024

Force push fixes file name of ViewSetBackHandler.kt and improves commit message.

Copy link
Collaborator

@ijwhelan ijwhelan left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just one place where Android Studio tried to be too helpful

@rjrjr rjrjr force-pushed the ray/container-is-navigation branch from ed2ecc4 to 0937f6d Compare January 18, 2024 20:17
@rjrjr rjrjr enabled auto-merge January 18, 2024 20:22
In preparation for (finally!) locking down the workflow-ui API, renames the `com.squareup.workflow1.ui.container` package to `navigation`, since that's the common theme of nearly everything in there. I think this simple change should help make our navigation story a bit more self documentating. Yes, I'll still write navigation docs.

Other changes:

 * `View.setBackHandler` moves from `ui` to `ui.navigation`
 * `EnvironmentScreen`, `Screen.withEnvironment()`, `Screen.withRegistry()` which this PR moves up to the `ui` package. References to these had bled out into other spots already, so this feels like a move in the right direction.
 * `OnBackPressedDispatcherOwnerKey` moves from `ui` to `ui.androidx`

Also, note that the packages of the deprecated classes in the `container-android` and `container-common` modules were not changed, since they're about to be deleted.
@rjrjr rjrjr force-pushed the ray/container-is-navigation branch from 0937f6d to 6ccfc5a Compare January 18, 2024 20:23
@rjrjr rjrjr changed the title container > navigation BREAKING: container > navigation Jan 18, 2024
@rjrjr rjrjr merged commit 821c5dd into main Jan 18, 2024
@rjrjr rjrjr deleted the ray/container-is-navigation branch January 18, 2024 20:37
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