API Changes
PerfettoCaptureandPerfettoTraceRulecan now capture in-process traces and merge them for a target package. I9a00b b/497959820
API Changes
- Renamed
trailingIconparameter totrailingContentin the shape, checked, and selectedDropdownMenuItemoverloads while maintaining binary compatibility. I2ecbd - Added new selection and container color properties to
MenuItemColors, and renamedtrailingIcontotrailingContentin the new colors constructor while maintaining binary compatibility. I20b92 - Improved
ScrollFieldaccessibility and keyboard navigation support. If7477 - Remove
ComponentOverrideAPIs I3784b - Deprecated 2-parameter
SliderState.SaverandRangeSliderState.Saverin favor of new overloads taking steps.SliderStateno longer publicly implementsDraggableState. I7c91b - Graduate
BasicAlertDialogAPI from Experimental If157c - Changed
ButtonGroupScopeinButtonGroupto asealed interface. SplitModifier.animateWidthinto two overloads to allow omittingcompressionLimitand dynamically resolving the layout direction, and changed thecompressionLimitparameter type fromPaddingValuestoDp. I8ef39 - Renamed
TonalToggleButtontoFilledTonalToggleButton. Added smooth border stroke animations toOutlinedToggleButton. DeprecatedToggleButtonDefaults.shapesin favor ofshapesFor. Icb433 - Promote
LinearTrackStopIndicatorSize,LinearIndicatorTrackGapSize, andCircularIndicatorTrackGapSizeto stable. I794d0 - Deprecated
SplitButtonLayoutApi to useSplitButtoninstead Ic9840
Bug Fixes
- Update focus switching in case of error for
TimePickerTextFieldinput inTimePicker.kt. Ieceec - Fixed shape of segmented list item when the list only has a single item. I2ea1c b/479721696
- Update KDocs for
TimePickerDialog.kt. Ia5fb8
API Changes
- Add a utility method to get serial executors. I19fd6 b/532183522
External Contribution
- Merge concurrent-ktx into the concurrent library. All Kotlin extensions are now part of the main concurrent artifact. concurrent-ktx is now an empty artifact for compatibility. Ibaed2
Bug Fixes
- Removed a protobuf dependency with a known security vulnerability from constraintlayout-compose's bundled lint check. Note: since this protobuf dependency is only present on the developer machine as part of running lint (it is not contained inside the library code / included in the APK), the actual security risk here does not affect Android applications using constraintlayout-compose, the risk is only present on the local developer machine. Ia94a8 b/401068466
API Changes
- Added
credentials: List<Credential>property toGetCredentialResponseto support returning multiple credentials. Ifdf66
Bug Fixes
API Changes
- Added
supportedProtocolsoptional parameter toOpenId4VpRegistryconstructor forOpenID4VPprotocol registrations. Id5053 - Added
metadataDisplayTextproperty toVerificationEntryDisplayProperties. I62ba54
Bug Fixes
- Fixed an issue where
explainerandwarningfields were missing from the verification JSON payload generated byOpenId4VpRegistry. I933e07
API Changes
GeneralSecurityException in AeadSerializer is now wrapped in CorruptionException for better CorruptionHandler integration.I26e56 b/514941919
Bug Fixes
- When using
FragmentScenario.launchInContainerthe fragment under test will now be inside of aFragmentContainerView. Ia6273 b/531550353
New features
- Added Lint warning when setting empty background to the Wear Widget document. Ic6475 b/529269573
API Changes
- Added
calculateMinimumRequiredVersionmethods to the API forBrushFamilysubtypes. I338c9 - Expose
AffineTransformcomponent fields Ic2ec3 - Fix memory leak in
InProgressStrokesView, improved experimental partial stroke eraser visual artifacts, improved protobuf representation for custom brush texture layers I6ff86 - Add initializing constructor for
MutableAffineTransform(to matchImmutableAffineTransform) I96ec7 - Add
InProgressStroke.clearIe0032 - Add
toImmutablemethods to data-structures with mutable and immutable subclasses I53835 - KMP migration Icbf38 b/521850119 b/534309122
Bug Fixes
- Adding further support for brush versioning and texture animations. Iea9ba
API Changes
- Add page indicator API for use with the
GlimmerHorizontalPager. This component is bundled by default when using the Pager, but may also be used separately as long as it is provided aGlimmerPagerStateI54990 b/481669397 - Add
ButtonGroupcomponent I26324 b/481662773
Important changes since 1.1.0:
- Started using jspecify nullability annotations.
- Added Kotlin extension functions for
LoaderManagerto make the library easier to use from Kotlin.
API Changes
- Introduce
NavBackStackEntryInfoto expose back stack snapshots during navigation events. This enables richer custom predictive back animations. Icb3b8
Bug Fixes
- The
entryProviderDSL now prioritizesNavEntrybuilt with a key instance, for exampleentry(key = userKey) { ... }overNavEntrybuilt with a key class such asentry<UserKey>{ ... }.Ib5ec9 b/533331924
API Changes
- Added an abstract
WrappedMatchResultclass to wrap anotherDeepLinkMatcher.MatchResult. This allows customized match results layered on top of another one. I7d4dc b/470282247 Added new
BackStackMatcherclass which takes two parameters: a matcher instance, and a builder lambda that provides the input matcher's match result and returns a back stack. Upon a successful match,BackStackMatcherreturns aBackStackMatchResultwhich extendsWrappedMatchResultcontaining the original match result along with the back stack built with the lambda. TheBackStackMatchercan only be created with the newDeepLinkMatcher.withBackStackextension function. Ibf987 b/470282247Added an abstract
DeepLinkSerializerclass that extendsKSerializerto encode and decodevalue : Tas aString.DeepLinkSerializercan be used to serialize non-primitive deep link arguments. Compatible withrememberSaveableandrememberNavBackStack. Id3c9f b/470282247DeepLinkMatcherhas added a second type parameterout R : DeepLinkMatcher.MatchResult<T>so that developers can access the properties of the subclassedMatchResultreturned byDeepLinkMatcher.match()without type casting. I693d3 b/470282247DeepLinkMatcher.MatchResult'sT upper bound has changed fromAny?toAny. I6bf1aDeepLinkRequestconstructor fieldurinow defaults to null. The secondary constructor'suriStringhas been renamed touri. Ia0f14 b/522194187
Bug Fixes
ResultEffectnow usesrememberUpdatedStateto capture the latestonResultlambda. I7d2a3 b/531709234- Fixed deep link matching for empty path segments. If the argument type is String, the empty path will be treated as an empty string value. Otherwise, the empty path is treated as no value provided and will fall back to defautl value. If there is no defautl value, matching will fail. I56575 b/535298128
- Added support for empty query values in
DeepLinkRequest.uri. If the argument is of String type, the empty value will be treated as a literal empty string. Otherwise, the empty value is treated as no value provided and matching will attempt to fallback to default value. If there is no default value, matching will fail. I30343 b/535127459 EntryProvidernow prioritizes matching based on key instances over key types. Ib5ec9 b/533331924SceneStatenow correctly calculates previous scenes starting from the top-most non-overlay scene. I91915 b/513630541
API Changes
- Add
titleandurltoNavigationEventInfoto allow customizing the destination title and location URL. Ie5619 - Add
NavigationEventDispatcherOwnerfactory in navigationevent. I740d3 - Add ExperimentalNavigationEventApi annotation to allow explicit opt-in for new and unstable APIs. Ia5d25
Bug Fixes
- Make BrowserInput publicly available in wasmJs targets as an experimental API. Icc2a8
Bug Fixes
- Ctrl-click handling is now the responsibility of
ItemDetailsLookup.ItemDetails#classifySelectionHotspot. Apps that want to support ctrl-click multi-selection must do so by returningItemDetails.SELECTION_HOTSPOT_INSIDE_TOGGLE_MULTIwhenMotionEvents.isCtrlKeyPressed(e)istrue. Apps using the default implementation are unaffected and require no changes. Ie0a2c
API Changes
- Exposed companion object and invoke factories for
RemoteImageBitmapto allow instantiating remote image bitmaps from a URL orImageBitmapin non-composable contexts. I4dbc7 - Expose
LineBreakstrategy and hyphenation frequency inRemoteTextStyleI7f2e6 b/510078059 - Promoted
RemotePaintinterface to public. Ida62b b/465743273 - Removed deprecated shorthand comparison operators (
eq,ne,lt,le,gt,ge) acrossRemoteFloat,RemoteInt, andRemoteBoolean. Ie01a9 b/532022248 b/532022248
Bug Fixes
- Fixes line height calculation in
RemoteTextand constraints scaling inwidthIn/heightInmodifiers. I89814 - Fixed state leak in
RemoteComposePlayerI95630 b/531743466
Bug Fixes
- Fix an unnecessary
println()during processing. Thanks to Simon Marquis! b/532893031 - Fix an issue regarding other database usages within another database's transaction mixing in leading undefined behaviour. b/437068912
Important Changes
- This release marks the final planned alpha version of the library.
- Finalized and refined the parameters in the
VerticalTextcomposable
API Changes
- Introduced
VerticalTextStylefor vertical text layout. I647a8 b/512424512 - Introduced a new public DSL (
VerticalTextScopeandbuildVerticalText) in thetext-vertical-composelibrary I6faa7 b/502088091 - Introduce
VerticalTextcomposable I96509 b/502088091
Bug Fixes
- Clarified documentation for
VerticalTextLayoutfallback behavior on older API levels. Ia7ccc b/449184326
API Changes
- Refactored
OneHandedGestureAPIs, replacing Boolean indicator state (that required a reset after showing the indicator) with a suspend function to run the animation. Each type of indicator now has its own indicator state class, encapsulating the animation logic for that indicator. Renamed from fromkeytogestureIdinGestureConfiguration. I7974f b/522761843 - Add
CompactButtonsingle-slot content overload Idaffc b/527889640 - Add
PinnableContainersupport toTransformingLazyColumnId3dc9 b/492418172
Bug Fixes
- Added and updated module-level documentation for Wear Compose Foundation, Material 3, and Navigation 3. I111d7 b/498153783
- Fixed an issue in
ScreenScaffoldwhere recompositions could cause un-rememberedScrollInfoProviderto reset scroll tracking state. I8be02 b/524620765 - Address
IllegalArgumentException: maxWidth must be >= than minWidtherror caused by large horizontal paddings I014e8 b/531192734 - Fix
EdgeButtonanimation on fast fling. I9657f b/512700520
Vulnerability & Security Fixes
Prevented crashes in the expression pipeline caused by invalid cubic bezier parameters in animations by falling back to a default interpolator.
Improved
ProtoLayout's renderer by wrapping exception handling to prevent crashes by guarding against non-finite values or invalid animations.
API Changes
- Expose LineBreak strategy and hyphenation frequency in RemoteTextStyle I7f2e6 b/510078059
No changes from 1.6.1. See ProtoLayout release notes for relevant changes.
There are no changes since androidx.webkit:webkit:1.17.0-alpha04
Bug Fixes
- Fix memory leak when catching executor exceptions I3404e b/532588487
- Improved cancellation propagation for
RemoteListenableWorkerso that system-initiated worker stops properly cancel remote coroutines and reschedule work, while self-cancelling remote workers correctly mark work as FAILED. Note: This behavior is currently gated behind the library-group restricted flagConfiguration.isRemoteCancellationPropagationFixEnabled(default false) to allow experimental verification and ensure that reliability metrics remain stable before removing the flag permanently. I387f3 b/420724435