Skip to content

2024-04-02

Choose a tag to compare

@github-actions github-actions released this 03 Apr 18:37
· 94 commits to main since this release

Activity: v1.9.0-rc01

April 3, 2024

androidx.activity:activity:1.9.0-rc01, androidx.activity:activity-compose:1.9.0-rc01, and androidx.activity:activity-ktx:1.9.0-rc01 are released. Version 1.9.0-rc01 contains these commits.

Dependency update

Annotation-Experimental: v1.4.1

April 3, 2024

androidx.annotation:annotation-experimental:1.4.1 is released. Version 1.4.1 contains these commits.

Bug Fixes

  • Fix usage of isKotlin to avoid accidentally triggering RequiresOptIn check in Kotlin files. (I2d8c1f)

Annotation: v1.8.0-beta01

April 3, 2024

androidx.annotation:annotation-*:1.8.0-beta01 is released. Version 1.8.0-beta01 contains these commits.

New Features

  • ReplaceWith annotation is now API-stable, but the associated lint check with auto-fix has not shipped yet

Car App: v1.7.0-alpha01

April 3, 2024

androidx.car.app:app-*:1.7.0-alpha01 is released. We have moved our library versioning scheme to match the active CarApi version. This is to reduce confusion on the naming scheme based on developer feedback. As a result, we will skip versions 1.5 / 1.6 directly moving to 1.7 Version 1.7.0-alpha01 contains these commits.

New Features

  • Map with Content: New template named MapWithContent which supports List / Grid / Pane / Message as Content inside a map.
    • RoutePreview, PlaceListNavigation, Map templates are now deprecated.
    • Sample apps have been updated to show functionality of deprecated templates using MapWithContent.
  • Conversation Item: New APIs for displaying conversations (IM, SMS), and Assistant readout in the car.
  • Vehicle Dimensions: New API to retrieve vehicle measures (data on AAOS at the moment).

API Changes

  • Mark extra small row image type as experimental (I5184b)
  • Added CarInfo#fetchExteriorDimensions API which allows access to vehicle exterior dimension information such as height, width, etc (Ia40c5)
  • Removed ExperimentalAPI tag from MapWithContentTemplate (I66db8)
  • Update GridItem#setTitle parameter to be nullable. (I3d610)
  • GetHeader API does not require API 7 because it is backwards compatible (I8c812)
  • Add support for Header in ListTemplate, deprecate headerAction, headerTitle, actionStrip (I7ae01)
  • Deprecate title, headerAction, actionStrip in GridTemplate and add support for Header (I41a9c)
  • Remove level 7 requirement for experimental APIs: Badge, GridTemplate item size and image shape getters/setters, GridItem methods for getting/setting Badge. (Id71eb)
  • Deprecate title, headerAction, actionStrip in PaneTemplate, add new Header support (I23154)
  • Changed Media Center telemetry from BroadcastReceiver to Browse Custom Action. (I4185f)
  • Added Header attribute support in MessageTemplate. Deprecated support for ActionStrip, headerAction and title. (Ie2de8)
  • Modify alert constant visibility (Icf8a8)
  • Remove isLoading attribute from the parent template (I651e6)
  • Add extras to inform media apps of the main UI parameters (I85ca2)
  • Add media center analytics feature to MediaExtensions (I7ce28)
  • Added option for extra small image on rows. (I72c03)

Bug Fixes

  • Update javadoc on ConversationItem to state that messages should be sorted in order from oldest to newest. (I77a2a)
  • Update ListTemplate truncation logic to remove oldest messages from ConversationItem (Ie0a61)

Compose Animation: v1.6.5

April 3, 2024

androidx.compose.animation:animation-*:1.6.5 is released. Version 1.6.5 contains these commits.

Compose Animation: v1.7.0-alpha06

April 3, 2024

androidx.compose.animation:animation-*:1.7.0-alpha06 is released. Version 1.7.0-alpha06 contains these commits.

