API Changes
- Allow
@DoNotInlineto be applied to fields. I99120 b/521434897
Bug Fixes
- Add
allowshrinkingto@DoNotInlineso that annotated methods can be removed if the function isn't reachable. Id2c8c
API Changes
- Updated resizable modifier to use a
ResizePolicyinstead of two modifiers I7fb0f b/496257436 b/519672992 - Added movable overload with
movePolicyparam and deprecatetransformingMovableandmovableIc88c1 b/481781189 - Removed
TrackingState.TRACKING_DEGRADED from public API surface and map runtime degraded states to PAUSED instead. UpdateTrackingStateto use enums instead of int values for string conversion and runtime conversion. I3eb5b b/524326338 - Converted Session.create to a suspend function. I5d27f
- Deprecated the
ProjectedPermissionsResultContractI141d5 b/515699436 - Updated
AnchorEntityto be calledAnchorSpaceIfa95e b/513619219
Features
- Add new scroll variant for expressive
TimePickerI46f6b - Added a new
material3-ripplelibrary I1b3a3, which adds support for drawing ripples that visually display focus using inset focus rings instead of an opacity layer. This new library acts as a replacement formaterial-ripple, and expected usage is similar:- If you are using
material3itself, use the built-inmaterial3ripple configuration that integrates with the theme and usesmaterial3-rippleinternally as an implementation detail. - If you were using
material-rippledirectly or want to support inset focus rings without depending onmaterial3, use the newmaterial3-ripplelibrary directly.
- If you are using
API Changes
- Changed scrollbar
ScrollIndicatorStateparameter to be non-nullable. Iab7c7 b/529445739 - Re-add
@ExperimentalMaterial3Apiannotation toAppBarWithSearchAPIs. I0b61a - Promoted
SearchBarStateand slot-basedSearchBarAPIs to stable. Deprecated olderSearchBarAPIs using expanded/onExpandedChange. Ia3793
Bug Fixes
- Fixed a rendering delay issue where the
RichTooltipandPlainTooltipcarets would appear late during the entrance animation. I874b6 b/395753083 - Update margin values for Input/Scroll variant of
TimePicker. I83f00 SplitButtonmeasure trailing button first to guarantee space. Id3a1e- Fixed an accessibility issue where Switch Access users could not activate editable text fields inside
ExposedDropdownMenuBox. I0ea17 - Fixed talkback announcement order in
TextFieldandOutlinedTextFieldwhen a prefix or suffix is present. Ie79e7 - Update
TimePickermargins and colon placement I6bfeb - Fix focus order in Talkback for
ScrollField. I4ca9f b/526870141 - Updated Compose dependencies in Material 3 to 1.12.0-beta01. Ie9417
- Tooltips are now clamped to the window boundaries to prevent them from being cut off on small screens or under large font configurations. I421ff
- Update
ScrollFieldwith more expressive number transitions and adjust sizing/typography Ic1614
API Changes
- We have added
RoundAllWidgetPreviewParams,RoundSmallWidgetPreviewParams, andRoundLargeWidgetPreviewParamspreview parameter providers for fully rounded Glance Wear widgets. If5336 b/512405233
New features
- We have set up and added Linter library for Glance Wear widgets.If4218 b/527402079
- Added a lint check to ensure that subclasses of
GlanceWearWidgetServiceexplicitly declare their associated widget class using the@AssociateWithGlanceWearWidgetannotation. Idc575 b/477024153
- Added a lint check to ensure that subclasses of
- We have improved backwards compatiblity for widgets running on older Hosts by propagating supported operations via
WearWidgetParamsand adding filtering the profile of allowed operations to those. (Ib0a1b, I83cb1, [b/526716195])
API Changes
- Experimental release of new eraser type, known as "partial stroke", "mesh editing", or "pixel" eraser, that edits stroke geometry and splits strokes rather than deleting entire strokes or masking them with the background color. Known issues include a lack of anti-aliasing on the cut edges, and no serialization APIs to save the erased
PartitionedMeshresults, which will both come in future releases. - Add missing Throws annotation to
StrokeInputBatchSerialization.decode, requiring update from Java consumers of that method. I83473 b/522256938
Bug Fixes
- Fix native crash from numerical precision issue I2e1f0 6618e69 b/523190724
- Discard degenerate extrusions in
BrushTipExtruder469b629 - Fix
RejectedExecutionExceptioninInProgressStrokesViewb/526696762
API Changes
- Remove
ComponentOverrideAPIs I820c4 GltfAnimationandSpatialGltfModelAnimationAPIs have been marked as experimental. Some properties were turned into getters. I8d689 b/524771027- Fixed overall density behavior by establishing the conversion between Meter and pixels to be constant. Deprecated Meter.kt,
Session.scene.virtualPixelDensitycan now be used as an alternative. I122ff b/430097855 b/474168798 - Update resizable modifier to use a
ResizePolicyinstead of two modifiers I7fb0f b/496257436 b/519672992 - Added a tolerance:
Dp = Dp(0.5f)parameter to all public floating-point dimension and position equality assertions inSubspaceAssertions.kt. The default tolerance behavior (0.5.dp) is fully documented. I266cb b/521491915 - Added movable overload with
movePolicyparam and deprecatetransformingMovableandmovableIc88c1 b/481781189 - Added new non-interactive variants of standard list item and segmented list item which follow Material Expressive specifications. The non-expressive version has been deprecated. Ide4de b/491994186
- For Subspace, the
allowUnboundedSubspaceparameter is now deprecated and hidden. Unbounded behavior should now be achieved by usingSubspaceModifier.requiredSizeIn(maxWidth=Dp.Infinity,maxHeight=Dp.Infinity,maxDepth=Dp.Infinity) on the Subspace modifier. TheallowUnboundedSubspaceparameter has been removed fromFollowingSubspace. Ia72ae b/433624021 - Converted
Session.createto a suspend function. I5d27f - Added
SubspaceModifier.spatializedAudioOutputwhich allows spatializing audio playback throughExoPlayeror through aSoundEffectPlayerI46697 b/489421980 b/497867019 - Updated
ComponentActivity.requestHomeSpace()andrequestFullSpace()to returnSpaceRequestResultfor status verification. If1672 - Updated
AnchorEntityto be calledAnchorSpaceIfa95e b/513619219 - Unrestricted
fromResourcemethod fromSpatialGltfModelSourceI1f5a1 b/503047416 SubspaceSemanticsMatchermembers are public: thedescriptionproperty, companion factory methods (expectValue,keyIsDefined,keyNotDefined), member functions (matches,matchesAny), and operators (and,or,not). I972a4 b/460427288- Updated
SubspaceModifier.semantics,SubspaceModifier.testTag,SubspaceSemanticsInfo,SubspaceSemanticsModifierNodeto use curated spatial semantics types. I80dea b/460427288 - Renamed
positiontoaligninSpatialAlignmentand removed individual directional offset methods in favor of a unifiedalignAPI. I9bdb2 b/479805937 - Removed Deprecated Space Mode APIs from
SpatialConfiguration. I1ef5c b/458712461 - Introduced
SubspaceSemanticsConfiguration. This is a configuration of semantics properties for a Spatial node. This class safely exposes query methods for 3D semantics without leaking foundational 2D semantic capabilities to external consumers. Id025e b/460427288 - Introduced
SubspaceSemanticsPropertyReceiver: a dedicated wrapper that limits 3D layout container properties to valid fields (initiallytestTagandcontentDescription). I5cf5c b/460427288
Bug Fixes
- Updated the Semantic modifier's
hasContentDescriptionto default to substring matching. I08214 - Added restricted
FollowBehavior.ExponentialDecay()which provides a soft follow behavior guided by elastic physics. I7449c b/485639909 b/500493335
Most APIs will be affected by this. Specifically, the LocalSession CompositionLocal and all CompositionLocals that are dependent on LocalSession (e.g. LocalSpatialConfiguration, LocalSpatialCapabilities, etc.) will now resolve to null or its non-XR versions before the Session is initialized.
Once the Session is available, recomposition will be triggered with the correct state. I0cfa4 b/514712835 b/514712835
- Clarified documentation for
ComponentActivity.requestHomeSpaceandComponentActivity.requestFullSpaceregarding suspend behavior, cancellation, and concurrency. Updated tests to verifyCancellationExceptionpropagation. I22f75 b/493289528
API Changes
GltfAnimationandSpatialGltfModelAnimationAPIs have been marked as experimental. Some properties were turned into getters. I8d689 b/524771027- Removed the public
MovableComponent.createTrackingMovablefactory method. I00912 b/477169015 - Converted Session.create to a suspend function. I5d27f
ActivitySpaceandAnchorSpacenow extend a commonSpaceEntityclass which contains common behavior for entities whose positions are controlled by the system I506ec b/513619219- Updated
AnchorEntityto be calledAnchorSpaceIfa95e b/513619219 - Provides public test API
SoundEffectPoolComponentTester. I87df7 b/498104417 - Added an optional
cornerRadiusparameter to theSurfaceEntity.Shape.Quadconstructor and made thecornerRadiusproperty public. Developers can now specify a corner radius when creating a Quad shape to renderSurfaceEntitycanvases with rounded corners, and query the radius of existing Quads. Ia7809 b/474681085 - Provides public test API
SpatialAudioTrackBuilderTester,SpatialAudioTrackTesterandSceneCoreTestRule.getTesteroverloads. I378c6 b/496333938 - Add specialized overrides of
toString()for a number of ARCore types. These types are intended to provide additional information to developers for debugging purposes and are not intended to be used in production or shipped applications.
Bug Fixes
- Fixed
UriDeepLinkMatcherdocumentation on uri fragments to clarify that fragments with wildcards will match any input but the input does not get extracted as arguments. I5ad9b b/524677091 - Fixed
UriDeepLinkMatcherfailing to match with a request if the uri pattern does not contain a scheme or does not start with double slash. For example,www.example.com/homewill now match withhttp://www.example.com/home. Ia6b65 b/522791926
API Changes
- Add
hasEnabledHandlersproperty toNavigationEventInputto allow developers to query the current handler state directly without relying on callbacks. I8ecec
Bug Fixes
- Fix fallback propagation in
NavigationEventDispatcher. I015f8 b/531988076
API Changes
- Added
rememberRemoteImageBitmap(url)and exposedrememberMutableRemoteImageBitmappublicly to support non-named remote bitmaps. I7b960 - Exposed
RemoteStateScope.remotePathandRemotePathScopeAPIs for building paths via DSL. I9e2fe b/513228889
Bug Fixes
- Removed restricted LIBRARY_GROUP overload of
rememberRemoteDocument. Ifd9b4 b/532022244 b/532022244
API Changes
PerfettoCaptureandPerfettoTraceRulecan now capture in-process traces and merge them for a target package. I9a00b b/497959820androidx.benchmarknow has aminSdkof 24. Ic2a85
Bug Fixes
API Changes
- Move
ButtonContent,AppCardContentandTitleCardContentcomposables for Material3 intoButtonDefaultsandCardDefaultsobjects respectively. I8d589 b/527889640 - Remove default value from
Modifier.oneHandedGesturegestureLabelparameter Ica100 b/527068051 - Rename
gestureLabeltoonGestureLabelinModifier.oneHandedGestureand make it nullable, for consistency with othercontentDescriptionparameters I952a8 b/527068051 - Introduce
OneHandedGestureIndicatorStateto coordinate visibility and animation betweenModifier.oneHandedGesture()and gesture indicators. ReplaceInteractionSourcewith this state-driven approach for improved lifecycle control. AddwrapAroundparameter toOneHandedGestureDefaults.scrollToNextPagefor consistency with other default gesture scroll functions. I9e1e3 b/522761843
Bug Fixes
- Clarify
interactionSourcedocumentation forModifier.oneHandedGestureto state which interactions are emitted I2dc8d - Support for one-handed gestures in
AlertDialogby default has been removed temporarily, due to issues with the dependency on the Wear SDK in consumers that are otherwise not using the Wear SDK or one-handed gestures. Ib19e0 b/503841738 - Enhanced
TransformingLazyColumnto support placement animations for items moving out of the viewport, allowing them to slide off-screen instead of fading out. Also fixed a visual snapping issue where dynamically scaled items would instantly snap to their target height during placement animations I89d84 b/525071281 - Use index-based
ItemInfoinfirstVisibleItemLayoutItemInfo. I256e3 b/527881678 - Fixed
TimePickeranimation behavior when Reduce Motion is enabled. Ic9150 b/467288916
Vulnerability & Security Fixes
- We have added validation of the
redirect_uripackage parameter in theRemoteAuthService. This ensures that the package segment of theredirect_uriquery parameter in the requerst URL matches the verified calling package name, when sending an auth request to the phone, and when receiving the token back. I19da5 b/510833682
API Changes
- Added
Profile#enqueuePreconnectAPI to enqueue preconnection requests without triggering immediateWebViewstartup. Id7e4a b/511156405 - Added
WebSettingsCompat#setDownloadFaviconsEnabledandWebSettingsCompat#getDownloadFaviconsEnabledwhich allows developers to set or get whether a Favicon will be downloaded upon a navigation, by disabling the downloading of Favicons there will be a decrease in memory and bandwidth. I9f87e b/510229667
API Changes
- Added
WorkMetricsQueryAPI to filter metric info I132b4 b/522338412 - Implement
workerDurationMillisandtotalRuntimeMillisinWorkMetricsInfoto track worker execution duration and total cumulative runtime. I57f65 b/507212208 - Added
retentionDuration(Duration, API 26+) andretentionTime/retentionTimeUnit(API 23+) constructors toWorkMetricsInfoRepositoryto allow pruning old metrics, defaulting to 7 days. Ifdf2e b/522338412 - Add flow API for finished
WorkMetricsInfoI11ec2 b/507212999 - Add missing experimental annotation to
work-analyticsclasses I1a055 b/528112001 androidx.benchmarknow has aminSdkof 24. Ic2a85- Implement
stopReasonCounts,explicitRetryCount, andrunAttemptCountinWorkMetricsInfo. I95498 b/507212225 - Implement
WorkMetricsInfoAPIs and database schema to track work execution history, including enqueue, unblock, first start and finish timestamps. I163e9 b/479123623 b/507212482 - Add experimental API to disable in-process opportunistic scheduling I1062d b/513299442
- Add experimental API to listen to
WorkManagerscheduling events I14487 b/448485695 - Add worker class name to
WorkInfoI57da1 b/448485695 - Add more granular annotation to experimental event listener API Icaa8e b/448485695
- Add a new API that allows retrieving nullable string arrays from instances of
Dataclass I78bc3 b/383071402 - Create
work-analyticsartifact Idc7c2 b/465357612 - Add experimental API to set a listener for worker execution events I06b38 b/448485695
Bug Fixes
- Use
Dispatchers.Defaultinstead of custom thread pool for the default WM configuration Ic2c42 b/506239869 - Improve and add tests to manage bad workers I500f3 b/506239869
- Fixed a
ConcurrentModificationExceptioninWorkManager'sexecution listener dispatch. I4cc18 b/506239869 - Fixed process crashes in
WorkManagerwhen registering network constraint callbacks due to missingACCESS_NETWORK_STATEpermissions. I7045a b/446013734 - Improve log detail when DEBUG logs are enabled Id9e5f b/491209738
- Fix bug with retried work failing to schedule with the OS I452fc b/504085166 b/517339607
- Fixed
Configuration.Providerreference doc link Ieedb7 b/340913210 - Made event hooks not blocking for operations I27cd8 b/448485695
WorkManagernow retries initialization on genericSQLiteException. I98436 b/485368721- Fixed an issue where developers could receive a nonexistent stop reason code of 0 by mapping it to
WorkInfo.STOP_REASON_UNKNOWN. I0b175 b/479314734 - Fix additional issues with network calls failing from background even when network constraint are met Ic7f73 b/445324855
- Handle security exception in
NetworkStateTracker. I4b7ca b/480123154 - Ensure execution hooks get an accurate
WorkInfosnapshot I25ebb b/448485695 - Fixed an issue where background network requests could fail on Android 15. I60f24 I8a0a2 b/452081708 I5abb7 b/465016918
- Fixed an issue where periodic
WorkRequests that fail due to an uncaught exception would not be rescheduled. Ia6b92 b/443879071
API Changes
- Deprecated the
ProjectedPermissionsResultContract. UseProjectedActivityCompat.requestPermissions()instead. I141d5 b/515699436 - Added the
requestPermissions()API to theProjectedActivityCompatI2edb5 b/433523713 b/508189550
API Changes
- Added
SessionTestRuleto runtime-testing. This API I672bc b/516876144 - Converted Session.create to a suspend function. I5d27f
- Added support for the lifecycle to the
XrDeviceTestRuleI2319c b/512140272 - Removed unused
ExperimentalXrDeviceLifecycleApiexperimental opt-in annotation. I46d95 - Add specialized overrides of
toString()for a number of runtime types. These types are intended to provide additional information to developers for debugging purposes and are not intended to be used in production or shipped applications.
Bug Fixes
- Fixed Pose.
fromLookAtforward direction alignment, corrected scale extraction in Matrix3, and prevented numericalNaNsin normalization, axis-angle conversion, andangleBetweencalculations. I7a3b5 b/367780918