Dependency Changes
- Activity now depends on Navigation Event 1.0.0-alpha08.
API Changes
- Testing support for
ARCorehas migrated to thexr:arcore:arcore-testingmodule. I25469 - Adding
ArDeviceandRenderViewpointto allow applications to retrieve the device’s pose and display configuration for rendering purposes. Ib7e3f - Rename
HandJointTypeenums withHAND_JOINT_TYPE_prefix. I3f7cd HandJointTypehas been moved toxr:arcore:arcorefromxr:runtime:runtime. Iadb9c b/409058039Hand.Statenow exposes ajava.nio.FloatBufferwith the joint poses in a format that allows easy access to performance-oriented applications. I55e27
API Changes
- Updated the naming for
PlaceHolderSizerelated APIs. I037d8 b/343696350 - New shared element transition API to support an initial velocity to continue the gesture velocity in shared elements. I91be9
API Changes
ScrollIndicatorStateimplementation added forPagerState. I113b7ScrollIndicatorStateimplementation added forLazyStaggeredGridState. I1028eScrollIndicatorStateimplementation added forLazyGridState. I9e50cScrollIndicatorStateimplementation added forLazyListState. I5ee29ScrollIndicatorStateimplementation added forScrollState. I27f66- Introduce
scrollIndicatorStateproperty inScrollableStateinterface Idca93 - Flag
isWindowInsetsModifierLocalNodeImplementationEnabledwas removed I15e8f b/440964232 - Expose
scrollableArea()modifier that can be used to make the component scrollable with the behaviors of clipping content to its bounds and automatically handling content scroll direction based on Orientation, RTL and thereverseScrollingflag. I9471b b/316559454
Important changes since 1.3.0:
Library change announcements
The androidx.compose.material.icons library is no longer recommended for displaying Material Icons in Compose, as Material Symbols are the new way forward. We have stopped publishing updates to this library and it has been removed from the latest Material 3 library release, you can still manually reference it if you cannot migrate yet.
Instead, we recommend downloading a Vector Drawable XML file from the Android tab of https://fonts.google.com/icons to get access to the latest styled icons: Material Symbols.
Why are we not recommending the library anymore? The icons library ("Material Icons") have been superseded by the newer look of Material Symbols and we've seen that the library can increase the build time of your apps significantly as it includes all the various icons that may not be needed.
For more information: https://developer.android.com/develop/ui/compose/graphics/images/material
Behavior Changes
This library no longer adds a dependency to
material-icons-coreso if your project relied on that, you will have to explicitly add that dependency in your build.gradle[.kts] files. I735ff b/349894318NavigationBarItemandNavigationRailItem's active label color change fromonSurfaceto secondary in order to improve usability, color contrast and improve coherence within the system Ibc297, to revert to the previous behavior, copy the default colors and change theselectedTextColortoMaterialTheme.colorScheme.onSurface.Material 3 components are now using the new
MotionSchemeto define their motion. Ie0f93Indeterminate circular Progress Indicator motion changes I3c07e
New Material Design 3 Components
HorizontalCenteredHeroCarouselVerticalDragHandle- Secure text fields for password entry fields
Enhancements to existing Material Design 3 components
- Text now supports
autoSize- Text with string
- Text with annotatedString
- Added Material 3 decorators for
BasicTextField2 - Added an
TimePickerDialogAPI that can be used forTimePicker,TimeInputor to have a switchable version. - New search bar APIs:
- Collapsed search bars and expanded search "views" are now separate composables:
SearchBarrepresents a search bar in the collapsed state.ExpandedFullScreenSearchBarandExpandedDockedSearchBarrepresent the search bar in the expanded state. These open in a new window.SearchBarStateto control the state of the search bar
- Promoted experimental APIs to stable!
- Performance improvements
Bug Fixes
- Fix incorrect re-anchoring during dragging. 6453cb6
API Changes
- Added
RetainScopeHolderAPI to manage a collection ofRetainScopes. This can be used to implement retention for containers and navigation hosts that compose many children with different retention lifespans. I10e0f - Added
RetainedContentHostandretainControlledRetainScopeAPIs, which can be used to create automatically managedRetainScopesfor disappearing content like collapsing panes If81f6 - Deprecated inline overload of
Updater#setas it was boxing the provided value too many times. Added an overload ofUpdater#initwhich takes a parameter which avoids requiring a capturing lambda. Id679e - Introduces
RetainedEffect, a side-effect API similar toDisposableEffectthat follows the retention lifecycle instead of the composition lifecycle. This API is intended to be used for effects tied to the retention of another object that doesn't or can't implementRetainObserver. I1c61f b/177562901 - Corrected documentation of
RetainObserver.onRetainedand addedRetainObserver.onUnused, which mirrorsRememberObserver.onAbandonedIa6fc5
Bug Fixes
- Fixed dispatching remember after the first group in a function (such as a composable call) and before a group that can be removed (such as an
ifstatement) that could dispatchonForgottenin incorrect order. I453f6 b/346821372 - Avoid coroutine context traversal when initializing
LaunchedEffect. I8d2c3b
Bug Fixes
Modifier.onVisibilityChanged()now correctly fires when a node is detached or reused. Ic5ce20Modifier.onVisibilityChanged()andonLayoutRectChanged()now properly handles parent layouts usingplaceWithLayer()to place children. Ia05ac9- For
Modifier.onVisibilityChanged()andonLayoutRectChanged(), properly notify in corner cases like removing a layer/layer modifier or updating layer properties. Ia05ac
API Changes
- The Compose test rule variant that accepts a
CoroutineContextparameter has been promoted to stable. The experimental annotation has been removed, and developers no longer need to opt-in to use this API. I74e6e ComposeUiFlags.isRectTrackingEnabledwas removed. This logic is not always enabled. Id78df- Deprecated inline overload of
Updater#setas they were boxing provided value too many times Id679e - Mark
onAutofillTextsemantic property as deprecated. I6f81c UnplacedStateAwareModifierNodewas introduced. It provides a callback called when the previously placed layout is not placed anymore. I8fdd8 b/309776096- Corrected documentation of
RetainObserver.onRetainedand addedRetainObserver.onUnused, which mirrorsRememberObserver.onAbandoned. Ia6fc5 - Added
onVisibilityChangedNode(), which is producing aModifier.Node, used byModifier.onVisibilityChanged()via delegation, which allows to expand on top of this functionality in your customModifier.Node. I70d84 b/443001320
Bug Fixes
- Fixed an issue where inline content failed to render when positioned on the final line of multi-line ellipsized text, despite the placeholder preceding the ellipsized region. I76aaf b/441829208
Bug Fixes
- Minor documentation fixes Ieff7c b/435703922
API Changes
- Changing the
CredentialTypeconstant prefix If5dac b/436531602 - Added a new set of APIs for credential transfer. Credential providers can now request credentials from another provider by passing the
ImportCredentialsRequestIdc79d - Make
requestJsonrequired parameter ofCredentialTransferCapabilitiesRequest. Id867a - Added a new set of APIs for credential transfer. Credential providers can now import credentials from another provider by passing the
ImportCredentialsRequestIf54f7 - Minor documentation fixes. Ieff7c b/435703922
- Changing the
CredentialTypeconstant prefix If5dac b/436531602 - Added a new set of APIs for credential transfer. Credential providers can now request credentials from another provider by passing the
ImportCredentialsRequestIdc79d - Make
requestJsonrequired parameter ofCredentialTransferCapabilitiesRequestId867a - Added new apis for credential exchange I77c1c
API Changes
- Registry API for OpenID4VP 1.0 Ifdda3 b/439430789
- Added API for clearing a credential registry. I64c0d b/368092001
- Support credential registry with a customized intent action. I09d92 b/402293724
- Credential set selection support. Ia1f80 b/444332219
API Changes
- Improved KDocs for
SpatialMainPanel. I27b70 b/444467891 - Introduced
SpatialArrangementfor arranging children along the main axis in 3D layouts likeSpatialRowandSpatialColumn. This new API provides familiar arrangement options from 2D Compose, includingStart,End,Center,SpaceBetween,SpaceAround, andSpaceEvenly, with full support for both LTR and RTL layout directions. I7db38 b/436289959 - Added a base interface for
SubspaceModifier.Nodeto improve type safety and usability of extension interfaces; such asCompositionLocalConsumerSubspaceModifierNodeLayoutCoordinatesAwareModifierNodeSubspaceLayoutModifierNodeCoreEntityNode(internal) Iede00 b/440599394 b/440599394
- Unrestrict
SpatialExternalSurfaceI33315 b/439646773 - Introduce
SubspaceModifierto Subspace composables and replace constraints parameter withSubspaceModifierwith size-relatedSubspaceModifiers. IfallowUnboundedSubspaceis true, Subspaces can still have unbounded constraints. Ib06e6 b/433331675 - Deprecating movable and resizable
SubspaceModifiersnow thatDragPolicy()andResizePolicy()are a part of theSpatialPanelandSpatialExternalSurfaceAPI I397bf b/437924639 - Added support for
LayoutDirectionin spatial layouts. Composable usingSpatialAlignmentwill now correctly position elements in both LTR and RTL contexts. I964bb b/436300273 - Add Resizable and Movable parameters to the
PanelAPIs to ensure that these behaviors can only be applied to supported containers. Id491c - Added
sizeIn,widthIn,heightIn,depthInSubspaceModifiersthat let you set exact minimum and maximum constraints for width, height and depth. I1af09 b/433330761
API Changes
- Renamed
fixedAspectRatiotoisFixedAspectRatioEnabledand made it a boolean property I5c4e8 b/440588971 ScenecoreFakes are now located inxr:scenecore:scenecore-testingmodule. Idd951- Renamed
shouldAutoHideContenttoisAutoHideContentWhileResizingEnabledandshouldAlwaysShowOverlaytoisAlwaysShowOverlayEnabledI97c36 b/432335421 - Updated
SceneCoreTextureSamplerconstants for readability, for exampleTextureSampler.MinFilter.LINEARis nowTextureSampler.MIN_FILTER_LINEARIb159c - Scene's
setKeyEntitysetter has been merged into thekeyEntityvariable. Setting thekeyEntityto an unmovable Entity such asAnchorEntitywill throw anIllegalArgumentExceptioninstead of returning a boolean false. I62080 b/428721695 b/422215745 - Scene's
SpatialModeChangeListenervariable was replaced withsetSpatialModeChangedListener. It takes in aConsumer<SpatialModeChangeEvent>instead of aSpatialModeChangedListener.setSpatialModeChangedListenercan now optionally take in an Executor. I62080 b/428721695 b/422215745 - Removed the
bundleparameter fromActivityPanelEntity.startActivityI64344 b/430332856 b/430333040 - Renamed
SpatializerConstants.SOURCE_TYPE_BYPASStoSpatializerConstants.SOURCE_TYPE_DEFAULT. Ifc7fe b/422215565 - Added
SpatialSoundPool.PLAY_FAILEDconstant. Ifc7fe b/422215565 - Added default arguments to
SpatialSoundPool.playmethods. Ifc7fe b/422215565 - Removed return value of setters in
SpatialAudioTrackBuilder. Ifc7fe b/422215565 - SurfaceEntity changes
SurfaceEntity.CanvasShaperenamedShapeSurfaceEntity.CanvasShape.Vr180HemisphererenamedHemisphereSurfaceEntity.CanvasShape.Vr360SphererenamedSphereSurfaceEntity.EdgeFeatheringParams.SmoothFeatherrenamedRectangleFeatherSurfaceEntity.EdgeFeathingParams.SolidEdgerenamedNoFeatheringSurfaceEntity.ContentSecurityLevelrenamedSurfaceProtectionSurfaceEntity.ContentSecurityLevel.{values}added aSURFACE_PROTECTION_prefix.SurfaceEntity.SuperSampling.{$values}added aSUPER_SAMPLING_prefixSurfaceEntity.StereoMode.{values}added aSTEREO_MODE_prefixSurfaceEntity.ContentColorMetadata.maxCLLrenamedmaxContentLightLevelI7eb5f b/422216050 b/427529950
- Renamed
launchActivitytostartActivityI7db90 b/430332856 - Removed
Scene.activitySpaceRoot. UseScene.activitySpaceinstead. I05ee8 b/378706624 b/422215745 configureBundleForFullSpaceModeLaunchandconfigureBundleForFullSpaceModeLaunchWithEnvironmentInheritedrenamed tocreateBundleForFullSpaceModeLaunchandcreateBundleForFullSpaceModeLaunchWithEnvironmentInheritedrespectively, and moved to LaunchUtils.kt file as top-level methods and take Session as first param I64a2c b/437186050GroupEntityfactory now returnsGroupEntitytype instead of Entity. I66042
Bug Fixes
- Throw an
IllegalStateExceptionwhen an entity instance is used after dispose. I90990 b/427314036 b/432063442
API Changes
- Refactor the
LifecycleOwnercomposable torememberLifecycleOwner. The function now returns theLifecycleOwnerdirectly. To provide this owner to a sub-composition, useCompositionLocalProvider. Ic57f0 b/444446629 - Add KMP stubs to lifecycle-viewmodel-navigation3 to enable JetBrains to provide forks that fill these targets and thus support CMP. I44a4c
Bug Fixes
- Navigation Safe Args can now handle AGP 9.0’s support for builtin kotlin. I1d9d76
Dependency Update
- The Navigation Safe Args Plugin now depends on Android Gradle Plugin version 8.4.2. b/431847270 I5932a
API Changes
- Add new
NavDisplayoverload that takes a list ofNavEntry<T>that has been decorated byrememberDecoratedNavEntries. I4025b b/441940314 - Moved
DialogSceneto a new package. Ia5840 - Remove public API
DecorateNavEntry. Instead userememberDecoratedNavEntriesto wrap a NavEntry with a list of decorators. Id8c09 - Navigation3 UI now provides new default
transitionSpecproperties. Ibcabd - Added a new
SceneStateobject to help manage scenes. This also provides a newNavDisplayoverload that takes theSceneStateand theNavigationEventState. Idfb46 b/444479133 NavDisplaynow allows you to customize the transitions based on whatSceneyou are going to and from by looking at theTransition'scurrentStateandtargetState. I906cc b/443872322NavigationEventInfois now anabstract classinstead of aninterface. Update all custom implementations to inherit from the class (e..g,data class MyInfo : NavigationEventInfo()). I1e59c b/444734264- The
navigationevent-composehandler APIs are updated.NavigationEventHandlerandNavigationBackHandler(and variants) now support a new overload that accepts a hoistedNavigationEventStates. The simple overloads (takingcurrentInfo) are preserved and now use this new state model internally. Ic3251 b/444734264 - All of the Scene APIs have been moved out of navigation3-ui to navigation3-runtime. This means they are now available on all platforms supported by navigation3-runtime. I431d0 b/444449993
- Added new
rememberDecoratedNavEntriesoverload that takes a list ofNavEntryto decorate. The input entries can be already decorated with other entry decorators. I5a034 b/444230270 - Remove navigation3 wildcard type parameters I02540
- Improved the handling of generics for the
entryProviderDSL. If you were previously importingandroidx.navigation3.runtime.entry, this is no longer required. I299fc - Restrict the reflection-based
NavBackStackSerializeroverload to Android. This prevents implicit runtime serialization failures on non-Android platforms by enforcing the use of the explicitSavedStateConfigurationoverload in multiplatform code. I73313 b/420443609 - Make
NavigationEvent'sswipeEdgean@IntDefIcee54 b/443950342 - Restrict
NavBackStackserialization to Android. This prevents runtime failures on non-Android platforms. For multiplatform state saving, use therememberNavBackStackoverload with an explicitSavedStateConfiguration. I1e418 b/420443609
Bug Fixes
- Fix crash during predictive back when nested
NavDisplayhas a single child entry. I2cdc0 b/441933162
API Changes
- Use the
NavigationEventTransitionState.Idlesingleton object directly instead of instantiatingIdle(). Ic7d9e b/444734264 - Make convenience constructors internal; obtain instances via public
NavigationEventDispatcher.historyinstead of direct construction. I3b7e0 b/444734264 - Require creating
NavigationEventStateviarememberNavigationEventState; constructor is now internal. Ie143c b/444734264 - Adopt
onBackCompletedFallbackreplacefallbackOnBackPressedusages and constructor parameter. Behavior is unchanged; invoked only on completed, unhandled back events. Idabe9 b/444734264 - The primary constructor of
NavigationEventHistory(mergedHistory, currentIndex)is nowinternal. External consumers must use the public constructors (either the empty constructor or the partition-based constructor) to create instances. I1c047 b/444734264 - Make
View.setViewTreeNavigationEventDispatcherOwneraccept nullable owner Ic9eb6 b/444436762 NavigationEventInfois now anabstract classinstead of aninterface. Update all custom implementations to inherit from the class (e.g,data class MyInfo : NavigationEventInfo()). I1e59c b/444734264- The legacy
NavigationEventDispatcher.stateproperty andgetState<T>()function have been removed. Use the new, separatedispatcher.transitionState(for gesture progress) anddispatcher.history(for the navigation stack) flows. Ic2ceb b/444734264 - The
NavigationEventInput.onInfoChanged(...)callback is replaced. Implement the newonHistoryChanged(history: NavigationEventHistory)callback to receive updates as a singleNavigationEventHistoryobject. I23e0b b/444734264 - Introduce a new global
NavigationEventDispatcher.historyStateFlow. This non-generic flow allows observers to subscribe only to changes to the navigation stack and remains stable during gesture progress. This is the counterpart totransitionState. I1db10 b/444734264 - Introduce a new global
NavigationEventDispatcher.transitionStateStateFlow. This non-generic flow allows observers to subscribe only to the physical gesture state (Idle/InProgress), separate from history. I171fa b/444734264 - Introduce the
NavigationEventHistoryStateclass. This will serve as the core API for observing navigation information history, separate from gesture state. I81ca5 b/444734264 NavigationEventis now marked as@Immutable, allowing the Compose Compiler to optimize recompositions. If78c7 b/444734264- The
navigationevent-composehandler APIs are updated.NavigationEventHandlerandNavigationBackHandler(and variants) now support a new overload that accepts a hoistedNavigationEventStates. The simple overloads (takingcurrentInfo) are preserved and now use this new state model internally. Ic3251 b/444734264 - Add the new
@StableNavigationEventState<T>state holder to thenavigationevent-composelibrary. This object combines local history with local gesture state and will be the primary link betweenrememberNavigationEventStateandNavigationEventHandler. Ifb69f b/444734264 - Add a new public, read-only
transitionState: TransitionStateproperty toNavigationEventHandler. Handlers now maintain their own transition state, which external systems can observe. I9acd2 b/444734264 - Introduce the new
TransitionStatesealed class. This will serve as the core API for observing gesture state, separate from navigation history. Id4beb b/444734264 - Expose
currentInfo,backInfo, andforwardInfoas public, read-only properties onNavigationEventHandler. Ia7636 b/444734264 - Implementations of
NavigationEventHandlermust now provide aninitialInfo: Tvalue to the base constructor. Idcfea b/444734264 - Replace
OnBackInvokedInputwithOnBackInvokedOverlayInputorOnBackInvokedDefaultInput. I5323f b/428948766 - Mark
NavigationEventStateas@Immutable. This improves Compose performance by ensuring Composables observing this state can correctly skip recomposition. I399c8 - Rename
NavigationEventInfo.NotProvidedtoNavigationEventInfo.None;update references. No behavior change. I5e2d4 NavigationEventInfois now marked as@Immutable, allowing the Compose Compiler to optimize recompositions. I7c112- Improve Java ergonomics with fun interface for back completion fallback. I8a860
- Rename
onHasEnabledHandlerChangedtoonHasEnabledHandlersChanged. This clarifies that the callback reports on the collective enablement state of all handlers, not just one. I1af61 b/443711297 - Remove
hasEnabledHandler()fromNavigationEventDispatcher;useNavigationEventInput.onHasEnabledHandlersChangedinstead. Idef72 b/443711297 - Add
onInfoChangedcallback toNavigationEventInputto notify listeners of changes to the navigation history. This provides the full context of the current, back, and forward stacks, enabling Inputs to react to the contextual information. I69a8b b/443282983 - Make
NavigationEvent'sswipeEdgean@IntDefIcee54 b/443950342 - Add a
priorityparameter toNavigationEventDispatcher.addInputto scope a dispatcher to one priority; events such asonHasEnabledCallbacksChangednow fire only when callbacks at that priority change. I3e488 b/443711297 - Rename
NavigationEventDispatcherparam fromparentDispatcherto parent for clarity. Id4f1f b/443801782 - Remove
NavigationEventPriorityin favor of@IntDeffor Java users I10a9f b/440514265 - Enforce navigation handler contract. If your
NavigationEventHandlersetsisBackEnabledorisForwardEnabledtotrue, you must now overrideonBackCompletedoronForwardCompletedrespectively. The default implementations now throw an exception to prevent silent failures. I17c62 - Enforce valid priority values when adding navigation event handlers. Calling
addHandlerwith an unsupported priority will now throw anIllegalArgumentException, providing immediate feedback for incorrect usage across all target platforms. I3c474
Bug Fixes
- Make
addHandleridempotent; ignore duplicate registrations. I052aa b/444734264 - Keep
NavigationEventStateproperties in sync during recomposition. Ib3b4d b/444734264 - Ensure
NavigationEventInputsreceive the current contextual info (current, back, forward) immediately upon registration. Ie65bf b/443282983
Bug Fixes
- Fix a processor crash that would occur when processing a DAO function with a suspend lambda. b/442220723.
- Fix a race condition that would prevent Flows from receiving the latest updated.
New Features
- This is the initial alpha release of the
security-state-providerlibrary. - This library makes it easy for update clients (like OTA clients) to publish the security state of updatable components (system, system modules, kernel, ...) on a device.
- It provides mechanisms to register and unregister update information, which can then be served to other applications or components via a
ContentProvider. - Includes
UpdateInfoProvider: AContentProviderthat servesUpdateInfoin JSON format. Supports querying but not insert, delete, or update operations. - Includes
UpdateInfoManager: Manages the storage and retrieval ofUpdateInfoobjects, usingSharedPreferencesfor persistence. - Includes
UpdateInfo: A data class to represent information about an available update for a component, including URI, component name, Security Patch Level (SPL), and published date.
Bug Fixes
- Fixed R8 rule for native functions to allow proper obfuscation b/442489402.
- Fix a NPE that could happen when using the support API
getBeginTransactionMethodon a concurrent scenario. b/444049518. - Reduce the JNI/native dependencies of bundled-sqlite to increase compatibility when loading the library. b/442489402.
- Fix an issue with the
AndroidSQLiteDriverthat would disable the multiple connections pool even if the journal was set to WAL mode b/444286035.
Bug Fixes
- Optimized item animation caching during scroll in
TransformingLazyColumn. I62ae8 - The
OpenOnPhoneDialogandConfirmationDialogvariations have been updated to set FLAG_KEEP_SCREEN_ON, so that the animations run to completion and the dialogs self-dismiss as intended. Iad7d4 - Fixed a bug where
Modifier.edgeSwipeToDismisscrashed when used withSwipeDismissableNavHoston API 36 onwards. Ifc13d - Updated documentation and comments associated with the new
CurvedTextStyle warpOffsetparameter to correctly refer to the Unspecified case. I41aa5
API Changes
- Improved curved text rendering, particularly for cursive fonts, with the introduction of text-warping using the new
CurvedTextStyleparameterwarpOffset. If5dcb
Bug Fixes
- Optimized item animation caching during scroll in
TransformingLazyColumn. I62ae8 - The
OpenOnPhoneDialogandConfirmationDialogvariations have been updated to setFLAG_KEEP_SCREEN_ON, so that the animations run to completion and the dialogs self-dismiss as intended. Iad7d4 - Fixed a bug where
Modifier.edgeSwipeToDismisscrashed when used withSwipeDismissableNavHoston API 36 onwards. Ifc13d - Updated documentation and comments associated with the new
CurvedTextStyle warpOffsetparameter to correctly refer to the Unspecified case. I41aa5
New Features
- Added helper method for
LayoutModifierthat makes an element fade in as the tile is becoming visible. I38531 b/390345969 - Added
materialScopeWithResourcesto support M3MaterialScopeconcept that also takes care of automatic resource registration. Within it, added new helper methods for images (backgroundImageavatarImageand icon) that remove the need for manually registering resources inonTileResourceRequestwhen used. I525bd b/428692714 ProtoLayoutKotlin helpers forImageandImageResourcesfor usage withProtoLayoutScopeand automatic resource registration. Iada82 b/430584304- Added getter for how many Lottie properties are allowed in customization of one Lottie animation. I73733 b/436532706
- Add API in
AndroidLottieResourceByResIdto allow customizing Lottie animation via properties and add API for creating property for theming slot with the slot ID to the specified color. I301b3 b/423581481 - Add provider APIs for accepting
PendingIntentas click action I01978 b/433802488 - Add new API in
Image.Builder-setImageResourceto set resource object directly to the Image inonTileRequest, without a need to register it in mapping inonTileResourcesRequest. Ifa69a b/428693523 - Added
ProtoLayoutScopeconcept in preparation for better resources handling in Tiles. I132ce b/428692423 ProtoLayoutMaterial3MaterialScopenow exposesContextfield as public, for use in methods within the scope, without the need to pass it around. I0e5cc b/414559956- Make heading semantic APIs public I75299 b/413653475
- Expose
ARC_DIRECTION_*consts as public for use inArc/ArcLine/ArcText/DashedArcLine. I83959 b/427556439
API Changes
- We have deprecated
Image.Builder()andImage.Builder.setResourceIdmethods in favour of the new automatic resource registration API, available inImage.Builder(ProtoLayoutScope)andImage.Builder.setImageResourceAPIs that remove the need for overridingonTileResourcesRequest. I7bfe6 b/432758526 - Move APIs for creating
ProtoLayoutScopefrom restricted to public. However, they shouldn't be used as the system already handles those calls. I1d8e8 b/432758251
Bug Fixes
- Add implementation for supporting
PendingIntentinProtoTilesI38167 b/430610429 - Add
invalidateLayoutmethod. Ief898 - Moving the default minSdk from API 21 to API 23 Ibdfca b/380448311 b/435705964 b/435705223
ImageResourcenow hashashCodeandequalsmethods. I650ee b/428692423 b/428693523- Add new proto message
PendingIntentActionand its wrapper builder Ie2aca b/427643502 - Reduce how often
ZoneIdinstance is created. I284d3 - Apply default content description to the single slot
textButton. I0dc8a b/415001534 - Fix calculations for adjusting max lines in the renderer side. I933bc b/414353620
New Features
- Add provider APIs for accepting
PendingIntentas click action I01978 b/433802488 - Allow tile id to be specified in update request. Ia05c3 b/421346031
- Add method in
TileRequestto get theProtoLayoutScopeobject for the corresponding tile instance. I5b8de b/428692428
API Changes
- Allow not overridding
onTileResourcesRequestwhenProtoLayoutScopeAPIs are used. I1773d
Bug Fixes
- Add implementation for supporting
PendingIntentinProtoTiles. I38167 b/430610429 - Save resources used from
ProtoLayoutScopeto be correctly sent inonTileResourcesRequestfor older renderers that don't bundle it within Tile response. I063a8 b/428692502 - Moving the default minSdk from API 21 to API 23 Ibdfca b/380448311 b/435705964 b/435705223
Important changes since 1.4.0:
- Add
WindowSizeClassbreakpoints for Large and XLarge. I40d85 - Expand calculating
WindowMetricsto Application Context. I8eeeb b/360934048 - Provider a Getter to enable direct access to
WindowLayoutInfoIe9513 - Introduce API to auto save embedding state and to auto restore the embedding state when the app process is restarted. Ie0295
- Remove experimental
WindowInsetsAPI. I68a71
Bug Fixes
- Fixes
EmbeddingRulereturning differenthashCodein some cases. I748cc - Fix for where a
NullPointerExceptioncould occur due to errors on the device implementation. - Fix for where our
ActivityEmbeddingsafety checks would fail due to proguard removing unused classes.
External Contribution
- Add all KMP platforms to
window-coreIf3d7c
Bug Fixes
- Fix foreground service stopping when there are pending commands Iae822 b/432069314
API Changes
- Add
stopRunningWorkWithReasontoWorkManagerTestDriver. Ie53b2 b/439955564
Bug Fixes
- Fix foreground service stopping when there are pending commands Iae822 b/432069314
- Fix remote coroutine worker failing to unbind remote service I842f2 b/247113322
API Changes
HandJointTypehas been moved toxr:arcore:arcorefromxr:runtime:runtime. Iadb9c b/409058039- Changing the times operator for
componentWiseMultiplicationforVector2,Vector3,Vector4to scale and removing the operator symbol for consistency with other math libraries. Also removingcomponentWiseDivisionfrom the Vector classes in lieu of usingVector.scale(otherVector.inverse()). I8e1f6 b/399146447 - Adding [unscaled] to return a Matrix with a scale of one. I6381d b/434928658
:xr:runtime:runtime-guavawill be removed asCoroutines.kthas been replaced withSuspendtoFutureAdapter. I0cd3c b/406597902