-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Deprecate org.jetbrains.compose.ui.tooling.preview.Preview #5453
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
Conversation
… in favor of androidx.compose.ui.tooling.preview.Preview
MatkovIvan
left a comment
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.
Please deprecate PreviewParameterProvider and alias in gradle plugin too
…nd PreviewParameterProvider as well
75a25db to
06001d2
Compare
Deprecated, thanx |
terrakok
left a comment
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.
Isn't better to wrap package and module names into backticks or square brackets?
| @Deprecated( | ||
| "Use org.jetbrains.compose.ui:ui-tooling-preview module instead", | ||
| ReplaceWith("compose.preview") | ||
| ) | ||
| val uiToolingPreview = composeDependency("org.jetbrains.compose.components:components-ui-tooling-preview") |
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.
In this case, I'd avoid to use ReplaceWith because the message and the action is counterintuitive 🤯
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.
It is just for users convinience. compose.preview is alias to org.jetbrains.compose.ui:ui-tooling-preview. Until we have the DSL at all, it seems we can just replace
I thought about it but grepped |
|
@pjBooms Please change "Highlights" to "Migration Notes" in release notes. Rules for choosing is documented here - https://github.com/JetBrains/compose-multiplatform/blob/master/tools/changelog/PR_FORMAT.md#possible-sections |
|
@MatkovIvan done, thanx for noting it |
Deprecate
org.jetbrains.compose.ui.tooling.preview.Previewannotation in favor ofandroidx.compose.ui.tooling.preview.PreviewFixes CMP-4869
Release Notes
Migration Notes - Multiple Platforms
org.jetbrains.compose.ui.tooling.preview.Previewannotation in favor ofandroidx.compose.ui.tooling.preview.Previewto reduce variety of Preview annotations