Skip to content

Conversation

@pjBooms
Copy link
Contributor

@pjBooms pjBooms commented Oct 13, 2025

Deprecate org.jetbrains.compose.ui.tooling.preview.Preview annotation in favor of androidx.compose.ui.tooling.preview.Preview

Fixes CMP-4869

Release Notes

Migration Notes - Multiple Platforms

  • Deprecate org.jetbrains.compose.ui.tooling.preview.Preview annotation in favor of androidx.compose.ui.tooling.preview.Preview to reduce variety of Preview annotations

… in favor of androidx.compose.ui.tooling.preview.Preview
Copy link
Member

@MatkovIvan MatkovIvan left a 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

@pjBooms pjBooms force-pushed the pjBooms/deprecate-jetbrains-preview branch from 75a25db to 06001d2 Compare October 14, 2025 09:24
@pjBooms
Copy link
Contributor Author

pjBooms commented Oct 14, 2025

Please deprecate PreviewParameterProvider and alias in gradle plugin too

Deprecated, thanx

Copy link
Member

@terrakok terrakok left a 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?

Comment on lines +116 to 120
@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")
Copy link
Member

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 🤯

Copy link
Contributor Author

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

@pjBooms
Copy link
Contributor Author

pjBooms commented Oct 14, 2025

Isn't better to wrap package and module names into backticks or square brackets?

I thought about it but grepped Deprecated usage and it seems it is not common to wrap into backticks

@pjBooms pjBooms merged commit a68cac4 into master Oct 14, 2025
19 checks passed
@pjBooms pjBooms deleted the pjBooms/deprecate-jetbrains-preview branch October 14, 2025 10:33
@MatkovIvan
Copy link
Member

@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

@pjBooms
Copy link
Contributor Author

pjBooms commented Oct 15, 2025

@MatkovIvan done, thanx for noting it

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