-
Notifications
You must be signed in to change notification settings - Fork 70
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
Rename ContainerHints to ViewEnvironment to match Swift. #1005
Conversation
febc382
to
c67f97e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed a few:
~/Development/square/workflow/kotlin zachklipp/viewenvironment git grep ContainerHint -- *.kt
samples/containers/android/src/main/java/com/squareup/sample/container/panel/ScrimContainer.kt: viewConstructor = { initialRendering, initialContainerHints, contextForNewView, _ ->
samples/containers/android/src/main/java/com/squareup/sample/container/panel/ScrimContainer.kt: bindShowRendering(initialRendering, initialContainerHints) { rendering, environment ->
workflow-ui/core-android/src/main/java/com/squareup/workflow/ui/ViewEnvironment.kt:typealias ContainerHints = ViewEnvironment
workflow-ui/core-android/src/main/java/com/squareup/workflow/ui/WorkflowViewStub.kt: * containerHints: ContainerHints
Also, do the *.api
files need to be updated?
"Renamed to ViewEnvironment.", | ||
replaceWith = ReplaceWith("ViewEnvironment", "com.squareup.workflow.ui.ViewEnvironment") | ||
) | ||
typealias ContainerHints = ViewEnvironment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Should you do the same for the key type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's used as ubiquitously (at least an order of magnitude less common to define new keys than to reference the container type), so I think we can just update those references immediately.
c67f97e
to
ac4fe0d
Compare
Keeps `ContainerHints` around as a deprecated type alias with replacement action. Closes #1000.
ac4fe0d
to
38d2d59
Compare
Only remaining red shard is an iOS error, this is ready to merge. |
Closes #1000.
Keeps
ContainerHints
around as a deprecated type alias with replacement action.