0.8.0 #1812
0.8.0
#1812
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New:
flex(double)
modifier for layouts which acts as a weight along the main axis.dangerZone { }
DSL to theredwood { }
Gradle extension which allows enabling Compose reports and metrics. Currently these features break build caching as Compose forces the use of absolute paths in the Kotlin compiler arguments when in use (hence why they're marked as dangerous).BackHandler
composable provides a callback for handling hardware back affordances (currently only on Android).frameClock
onStandardAppLifecycle
to allow monitoring host frames.CodeListener.onUncaughtException
notifies of any uncaught exceptions which occur in Treehouse guest code.Box
widget which stacks children on top of each other. This is currently only implemented for Android views and iOS UIKit.rememberSaveable
in plain Redwood compositions.LazyListState
can now setanimated=true
for an animated scroll.ziplineCreated
,manifestReady
, andcodeLoadSkippedNotFresh
event callbacks to TreehouseEventListener
.Changed:
margin-inline-start
andmargin-inline-end
for the start and end margin, respectively, for the HTML DOM layout bindings.TestRedwoodComposition
now accepts only the initialUiConfiuration
and exposes aMutableStateFlow
for changing its value over time.TreehouseLayout
now defines a default ID to allow state saving and restoration to work. Note that this will only work when a single instance is present in the hierarchy. If you have multiple, supply your own unique IDs.RedwoodView
forHTMLElement
now reports density changes to theUiConfiguration
.TreehouseAppContent.preload
is now idempotent.LazyList
on iOS has changed fromUICollectionView
toUITableView
, and changes to the backing data are now reported granularly rather than reloading everything.rememberSaveable
inside Treehouse.TreehouseApp
argument toCodeListener
. Combined with the new uncaught exception callback, this provides an easy way to restart a Treehouse application on a crash.EventListener.Factory
instances are now supplied as part of aTreehouseApp
instead of aTreehouseAppFactory
. This more closely scopes them with the lifetime of theZipline
instance.Fixed:
@Stable
to prevent needless recomposition.RedwoodContent
composable recomposes or is removed from the composition.UIViewChildren
indexes children usingtypedArrangedSubviews
when removing views from aUIStackView
.data object
modifiers in the schema.CodeListener
forTreehouseContent
to avoid unneccessary recomposition on creation.TreehouseUi.start
, fall back to older API signature when newer one does not match. This is needed because an addiitonal parameter was added in newer versions, but older guest code may have the old signature.This version works with Kotlin 1.9.22 by default.
This discussion was created from the release 0.8.0.
Beta Was this translation helpful? Give feedback.
All reactions