New Features

  • Item appearance and disappearance animation support was added into LazyColumn and LazyRow. Previously it was possible to add Modifier.animateItemPlacement() modifier in order to support placement (reordering) animations. We deprecated this modifier and introduced a new non-experimental modifier called Modifier.animateItem() which allows you to support all three animation types: appearance (fade in), disappearance (fade out) and reordering. (I2d7f7, b/330152398, b/150812265)

Bug Fixes

  • Improved performance of updateTransition API.

Compose Foundation: v1.6.5

April 3, 2024

androidx.compose.foundation:foundation-*:1.6.5 is released. Version 1.6.5 contains these commits.

Bug Fixes

Compose Foundation: v1.7.0-alpha06

April 3, 2024

androidx.compose.foundation:foundation-*:1.7.0-alpha06 is released. Version 1.7.0-alpha06 contains these commits.

New Features

  • Item appearance and disappearance animation support was added into LazyColumn and LazyRow. Previously it was possible to add Modifier.animateItemPlacement() modifier in order to support placement (reordering) animations. We deprecated this modifier and introduced a new non-experimental modifier called Modifier.animateItem() which allows you to support all three animation types: appearance (fade in), disappearance (fade out) and reordering. (I2d7f7, b/150812265)
  • Clients of LazyColumn/LazyRowmay now opt-out of maintaining an index based on the key for the upcoming measure-pass by calling a non-suspend LazyListState.requestToScroll. (I98036, b/209652366)
  • Added parseAsHtml method for styled strings: it allows to convert a string marked with HTML tags into AnnotatedString. Note that not all tags are supported, for example you won't be able to display bullet lists yet. (I84d3d)
  • Implemented experimental support for long screenshots in Compose scroll containers using the official Android API (ScrollCaptureCallback). This feature is experimental and may not currently handle all cases correctly. For that reason it is currently disabled by default. To opt-in, set the ComposeFeatureFlag_LongScreenshotsEnabled flag to true. This flag will be removed before 1.7 beta. (I2b055, b/329296471)
  • Introduce new GraphicsLayer API to provide more flexibility in placement and rendering of GraphicsLayer instances and support intrinsic rendering features without needing to coordinate with Composable implementations to specify GraphicsLayer modifier instances.

API Changes

  • All KeyboardOptions parameters now have an unspecified value by default. Added KeyboardOptions.merge method.
  • Renamed KeyboardOptions.autoCorrect to autoCorrectEnabled and made it nullable, where null indicates no value was specified. (Ia8ba0, b/295951492)
  • Renamed outOfBoundsPageCount to beyondViewportPageCount. (I129c6)
  • fun ClipEntry.getMetadata() is changed to val ClipEntry.clipMetadata. (I50155)
  • Removed TextFieldState.valueAsFlow(). Prefer using snapshotFlow { state.text }, or snapshotFlow { TextFieldCharSequence(state.text, state.selection) } (I7d629)
  • Reorganized InputTransformation.transformInput parameters. Removed originalValue: TextFieldCharSequence. Instead TextFieldBuffer now carries this value with the same name. Also removed the valueWithChanges: TextFieldBuffer parameter. TextFieldBuffer now is the receiver scope on the function. (I919cc)
  • BasicTextField(state) variant and BasicSecureTextField now use KeyboardActionHandler instead of KeyboardActions to process actions taken by the software keyboard. (I58dda)
  • Stylus handwriting delegation APIs to support stylus handwriting on "fake" text input fields. (I9c09c, b/327271923)
  • Renamed KeyboardOptions.shouldShowKeyboardOnFocus to showKeyboardOnFocus. (Ib4b7a, b/295951492)
  • Removed hintMediaTypes parameter from Modifier.contentReceiver. Developers were already encouraged to check the received TransferableContent's media type since it could be incompatible with the configured hintMediaTypes. (I82f99)
  • Reordered the parameters of BasicSecureTextField. Removed keyboardType and imeAction parameters in favor of full KeyboardOptions class while keeping the same defaults appropriate for BasicSecureTextField. Also removed the scrollState parameter. (Ibbfa9)
  • TextFieldState.text's type is changed from TextFieldCharSequence to just CharSequence. Therefore, added TextFieldState.selection: TextRange and TextFieldState.composition: TextRange? to read the current selection and composition values directly from the state object.
  • Removed TextFieldState.forEachTextValue. (Idb2a2)
  • Removed ClipboardManager.getClipMetadata and ClipboardManager.hasClip functions. Please use clipEntry.getMetadata() to read the current clip entry's metadata. Also check ClipboardManager.getClip's result if it's null or not to understand whether Clipboard has a current clip. (I50498)
  • ClipboardManager.setClip now accepts null to be able to clear the Clipboard. (I7d2e9)
  • ReceiveContentListener is converted to a function interface. Also Modifier.receiveContent overload that takes in a lambda is removed since ReceiveContentListener is a function interface now.
  • Modifier.receiveContent is renamed to Modifier.contentReceiver. (I1e6af)
  • Renamed TransferableContent.consumeEach to TransferableContent.consume. (I1e462)
  • rememberTextFieldState has graduated to a Stable API. (I37999)

