Skip to content

Add common logic for supporting UiMediaScope in Skiko platforms - #3339

Open
Apolo (ApoloApps) wants to merge 6 commits into
JetBrains:jb-mainfrom
ApoloApps:uiMediaSupportInCommon
Open

Add common logic for supporting UiMediaScope in Skiko platforms#3339
Apolo (ApoloApps) wants to merge 6 commits into
JetBrains:jb-mainfrom
ApoloApps:uiMediaSupportInCommon

Conversation

@ApoloApps

@ApoloApps Apolo (ApoloApps) commented Aug 25, 2026

Copy link
Copy Markdown

Smaller change to support UiMediaScope in skiko platforms

Fixes CMP-10481 (common part)

iOS PR: #3340
Desktop PR: #3341

Release Notes

Features - Multiple Platforms

  • Add support for mediaQuery calls which allows to modify Composables depending on device characteristics

@ApoloApps

Copy link
Copy Markdown
Author

}
}

private object NoOpMediaEnvironment : UiMediaScope {

Choose a reason for hiding this comment

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

Maybe "No-Op" is the wrong name here because UiMediaScope doesn't do any "ops"; it only provides information.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

renamed to EmptyMediaEnvironment

@ApoloApps

Copy link
Copy Markdown
Author

Alexander Maryanovsky (@m-sasha) if everything is fine with this pr, I would like to get it merged asap (when y'all have time obviously). The changes in this pr need to be rebased in other PRs to avoid confusion on those

@m-sasha

Copy link
Copy Markdown

It looks ok to me, but we should have another set of eyes to look first.

@ApoloApps

Copy link
Copy Markdown
Author

What a weird check error, only seems to happen in one and seems related to the android github actions?

The job is failing during Android Emulator setup

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