Skip to content
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

BREAKING: container > navigation #1154

Merged
merged 1 commit into from
Jan 18, 2024
Merged

BREAKING: container > navigation #1154

merged 1 commit into from
Jan 18, 2024

Conversation

rjrjr
Copy link
Contributor

@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
Contributor 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
32 checks passed
@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.

3 participants