Bug Fixes

  • Fixed a bug where BasicTextField(state) variant did not work with CJK(composition based) keyboards. (I54425)
  • Fixed a bug where Modifier.dragAndDropTarget() could reference stale data in certain scenarios with Modifier.Node re-use. (I05bb1)
  • Reverted a recent contract change where AnchoredDraggableState#anchoredDrag calls would snap at the end of an anchoredDrag operation. (I95715)

Compose Material: v1.6.5

April 3, 2024

androidx.compose.material:material-*:1.6.5 is released. Version 1.6.5 contains these commits.

Compose Material: v1.7.0-alpha06

April 3, 2024

androidx.compose.material:material-*:1.7.0-alpha06 is released. Version 1.7.0-alpha06 contains these commits.

Announcement

  • androidx.compose.material no longer requires using the same version of every artifact is this maven group. Users can mix and match versions of Compose foundation libraries (Ie5fba)

API Changes

  • Moved more ModalDrawer and BottomDrawer defaults into DrawerDefaults object. (Ib5b2e)

Compose Material3: v1.3.0-alpha04

April 3, 2024

androidx.compose.material3:material3-*:1.3.0-alpha04 is released. Version 1.3.0-alpha04 contains these commits.

New Features

  • Added two experimental versions of the Material3 Carousel - HorizontalMultiBrowseCarousel and HorizontalUncontainedCarousel (I88d64)
  • Updated Compose M3 Nav Drawer (ModalDrawerSheet and DismissibleDrawerSheet) to support Predictive Back on U+ as opt-in (Ie5b0b)
  • Added a new API in Icon to allow passing color tint as lambda to avoid recomposing. (I5b5a2)
  • Top app bar APIs now support custom heights for both fixed and collapsible sections. (Ib8b0c, b/323403446)

API Changes

  • Top app bar APIs now support custom heights for both fixed and collapsible sections. Fixed an issue that caused single-line top app bars to recompose too many times when scrolling content. Resolved an issue where MediumTopAppBar truncated titles on devices with large font/display settings. (Ib8b0c, b/323403446, b/300953236, b/286296147, b/330410290, b/308540676)
  • SegmentedButton and associated APIs are now stable (I8a158)
  • SwipeToDismissBox, SwipeToDismissBoxDefaults, SwipeToDismissBoxState and SwipeToDismissBoxValue are now marked stable. (I5f000)
  • Removed deprecated DismissDirection and DismissValue enums and APIs. (I89ccd)
  • Added an experimental tag to Carousel's CarouselState companion object. (I94154)
  • Deprecate LocalMinimumInteractiveComponentEnforcement and introduced LocalMinimumInteractiveComponentSize to replace it. (I7a7ac)
  • SearchBarColors constructor is now public. (I769ca)
  • Added a gesturesEnabled parameter to SwipeToDismissBox. (Idc59f, b/324170119)
  • Removed text field APIs that were marked as deprecated and experimental. (I1305f)

Compose Material3 Adaptive: v1.0.0-alpha10

April 3, 2024

androidx.compose.material3.adaptive:adaptive-*:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits.

