Repository navigation
Releases
Releases · Apadmi-Engineering/CMPDevicePreview
v0.1.2
v0.1.1
v0.1.0
0.1.0 (2026-10-22)
⚠ BREAKING CHANGES
- panelItems, panelTitle, panelIcon and isAttributionVisible are removed from DeviceWithConfigurationView and ConfigurationView. Pass
panelinstead:- panelItems = listOf({ A() }) -> panel = { defaults(); item { A() } }
- panelTitle / panelIcon -> panel = { defaults { header.title = ...; header.icon = { ... } } }
- isAttributionVisible = false -> panel = { defaults { attribution.isVisible = false } }
- DeviceConfiguration has a new language field, which changes its constructor, copy and componentN.
- the entries of
DeviceKind,DeviceType,Backdrop,DeviceOrientationandAppearanceare renamed, such asBackdrop.DARKtoBackdrop.DarkandDeviceType.IOStoDeviceType.Ios. DeviceConfiguration.isPortraitandisDarkModeare replaced byorientation: DeviceOrientationandappearance: Appearance.ConfigurationViewtakesinitialSimulatedDeviceandinitialPreviewSettings, which its reset button returns to, so the button now resets the device too and goes back to the host's initial values rather than the library defaults.DeviceWithConfigurationViewtakesisPersistenceEnabled, on by default.
Features
v0.0.2
v0.0.1
0.0.1 (2026-10-19)
⚠ BREAKING CHANGES
- keep the preview's state when the window crosses the panel breakpoint
- describe devices in dp, with their kind and pixel ratio
Features
- a responsive sample app, and window size classes in the preview (d70ce57)
- add a "Built with CMPDevicePreview" link to the panel (#20) (b3685d1)
- add a floating button to turn preview mode back on (#17) (6a2f9da)
- add macOS (Apple silicon) target (#9) (c1fc9d9)
- add preview wrapper to non web target samples (a23d165)
- all customisation of panel title and icon (#19) (6affe2b)
- animate turning the device between portrait and landscape (e1473f2)
- chip hover and UI tweaks (#16) (8b32c7a)
- freeform device, resized by dragging any corner (09c6b53)
- let app code use Compose's own insets and theme in the preview (dc17447)
- let the caller add their own items to the configuration panel (8c7748f)
- let the mouse act as a finger on touchscreen devices (012af8d)
- port the Flutter device frames and sizes (f038dfa)
- present devices as frames, with a note that nothing is simulated (27cbab4)
- redesign the configuration panel and device picker (4491c16)
- sample: add status bar background and icon controls (1f68190)
- setup renovate and release-please (#3) (c8fbc1c)
- show the device on a dot grid, with a margin around it (b51a77f)
- simulate the status bar and software keyboard (2142e1c)
- start the preview on the Galaxy S25 (c3ce8a2)
- text size, display size, layout direction, backdrop and screenshots in the panel (9118411)
- wire up release please and rennovate (c8fbc1c)
Bug Fixes
- currentColor, screenshot file names and the signing check (a38cc2b)
- keep the preview's state when the window crosses the panel breakpoint (8776f9e)
- lock desktop windows to landscape (9f563c0)
- sample: restore the installable Android app (298a95a)
- stop a mouse drag on the simulated screen from clicking (d1a7315)
- text colour in sample heading (127277c)
Code Refactoring
- describe devices in dp, with their kind and pixel ratio (92200fc)