Bug Fixes
PredictiveBackHandlerwill no longer fire it's callback after the handler has been disabled. This will fix an issue where theNavHostfrom Navigation Compose would throw anIndexOutOfBoundsException. I3f75e b/340202286
Important changes since 1.8.0
- Added support for the following Kotlin Multiplatform targets:
watchosDeviceArm64,mingwX64,linuxArm64.
API Changes
- Added node representing the
PropertyDefinedquery function. I1aeaf - Add nodes to represent numeric search and property restrict. I963a9
- Add node representing
GetSearchStringParameterquery function. I4f99b - Add node representing the
HasPropertyquery function. I9c1c5 - Added interface for implementing functions in AST. I9d42e
- Add AND and OR operators. Iaa442
- Add
NegationNodefor representing logical negation of queries in AST. Ia855a - Add Node interface to
AppSearchfor defining nodes. If42fb - Adds an Experimental API annotation for
AppSearch. I3e57c
Bug Fixes
- Add
TextNodesfor holding terms. Iefd02
Security Fix
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on
androidx.appsearch:appsearch-external-protobufto the latest 1.1.0-alpha06 to address the vulnerability risk.
Bug Fixes
- Fixed
CollectBaselineProfileTaskwhen AVD device has spaces in it Ia0225 b/371642809
API Changes
- Macrobenchmark: Adds
ArtMetric, which can be used to inspect profile coverage or general Android RunTime performance. Captures number and total duration of JIT, class init (where available), and class verification. Additionally, changesCaptureInfoto include optional ART mainline version with default. I930f7 - Add
coefficientOfVariationto Benchmark JSON output to show stability within a given benchmark run. Ib14ea
Bug Fixes
- Fixed
CollectBaselineProfileTaskwhen AVD device has spaces in it. Ia0225 b/371642809 - Speculative fix for errors from
StartupMode.COLDexceptions:Package <packagename> must not be running prior to cold start!. Now,MacrobenchmarkScope.killProcess()(including the one run before each iteration, used to implementStartupMode.COLDbehavior) will wait to verify that the app's processes have all stopped running. I60aa6 b/351582215 - Fixed issue where UNLOCKED_ error would show up on some rooted emulators. Ic5117
- This library now uses JSpecify nullness annotations, which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage:
-Xjspecify-annotations=strict(this is the default starting with version 2.1.0 of the Kotlin compiler). I7104f b/326456246
Bug Fixes
- Fixed the issue where invoking
startFocusMeteringwithPreviewView.getMeteringPointFactorydoesn't get the correct sensor coordinates when an effect is enabled or when 4 use cases are bound (stream-sharing). I916c5 b/345993685
Bug Fixes
- Fixed a bug causing some easing curves to crash at certain time fractions.
- Fixed a bug causing improper alignment for
Modifier.animateContentSizeunder RTL. Idae6b b/372055503
Bug Fixes
- Fixed a bug causing a rare crash in text fields. I475c6 b/313010266
- Removed
ReusableContentHostat the root of Lazy layout items. This was a potential root cause for “measure called on a deactivated node” crashes. Id6e60
API Changes
- Adds
DelegatableNode#onDensityChangeandDelegatableNode#onLayoutDirectionChangecallbacks to allow updating node state when these change. I04f3e b/340662451 - Paragraph and
ParagraphIntrinsicsnow takes a list of all annotations applied to theAnnotatedString, previously it only had a list ofSpanStyles. I12f80 - Introduced
PointerInputModifierNode#touchBoundsExpansion, which can be used to enlarge the touch bounds of a single pointer input modifier. Iccf02 b/335339283
Bug Fixes
- Fixed a bug where positional thresholds passed to
AnchoredDraggableDefaults.flingBehaviorwere not considered correctly in some scenarios. Ifdf0d b/367660226 - Introduce a fix for nested scrollables that are removed from the node tree during an ongoing fling. Now these nodes will cancel the fling and correctly send the
onPostFlingevent with the remaining velocity. We're also introducing the flagNewNestedScrollFlingDispatchingEnabledto control the behavior in case of regressions. The flag will be removed before beta. I05c37 b/371168883 - Fixed a bug where
OverscrollEffectspassed toModifier.anchoredDraggablewould receive 2D deltas instead of 1D. Ie52c0
API Changes
- Remove
readOnlyfromTextFields' to pin to stable foundation version. I3aaba
Bug Fixes
- Adds support for ripples in expanding components on Android S+, such as a card that expands on click. Previously the ripple would not fill up the new size but now it will expand to the new bounds. If509a b/183019123
API Changes
- Updates to the date pickers to ensure consistent Locale usage throughout the
DatePickerandDateRangePickerwhen setting a Locale directly through aDatePickerStateor aDateRangePickerState. Note that when setting Locales directly to the state, it's up to you to ensure that the title and headline texts are localized accordingly, as their default text will still be applied according to the default platform Locale. I37073 b/326490763 b/321657276 SheetState.isAnimationRunningis now exposed. I9a3d7DatePickerColorsnow correctly take precedence over any conflicting colors defined at the theme's Typography text styles. Also note that this update adjusts thecolorparameter's position in the date picker functions and introduces acontentColorparameter for customizing the header and title text colors. I30d03 b/347031394- Rename
SplitButtontoSplitButtonLayoutand removeSplitButtoncolor variants APIs, variants will be achieve by re-using button variants provided bySplitButtonDefaults. I44c36 ModalBottomSheetnow hassheetGestureEnabledparameter I856cb b/288211587- Renamed the
standardMotionSchemeand theexpressiveMotionSchemeto standard and expressive. Both functions are now accessible through theMotionSchemecompanion object by callingMotionScheme.standard()andMotionScheme.expressive(). Iceccf - Adding
maxWidthparameter to plain and rich tooltips. It defaults to the design spec of 200 dp for plain tooltips and 320 dp for rich tooltips. I30ce9
Bug Fixes
- The
DatePickerandDateRangePickernow correctly update the displayed month when set via their state'sdisplayedMonthMillis. If9e47 b/333414302 ModalBottomSheetcontent now moves content away from status bar. I5114c b/321877275 b/336962418 b/342093067- [Bottom Sheet] Change back callback priority to
PRIORITY_DEFAULTto allow IME keyboard to dismiss first. I447fb - Fix crashes in the
DatePickerandDateRangePickerwhen the minimum selectable year is set to a future year. I78656 b/319395747 - Fix a date-picker issue to update the UI when an updated
SelectableDatesinstance is applied. Iad59a b/290135807 b/339898760
API Changes
- Adds
DelegatableNode#onDensityChangeandDelegatableNode#onLayoutDirectionChangecallbacks to allow updating node state when these change I04f3e b/340662451 - Adds
WindowInfo#containerSizeto provide the current window's content container size. This can be retrieved usingLocalWindowInfo. Idc38c b/369334429 b/360343819 - Introduce a fix for nested scrollables that are removed from the node tree during an ongoing fling. Now these nodes will cancel the fling and correctly send the
onPostFlingevent with the remaining velocity. We're also introducing the flagNewNestedScrollFlingDispatchingEnabledto control the behavior in case of regressions. The flag will be removed before beta. I05c37 b/371168883 - Introduced
PointerInputModifierNode#touchBoundsExpansion, which can be used to enlarge the touch bounds of a single pointer input modifier. Iccf02 b/335339283 - Adds
WindowInfo#containerSizeto provide the current window's content container size. This can be retrieved usingLocalWindowInfo. I27767 b/369334429 b/360343819 - Remove
readOnlyfromTextFields' to pin to stable foundation version. I3aaba ParagraphandParagraphIntrinsicsnow takes a list of all annotations applied to theAnnotatedString, previously it only had a list ofSpanStylesI12f80
Bug Fixes
- Updated how paragraphs are treated in
AnnotatedString. Before you could only create non-overlapping paragraphs. Now theAnnotatedStringallows fully-overlapping paragraphs which will be merged together, and nested paragraphs in which case the outer paragraph will be split on bounds of the inner one, and the inner paragraph's style will be merged with the outer paragraph's style Ic9554 - Fix crash in
AnnotatedStringwith a zero-lengthLinkAnnotation. 89aac6
Security fix
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on
androidx.core:core-location-altitude-protoandandroidx.core:core-location-altitude-external-protobufto 1.1.0-alpha03 to address the vulnerability risk.
Bug Fixes
- Removed manual outlining of access to new platform APIs since this happens automatically via API modeling when using R8 with AGP 7.3 or later (e.g. R8 version 3.3) and for all builds when using AGP 8.1 or later (e.g. D8 version 8.1). Clients who are not using AGP are advised to update to D8 version 8.1 or later. See this article for more details. Ieb9ae b/345472586
New Features
- Prepare the library for entering a stable release soon.
New Features
- New Credential Manager provider registry support: allow providers to pre-register credential metadata with Credential Manager which can be later surfaced to the user by the Credential Manager upon an incoming app request.
- Added ISO/IEC mdoc credential APIs for registering mdoc credentials
- Also added a preview protocol based registry to demonstrate the end-to-end capability
New Features
GameTextInputnow supports Left/Right keys.
API Changes
- Obsolete Java interfaces of
GameTextInputhave been removed. - Prefabs for both
GameActivityandGameTextInputnow include all source files.#include <GameActivity.cpp>is not recommended anymore. Please link to a proper static or dynamic library instead, likegame-activity::game-activity_staticinCMake. These libraries are shipped in the AAR file.
Bug Fixes
- Numerous fixes in
GameTextInputhave been made. Typing and removing functionality has been fixed. - Compatibility with most popular software keyboards have been improved.
- Fixed handling of special characters on hardware keyboards.
- Fixed a rare null pointer access in
GameActivity.
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on version 1.1.0 of
androidx.glance:glance-appwidget-protoandandroidx.glance:glance-appwidget-external-protobufto 1.1.1 to address the vulnerability risk.
Bug Fixes
- Fixed issue where
SurfaceControlinstances would still be managed by the system compositor even after they were released. - Fixed issue where the currently presented
HardwareBufferinstance would not be released after low latency dependencies were disposed - Fixed flickering issue on certain Android 14+ devices that did not support the front buffer usage flag
New Features
- Added
SkinTemperatureaggregation types. Ibe123 - Added
FEATURE_PLANNED_EXERCISEconstant Ie02a3 - Added History Reads permissions. I5cf41
- Added Training plans API If5be1
- Added
SkinTemperatureRecordAPI. I5605d
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on
androidx.health:connect:connect-client-protoandandroidx.health:connect:connect-client-external-protobufto the latest 1.1.0-alpha10 to address the vulnerability risk.
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on
androidx.health:health-services-clientto the latest 1.1.0-alpha04 to address the vulnerability risk.
New Features
- Added new lint checks for the
navigation-common,navigation-runtime, andnavigation-composemodules to help identify any type-safe routes that are not correctly annotated with@Serializable. This check is applied to allNavGraphBuilderandNavDeepLinkBuilderextension functions. I4a259 I95402 Ie601a Id8c6e I28bda b/362725816 - Added new lint checks for the
navigation-common,navigation-runtime, andnavigation-composemodules to help identify any type-safe routes with Enum arguments that are not correctly annotated with@Keep. This check is applied to allNavGraphBuilderandNavDeepLinkBuilderextension functions. I4a259 I95402 Ie601a Id8c6e I2b46f b/358687142
Bug Fixes
- Fixed an issue where the new lint rules that were added in
Navigation 2.8.*would cause anObsolete custom lint checkerror when attempting to run lint with Android Gradle Plugin 8.4+. I1be3d b/368070326 b/371463741
Known Issues
- Navigation lint will throw an Obsolete custom lint check error when attempting to run lint with Lint 16 (AGP 8.7) or higher. b/371926651
New Features
- Custom Navigators can now mark their destinations as implementing the
SupportingPaneinterface which indicates to theNavControllerthat these destinations will be shown alongside other destinations. By using this interface, multiple destinations can beRESUMEDat the same time, for instance. Id5559 - From Navigation
2.8.3: Added new lint checks for thenavigation-common,navigation-runtime, andnavigation-composemodules to help identify any type-safe routes that are not correctly annotated with@Serializable. This check is applied to allNavGraphBuilderandNavDeepLinkBuilderextension functions. I4a259 I95402 Ie601a Id8c6e I28bda b/362725816 - From Navigation
2.8.3: Added new lint checks for thenavigation-common,navigation-runtime, andnavigation-composemodules to help identify any type-safe routes with Enum arguments that are not correctly annotated with@Keep. This check is applied to allNavGraphBuilderandNavDeepLinkBuilderextension functions. I4a259 I95402 Ie601a Id8c6e I2b46f b/358687142
Behavior Changes
- Attempting to use a
NavControllerthat has been previouslyDESTROYEDwill now cause anIllegalStateException. I520da b/369616172
Bug Fixes
- Update Enum class not found exception to suggest using
@Keepannotation in case the Enum class gets erased in minified builds. I90e79 b/358137294
Known Issues
- There is an issue with the new lint rules that were added in
Navigation 2.8.*that cause anObsolete custom lint checkerror when attempting to run lint with Android Gradle Plugin 8.4+. b/368070326 b/371463741
API Changes
- Create internal
ByteArrayWrapperclass to support Relations withByteBufferin non-Android & non-JVM platforms. I75543 b/367205685 - Add
SQLiteStatement.getColumnType()along with the variousSQLITE_DATA_*result constants to enable retrieving the data type of a column. I1985c b/369636251
API Changes
- Add
SQLiteStatement.getColumnType()along with the variousSQLITE_DATA_*result constants to enable retrieving the data type of a column. I1985c b/369636251
API Changes
- We have renamed the Wear Compose Foundation
LazyColumntoTransformingLazyColumnso that the distinction is clearer between this and the Compose FoundationLazyColumn. I0608b - Added rotary support for Horizontal/Vertical pagers, enabling users to navigate pagers using rotary input devices. I9770d
- We have updated the new
PagerDefaultsto make clear that the pager will snap-to-page by default. Iff7d0 TransformingLazyColumnItemScrollProgressis now a value class which should improve the performance. Ic399eTransformingLazyColumnnow supports rotary out of the box. I05206TransformingLazyColumnStatenow supportsscrollToItem. I507b3- Removed
@ExperimentalWearFoundationApifromSwipeToRevealAPI I34a66
API Changes
- We have updated the
ScreenScaffoldandScrollIndicatorfollowing the renaming of Wear Compose FoundationLazyColumntoTransformingLazyColumn. I0608b EdgeButton'spreferredHeightparameter has been renamed tobuttonSizeand its value can only be chosen from 4 constants in the newly introducedEdgeButtonSizevalue class. Icdd70- We have changed the naming of
ListSubheadertoListSubHeaderand added publicly accessible default values forListHeaderandListSubHeader. I96730 - We have added new
HorizontalPagerScaffoldandVerticalPagerScaffoldcomponents for Wear which provide new animations and coordination between time text and page indicator components. Iff7d0 - We have added rotary support to
HorizontalPagerScaffoldandVerticalPagerScaffold, enabling users to navigate pagers using rotary input devices. I9770d - We have made
MotionSchemeAPI changes to simplify the usage and improve consistency. Removed inlined remember functions and moved the built-in Motion Schemes to a dedicated MotionScheme companion object. Renamed thestandardMotionSchemeand theexpressiveMotionSchemeto standard and expressive. I5fd45 - We have added support for a dynamic color scheme based on system colors. I073e9
- We have updated the Stepper to the latest UX specs. I622bb
Bug Fixes
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on version 1.2.0 of
androidx.wear.protolayout:protolayout-protoandandroidx.wear.protolayout:protolayout-external-protobufto 1.2.1 to address the vulnerability risk.
New Features
- Initial version of Material 3 library. Includes
text,edgeButton,buttonGroupandprimaryLayoutcomponents.
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on version 1.3.0-alpha01 of
androidx.wear.protolayout:protolayout-protoandandroidx.wear.protolayout:protolayout-external-protobufto 1.3.0-alpha02 to address the vulnerability risk.
External Contribution
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on version 1.4.0 of
androidx.wear.tiles:tiles-prototo 1.4.1 to address the vulnerability risk.
Security Fixes
- As of this change, androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254. Upgrade your dependency on version 1.5.0-alpha01 of
androidx.wear.tiles:tiles-prototo 1.5.0-alpha02 to address the vulnerability risk.