API Changes

  • Make default preferred width adaptive and customizable. (Ic3abc)
  • Rename scaffold directive calculation functions. (I10855)
  • Remove paddings and insets from scaffold APIs. (I786f8)
  • Add navigator remember methods without generic types. (I607c3)

Compose Runtime: v1.6.5

April 3, 2024

androidx.compose.runtime:runtime-*:1.6.5 is released. Version 1.6.5 contains these commits.

Compose Runtime: v1.7.0-alpha06

April 3, 2024

androidx.compose.runtime:runtime-*:1.7.0-alpha06 is released. Version 1.7.0-alpha06 contains these commits.

Bug Fixes

  • Fix provide single values handling providesDefault (538f45)
  • Avoid a deadlock in the Recomposer accessing the frame clock (07e5c6)

Compose UI: v1.6.5

April 3, 2024

androidx.compose.ui:ui-*:1.6.5 is released. Version 1.6.5 contains these commits.

Compose UI: v1.7.0-alpha06

April 3, 2024

androidx.compose.ui:ui-*:1.7.0-alpha06 is released. Version 1.7.0-alpha06 contains these commits.

New Features

  • Added parseAsHtml method for styled strings: it allows to convert a string marked with HTML tags into AnnotatedString. Note that not all tags are supported, for example you won't be able to display bullet lists yet. (I84d3d, I30626, b/139326648)
  • Implemented experimental support for long screenshots in Compose scroll containers using the official Android API (ScrollCaptureCallback). This feature is experimental and may not currently handle all cases correctly. For that reason it is currently disabled by default. To opt-in, set the ComposeFeatureFlag_LongScreenshotsEnabled flag to true. (I2b055, b/329296471)

API Changes

  • fun ClipEntry.getMetadata() is changed to val ClipEntry.clipMetadata. (I50155)
  • Removed ClipboardManager.getClipMetadata and ClipboardManager.hasClip functions. Please use clipEntry.getMetadata() to read the current clip entry's metadata. Also check ClipboardManager.getClip's result if it's null or not to understand whether Clipboard has a current clip. (I50498)
  • Now you can pass GraphicsLayer objects into placeable.placeWithLayer() functions (I1b22f)
  • ClipboardManager.setClip now accepts null to be able to clear the Clipboard. (I7d2e9)
  • Added resource ids for assist with hiding Views used as implementation details within build tooling (I99531)
  • Added GraphicsLayer#toImageBitmap suspend method to support rendering contents of a bitmap into a GraphicsLayer. This is a hardware accelerated rendering operation on API level 22+ (inclusive) which supports over 99% of all Android devices. On Android API level 21 this falls back onto software rendering. (I9e114)
  • Helper method to convert an Android RectF to ComposeRect (I39925, b/325660505)
  • All KeyboardOptions parameters now have an unspecified value by default. Added KeyboardOptions.merge method.
  • Renamed KeyboardOptions.autoCorrect to autoCorrectEnabled and made it nullable, where null indicates no value was specified. (Ia8ba0, b/295951492)
  • BasicTextField(state) variant and BasicSecureTextField now use KeyboardActionHandler instead of KeyboardActions to process actions taken by the software keyboard. (I58dda)

Core Splashscreen: v1.1.0-rc01

April 3, 2024

androidx.core:core-splashscreen:1.1.0-rc01 is released. Version 1.1.0-rc01 contains these commits.

Bug Fixes

Core and Core-ktx: v1.13.0-rc01

April 3, 2024

androidx.core:core:1.13.0-rc01, androidx.core:core-ktx:1.13.0-rc01, and androidx.core:core-testing:1.13.0-rc01 are released. Version 1.13.0-rc01 contains these commits.

Bug Fixes

Core Remote Views: v1.1.0-beta01

April 3, 2024

androidx.core:core-remoteviews:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.

credentials: v1.2.2

April 3, 2024

androidx.credentials:credentials:1.2.2 and androidx.credentials:credentials-play-services-auth:1.2.2 are released. Version 1.2.2 contains these commits.

Bug Fixes

  • Fix the already-resume error caused by race condition of multiple in-flight requests (Ic3567)
  • Fix NPE caused by clearCredentialState API (b/327686881)

credentials: v1.3.0-alpha02

April 3, 2024

androidx.credentials:credentials:1.3.0-alpha02 and androidx.credentials:credentials-play-services-auth:1.3.0-alpha02 are released. Version 1.3.0-alpha02 contains these commits.

New Features

  • Added new APIs that assist credential entries to be clearly displayed in the credential selector during a getCredential or createCredential call.

API Changes

  • Extended the Credential Options API Surface to contain information on display priorities (Ied6fe)
  • Exposed raw Bundle to structured data conversion helpers (If03a0)
  • Exposed isDefaultIcon and isAutoSelectAllowedFromOption APIs (I05c59)
  • Extended the credential entry API surface to contain information on defaulting an icon (I9fe00)
  • Added an entryGroupId bit to the credential entries (Id995c)
  • Added a new affiliationName property to the CredentialEntry API surface. (I6261e)
  • Exposed fromXYZEntry APIs to be used in the framework (I645a1)

Bug Fixes - Provided fallback solution when platform credential manager is not available. (b/310701473) - Fix NPE caused by clearCredentialState API (b/327686881)

credentials: v1.0.0-alpha01

January 11, 2023

androidx.credentials:credentials:1.0.0-alpha01 and androidx.credentials:credentials-play-services-auth:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.

New Features

  • This release contains a new jetpack library which provides a unified access to a user's credentials. This can include passwords, passkeys and federated credentials. This library should be used to provide seamless and secure sign-in experiences.
  • `androidx.credentials:credentials-play-services-auth:1.0.0-alpha01 ‘ is an optional library that allows credentials to be stored to, and retrieved from Google Password Manager. This dependency is needed for devices running Android API level <= 33.

API Changes

  • New library with new APIs

DataStore: v1.1.0-rc01

April 3, 2024

androidx.datastore:datastore-*:1.1.0-rc01 is released. Version 1.1.0-rc01 contains these commits.

Bug Fixes

  • Fixed the performance degradation where updateData calls didn’t optimize on disk writes if the new data is the same as the old data (d64cfb5)
  • Fixed a race condition where MultiProcess DataStore might miss invalidations during initialization. ((b/326141553),(094c2dd))

Fragment: v1.7.0-rc01

April 3, 2024

androidx.fragment:fragment-*:1.7.0-rc01 is released. Version 1.7.0-rc01 contains these commits.

Dependency update

Fragment: v1.8.0-alpha01

April 3, 2024

androidx.fragment:fragment-*:1.8.0-alpha01 is released. Version 1.8.0-alpha01 contains these commits.

New Features

  • The new AndroidFragment Composable allows adding fragments into the Compose hierarchy via the fragment class name. It automatically handles the saving and restoring of the Fragment’s state. This can be used as a direct replacement for the AndroidViewBinding Composable.(b/312895363, Icf841)

Documentation Changes

  • Updated documentation for the OnBackStackChangedListener APIs to indicate when they are called and how they should be used. (I0bfd9)

Dependency update

Games-Activity: v3.0.2

April 3, 2024

androidx.games:games-activity:3.0.2 and androidx.games:games-text-input:3.0.2 are released. Version 3.0.2 contains these commits.

Bug Fixes

  • We made several fixes to GamesTextInput which are aimed to improve software and hardware keyboards support. Also a bug has been fixed that was preventing GameTextInput from being used without GameActivity.

Glance: v1.1.0-beta01

April 3, 2024

androidx.glance:glance-*:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.

Health Services Client: v1.0.0-rc02

April 3, 2024

androidx.health:health-services-client:1.0.0-rc02 is released. Version 1.0.0-rc02 contains these commits. This is a bug fix only release and does not contain API changes.

Bug Fixes

  • Fixed various issues to improve IPC reliability
  • Fixed an issue where calling startExercise at the same time as prepareExercise could lead to a ConcurrentModificationException (4e37773)
  • Improved documentation

Lifecycle: v2.8.0-alpha04

April 3, 2024

androidx.lifecycle:lifecycle-*:2.8.0-alpha04 is released. Version 2.8.0-alpha04 contains these commits.

New Features

  • The lifecycle-viewmodel-compose artifact is now compatible with Kotlin Multiplatform, moving its code to common and ships an Android artifact, matching the multiplatform support of androidx.compose. The accommodate this change, the Composable viewModel method now accepts a KClass in addition to a java.lang.Class. (b/330323282)

Bug Fixes

Dependency update

  • The lifecycle-viewmodel-compose artifact now depends on Compose 1.6.0.
  • Lifecycle now depends on Profile Installer 1.3.1.

Navigation: v2.8.0-alpha06

April 3, 2024

androidx.navigation:navigation-*:2.8.0-alpha06 is released. Version 2.8.0-alpha06 contains these commits.

API Changes

Bug Fixes

  • NavHost now used Alignment.TopStart as the default contentAlignment argument. This puts it in line with the default for AnimatedContent and fixes some instances of an unexpected scale from center transition. (I09e72, b/330111602)
  • When flicking the predictive back gesture while using Navigation Compose, the NavHost will now correctly complete the custom transition instead of immediately finishing. (I99017, b/327292110)

Paging: v3.3.0-beta01

April 3, 2024

androidx.paging:paging-*:3.3.0-beta01 is released with no notable changes. Version 3.3.0-beta01 contains these commits.

privacysandbox ads: v1.1.0-beta05

April 3, 2024

androidx.privacysandbox.ads:ads-adservices:1.1.0-beta05 and androidx.privacysandbox.ads:ads-adservices-java:1.1.0-beta05 are released. Version 1.1.0-beta05 contains these commits.

Bug Fixes

  • Added error catching when a class definition is not found on Android S devices due to missing uses-library tag in manifest.

Transition: v1.5.0-rc01

April 3, 2024

androidx.transition:transition:1.5.0-rc01 and androidx.transition:transition-ktx:1.5.0-rc01 are released. Version 1.5.0-rc01 contains these commits.

Wear Compose: v1.4.0-alpha06

April 3, 2024

androidx.wear.compose:compose-*:1.4.0-alpha06 is released. Version 1.4.0-alpha06 contains these commits.

Bug Fixes

  • We have added an internal draft of rotary support, as part of the larger effort of migrating Rotary behavior into AndroidX from Horologist. (I617d1)
  • We have added an internal draft of haptics support, as part of the larger effort of migrating Rotary behavior into AndroidX from Horologist. (I5568a)

Wear Compose Material3: v1.0.0-alpha20

April 3, 2024

androidx.wear.compose:compose-material3:1.0.0-alpha20 is released. Version 1.0.0-alpha20 contains these commits.

Bug Fixes

  • We have adjusted the Ripple pressed and focused state alphas for contrast. (I59f0a)
  • We have added spacing between primary and secondary labels in Button, ToggleButton and RadioButton, following the latest changes to typography styles and line heights. (I2c0ba)

Wear Compose: v1.3.1

April 3, 2024

androidx.wear.compose:compose-*:1.3.1 is released. Version 1.3.1 contains these commits.

Bug Fixes

  • We have fixed a bug in swipe-to-reveal, where it was possible to interact with (and cancel) a committed action on one item by starting to swipe another item. (Ide059)

Wear Watchface: v1.3.0-alpha02

April 3, 2024

androidx.wear.watchface:watchface-*:1.3.0-alpha02 is released. Version 1.3.0-alpha02 contains these commits.

New Features

  • We now use reference equality to compare best and selectedData because the equals operator is expensive. (446b00)

API Changes

  • We’ve added a no-fallback dynamic API for GoalProgressComplicationData. (c33264)

Webkit: v1.11.0-rc01

April 3, 2024

androidx.webkit:webkit:1.11.0-rc01 is released. This release contains no changes from the 1.11.0-beta01 release.

WindowManager: v1.3.0-beta01

April 3, 2024

androidx.window:window-*:1.3.0-beta01 is released. Version 1.3.0-beta01 contains these commits.