Skip to content

2023-02-08

Choose a tag to compare

@github-actions github-actions released this 08 Feb 18:41
· 165 commits to main since this release

Activity: v1.7.0-beta01

February 8, 2023

androidx.activity:activity:1.7.0-beta01, androidx.activity:activity-compose:1.7.0-beta01, and androidx.activity:activity-ktx:1.7.0-beta01 are released. Version 1.7.0-beta01 contains these commits.

New Features

  • IntentSenderRequest.Builder.setFlags() now allows you to set multiple flags from Intent, rather than only a single flag. (Iac04c)

Bug Fixes

  • The fallback for PickVisualMedia for when the framework Photo Picker is unavailable now correctly limits the handling to apps installed in the device's system image. (If8ae6)

Kotlin Conversions

  • ActivityResultRegistryOwner is now written in Kotlin. This is a source incompatible change for those classes written in Kotlin - you must now override the activityResultRegistry property rather than implementing the previous getActivityResultRegistry() function. (I0b00e)
  • OnBackPressedDispatcherOwner is now written in Kotlin. This is a source incompatible change for those classes written in Kotlin - you must now override the onBackPressedDispatcher property rather than implementing the previous getOnBackPressedDispatcher function. (Ia277d)
  • ContextAware, ContextAwareHelper, OnContextAvailableListener, IntentSenderRequest and OnBackPressedDispatcher are now written in Kotlin. (I1a73e, Iada92, aosp/2410754, I18ac7, b/257291701)

Activity: v1.8.0-alpha01

February 8, 2023

androidx.activity:activity:1.8.0-alpha01, androidx.activity:activity-compose:1.8.0-alpha01, and androidx.activity:activity-ktx:1.8.0-alpha01 are released. Version 1.8.0-alpha01 contains these commits.

Note: This version will only compile against the Android 14 (Upside Down Cake) Developer Preview 1 SDK.

New Features

  • The OnBackPressedCallback class now contains new Predictive Back progress callbacks for handling the back gesture starting, progress throughout the gesture, and the back gesture being canceled in addition to the previous handleOnBackPressed() callback for when the back gesture is committed.

Annotation: v1.6.0-rc01

February 8, 2023

androidx.annotation:annotation:1.6.0-rc01 and androidx.annotation:annotation-jvm:1.6.0-rc01 are released. Version 1.6.0-rc01 contains these commits.

  • Annotation has been stabilized for release candidate 1.6.0-rc01.

Annotation: v1.6.0-dev01

February 8, 2023

androidx.annotation:annotation-*:1.6.0-dev01 is released. Version 1.6.0-dev01 contains these commits.

  • Annotation has enabled Kotlin multi-platform for developer preview 1.6.0-dev01.

Annotation-Experimental: v1.4.0-dev01

February 8, 2023

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

  • Annotation-experimental has enabled Kotlin multi-platform for developer preview 1.4.0-dev01.

Appcompat: v1.6.1

February 8, 2023

androidx.appcompat:appcompat:1.6.1 and androidx.appcompat:appcompat-resources:1.6.1 are released. Version 1.6.1 contains these commits.

Bug Fixes

  • Fixed a memory leak in AppCompatDelegate.getLocaleManagerForApplication() (44b57fd)

Appcompat: v1.7.0-alpha02

February 8, 2023

androidx.appcompat:appcompat:1.7.0-alpha02 and androidx.appcompat:appcompat-resources:1.7.0-alpha02 are released. Version 1.7.0-alpha02 contains these commits.

Bug Fixes

  • Fixed a memory leak in AppCompatDelegate.getLocaleManagerForApplication() (44b57fd)
  • AppCompat now depends on Fragment version 1.5.4 (I54dcd)

Arch Core: v2.2.0-rc01

February 8, 2023

androidx.arch.core:core-common:2.2.0-rc01, androidx.arch.core:core-runtime:2.2.0-rc01, and androidx.arch.core:core-testing:2.2.0-rc01 are released with no changes. Version 2.2.0-rc01 contains these commits.

Browser: v1.5.0

February 8, 2023

androidx.browser:browser:1.5.0 is released. Version 1.5.0 contains these commits.

Important changes since 1.4.0

  • Added CustomTabsIntent.Builder#setInitialActivityHeightPx, which allows developers to specify the initial launch height of a Custom Tab, and optionally the resize behavior (fixed or resizable). (I48bd3)
  • Added CustomTabsIntent.Builder#setToolbarCornerRadiusDp which allows developers to specify the toolbar's top corner radius. (I48bd3)
  • Added CustomTabsIntent.Builder#setCloseButtonPosition which allows developers to set the position of the close button on the toolbar. (I48bd3)
  • Added an onActivityResized callback method to interface CustomTabsCallback to let developers know when a Custom Tab is resized. (Ic864e)
  • Make parts of CustomTabsCallback APIs asynchronous. (Ic86df)
  • Populates the current app's language in Accept-Language by default to align to Android’s per-app language experience. (I3d1d7)
  • Added @RequiresPermission to APIs that require granting the POST_NOTIFICATIONS permission on SDK 33 and above. This was developed in an internal branch. b/238790278 for reference.

Compose Animation: v1.4.0-beta01

February 8, 2023

androidx.compose.animation:animation:1.4.0-beta01, androidx.compose.animation:animation-core:1.4.0-beta01, and androidx.compose.animation:animation-graphics:1.4.0-beta01 are released with no changes. Version 1.4.0-beta01 contains these commits.

Compose Compiler: v1.4.1

February 8, 2023

androidx.compose.compiler:compiler:1.4.1 is released. Version 1.4.1 contains these commits.

Bug Fixes

  • Disable intrinsic remember optimization which had previously introduced a few code generation bugs.
  • Disable intrinsic remember in functions containing a vararg parameter.
  • Fix erroneous skipping in composables with default parameters
  • Add defensive fallback error message if checking Kotlin compatibility fails.
  • Remove skipping code generation from inline lambda

Compose Compiler: v1.4.2

February 8, 2023

androidx.compose.compiler:compiler:1.4.2 is released. Version 1.4.2 contains these commits.

New Features

  • Support for Kotlin 1.8.10

Bug Fixes

  • Add groups in the body of unskippable lambdas to avoid recomposition bug.

Compose Foundation: v1.4.0-beta01

February 8, 2023

androidx.compose.foundation:foundation:1.4.0-beta01 and androidx.compose.foundation:foundation-layout:1.4.0-beta01 are released. Version 1.4.0-beta01 contains these commits.

New Features

  • Since 1.3, added Emoji compat integration to Text and TextField, as well as the lower level Paragraph. It is enabled by default when emojicompat is configured.
  • EmojiCompat can be configured on a specific Text using PlatformParagraphStyle.

API Changes

  • Added common implementation of PinnableContainer API used in all LazyLayouts to retain items that exit composition, but still need to be active. (If45a4)
  • PinnableContainer.PinnedHandle.unpin() was renamed to release() (I4667a)

External Contribution

  • Added mainAxisItemSpacing property to LazyListLayoutInfo, LazyGridLayoutInfo and LazyStaggeredGridItemInfo (I52fad)

Compose Material: v1.4.0-beta01

February 8, 2023

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

API Changes

  • Fixes an issue where pullRefresh was not consuming velocity, causing overscroll to show. Also changed the API signature of the onRelease lambda in Modifier.pullRefresh to return a Float for consumed velocity (I7db65, b/266874741)
  • Restored property getter LocalMinimuTouchTargetEnforcement and mark it as deprecated and redirect to LocalMinimumInteractiveComponentEnforcement. (I60dd5)

Compose Material 3: v1.1.0-alpha06

February 8, 2023

androidx.compose.material3:material3:1.1.0-alpha06 and androidx.compose.material3:material3-window-size-class:1.1.0-alpha06 are released. Version 1.1.0-alpha06 contains these commits.

New Features

  • Text fields now support prefix and suffix text (Ia8578, b/179884561)
  • Added a TimePicker function to show a time picker following the Material 3 spec, used in conjunction with TimePickerState and convenience method rememberTimePickerState (I71910)
  • A date input is now a display mode at the DatePicker. Added support for switching between date picker and date input modes. (Ieeff7)
  • Added API for RichTextTooltips. (I58ef3)
  • Modal bottom sheet implementation for Material 3, including ModalBottomSheet and ModalBottomSheetDefaults. Also introduces SheetState and rememberSheetState which can be used for future sheet components. (I0853a, b/244189383)

API Changes

  • Stablize the API showSnackbar (I195c2, b/261424370)
  • Stablize the APIs for assist chip and suggestion chip (Ibb67b, b/261424370)
  • Promotes ListItem, ListItemDefaults and ListItemColors API to non-experimental (I7e7fa, b/261438882)
  • Promoting SliderPositions, SliderDefaults.Thumb, and SliderDefaults.Track to stable and adding non-experimental Slider and RangeSlider APIs that contain custom thumbs and track. Also deprecating the previous Slider and RangeSlider APIs. (Ie5ea6, b/261566890)
  • Made Modifier.tooltipAnchor() public, so devs can pass it to the anchor to indicate a tooltip should be displayed on long press. Updated PlainTooltipBox API to no longer make TooltipState nullable and now has a default. (Ie2fb7)
  • ProgressIndicatorDefaults.circularTrackColor has been marked @Composable for consistency. (Id29cc)
  • Restored property getter LocalMinimuTouchTargetEnforcement and mark it as deprecated and redirect to LocalMinimumInteractiveComponentEnforcement. (I60dd5)

Compose Runtime: v1.4.0-beta01

February 8, 2023

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

API Changes

  • ComposeNodeLifecycleCallback was added which allows to observe lifecycle of Compose nodes (I3731b)
  • Added @TestOnly to Composer.disableSourceInformation() as this function is only safe to call in a test. (I896c8)

Bug Fixes

  • Remove boxing in composition local lookups (62f66a)
  • Improve memory reference characteristics of Snapshot state (dfb451)

Runtime Tracing: v1.0.0-alpha02

February 8, 2023

androidx.compose.runtime:runtime-tracing:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.

New Features

  • No functional changes. Multiple performance optimisations in downstream dependencies androidx.tracing:tracing-perfetto*.

Compose UI: v1.4.0-beta01

February 8, 2023

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

API Changes

  • PinnableContainer.PinnedHandle.unpin() was renamed to release() (I4667a)
  • Added waitUntilNodeCount, waitUntilAtLeastOneExists, waitUntilExactlyOneExists and waitUntilDoesNotExist as experimental API to ComposeTestRule, extending the waitUntil API to accept any matcher and any count of nodes. See ComposeTestRule for further documentation. (Ifa1b9, b/226934294)
  • Rename Font.MaximumAsyncTimeout to Font.MaximumAsyncTimeoutMillis. (I07af5)
  • Removed GoogleFont.Provider.AllFontsListUri and linked to it in ktdoc instead. (I16f29)

Bug Fixes

  • Add docs for AndroidFont.fontVariationSettings (I7d9e2)

Constraintlayout: v2.2.0-alpha07

February 8, 2023

androidx.constraintlayout:constraintlayout:2.2.0-alpha07 is released. Version 2.2.0-alpha07 contains these commits.

Bug Fixes

  • Fix the ConstraintLayout page content missing issue. (I82e25)

ConstraintLayout-compose, and ConstraintLayout-Core 1.1: v1.1.0-alpha07

February 8, 2023

androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha07 and androidx.constraintlayout:constraintlayout-core:1.1.0-alpha07 are released. Version 1.1.0-alpha07 contains these commits.

New Features

  • Add new APIs to enable the Grid Helper in Compose using DSL (I1143b)

Bug Fixes

  • Fixed Wrap.Chain for Flow not laying out properly to the given maxElement parameter. (e1f2ed3)
  • Fixed start ConstraintSet not updating when changing Transition through MotionLayout(motionScene: MotionScene, progress: Float, transitionName: String). (17ffff1)
  • Fixed ConstraintSet not reflecting some changes when inheriting constraints through ConstraintSet(extendConstraintSet: ConstraintSet, description: ConstraintSetScope.() -> Unit).(740804b)

credentials: v1.0.0-alpha02

February 8, 2023

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

API Changes

  • CredentialManager api signature changes (Iabdec)
  • CredentialManager api signature changes (I977ed)
  • CredentialManager api signature changes (Ia6e9b)

Bug Fixes

  • Older ‘cable’ is no longer supported in the webauthn spec, and its replacement, ‘hybrid’ is now returned for the transport list.
  • Transports were given back in two dimensional lists, this has been fixed to be the correct 1d list.

credentials: v1.2.0-alpha01

February 8, 2023

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

Note: This version will only compile against the Android 14 Developer Preview 1 SDK.

New Features

  • This release added a new set of APIs for supporting Credential Provider in storing and fetching passwords, passkeys per users’ requests.

API Changes

  • New APIs added to support Credential Providers.

Drawerlayout: v1.2.0-beta01

February 8, 2023

androidx.drawerlayout:drawerlayout:1.2.0-beta01 is released with no changes. Version 1.2.0-beta01 contains these commits.

Emoji2: v1.3.0-beta02

February 8, 2023

androidx.emoji2:emoji2-*:1.3.0-beta02 is released. Version 1.3.0-beta02 contains these commits.

New Features

  • This release is stabilization to support compose integration.

Exifinterface: v1.3.6

February 8, 2023

androidx.exifinterface:exifinterface:1.3.6 is released. Version 1.3.6 contains these commits.

Bug Fixes

  • Fix reading of alpha bit from WebP VP8L chunks (b/255405635).

Fragment: v1.6.0-alpha05

February 8, 2023

androidx.fragment:fragment-*:1.6.0-alpha05 is released. Version 1.6.0-alpha05 contains these commits.

New Features

  • The FragmentManager.OnBackStackChagnedListener interface now offers two additional callbacks, onBackStackChangeStarted and onBackStackChangeCommitted, that allow for additional information and control when back stack changes occur in the FragmentManager. (Ib7ce5, b/238686802)

API Changes

  • The Fragment and FragmentManager APIs that take an Intent or IntentSender are now properly annotated with @NonNull to prevent passing in a null value as a null value would always immediately crash the respective Android framework APIs these methods call into. (I06fd4)

Games-Activity: v2.0.0-beta01

February 8, 2023

androidx.games:games-activity:2.0.0-beta01 is released. Version 2.0.0-beta01 contains these commits.

Bug Fixes

  • Fixed system buttons handling. (2a103e)

Games-Memory-Advice version 2.0.0: v2.0.0-alpha01

February 8, 2023

androidx.games:games-memory-advice:2.0.0-alpha01 is released. Version 2.0.0-alpha01 contains these commits.

API Changes

  • Major version increase due to build files refactoring.

Bug Fixes

  • Incorrect configuration of library assets now gives an error instead of crashing.

Games Performance Tuner 2.0: v2.0.0-alpha02

February 8, 2023

androidx.games:games-performance-tuner:2.0.0-alpha02 is released. Version 2.0.0-alpha02 contains these commits.

API Changes

  • TuningFork_predictQualityLevels API added; which will help predict the correct quality level/fidelity parameters to use.

Lifecycle: v2.6.0-beta01

February 8, 2023

androidx.lifecycle:lifecycle-*:2.6.0-beta01 is released. Version 2.6.0-beta01 contains these commits.

Kotlin Conversions

  • LifecycleOwner is now written in Kotlin. This is a source incompatible change for classes written in Kotlin - they must now override the lifecycle property rather than implementing the previous getLifecycle() function. (I75b4b, b/240298691)
  • ViewModelStoreOwner is now in Kotlin. This is a source incompatible change for classes written in Kotlin - they must now override the viewModelStore property rather than implementing the previous getViewModelStore() function. (I86409, b/240298691)
  • The Kotlin extension on LifecycleOwner that provides the lifecycleScope field has been moved to the lifecycle-common artifact from lifecycle-runtime-ktx. (I41d78, b/240298691)
  • The Kotlin extension on Lifecycle that provides the coroutineScope field has been moved to the lifecycle-common artifact from lifecycle-runtime-ktx. (Iabb91, b/240298691)

Media: v1.7.0-alpha01

February 8, 2023

androidx.media:media:1.7.0-alpha01 is released. Version 1.7.0-alpha01 contains these commits.

New Features

  • Catch ForegroundServiceStartNotAllowedException in MediaButtonReceiver and forward it to onForegroundServiceStartNotAllowedException. (I0c939)
  • Add BROWSER_SERVICE_EXTRAS_KEY_FAVORITES_MEDIA_ITEM for passing Favorites media item in MediaBrowserCompat root extras. (Id3a11)
  • Add extras to set browse custom actions in MediaBrowserCompat root extras and MediaItem descriptions. (Iab163)

Navigation: v2.6.0-alpha05

February 8, 2023

androidx.navigation:navigation-*:2.6.0-alpha05 is released. Version 2.6.0-alpha05 contains these commits.

New Features

  • NavController.popBackStack(route), NavController.getBackStackEntry(route), NavController.clearBackStack(route) now all support routes with arguments partially or fully filled in. Note that the arguments have to be an exact match with the entry's arguments. (Iebd28, Ic678c, I3b37b, b/257514373)
  • The FragmentNavigator now uses the transition APIs when navigating and popping NavBackStackEntries. This means that the NavBackStackEntry Lifecycle will now wait for the entering and exiting fragment special effects to complete before moving their final Lifecycle.State. (I3cb19, b/238686802)
  • The DialogFragmentNavigator now uses the transition APIs when navigating and popping NavBackStackEntries. This means that the NavBackStackEntry Lifecycle will now wait for the DialogFragment Lifecycle to move to DESTROYED before moving to DESTROYED itself. (I53ee5, b/261213893)

API Changes

  • NavigatorState now provides the prepareForTransition API to allow Navigators to move NavBackStackEntries to intermediate Lifecycle.States. (I42c21, b/238686802)
  • You can now access the back stack associated with a NavGraphNavigator or a ComposeNavigator via a backstack property. ComposeNavigator also now exposes the onTransitionComplete() callback to mark a NavBackStackEntry that has executed a navigate or popBackStack operation as complete. (I02062, I718db, b/257519195)

Bug Fixes

  • Navigator state will now no-op when using the push/popWithTransition APIs and the entry is already being handled. (Iadbfa, b/261213893)
  • When using launchSingleTop with a nested NavGraph all destinations starting from original destination to its startDestination will only be properly added to the top of the backstack. (Id4bea, b/253256629)
  • Navigation will now properly replace the DialogFragment instance when navigating to the same destination with the launchSingleTop flag set to true. (I45b5a, b/149572817)
  • Navigation SafeArgs will no longer cause a compilation error when using arguments that are exactly 19 characters long. (Id60bc, b/257110095)

Paging: v3.2.0-alpha04

February 8, 2023

androidx.paging:paging-*:3.2.0-alpha04 is released. Version 3.2.0-alpha04 contains these commits.

Paging Testing

  • The paging-testing artifact now contains a asPagingSourceFactory method to create a pagingSourceFactory from a Flow<List<Value>> to be supplied to a Pager. Each List<Value>> emitted from the Flow represents a generation of Paged data. This facilitates paging tests on, for example, PagingData transformations by faking a data source for the Pager to collect from. (I6f230, b/235528239)
  • The paging-testing artifact has been expanded with new APIs suitable for verifying the data contained with a Flow<PagingData<T>> is correct. This can be used, for example, to assert the output of a Flow<PagingData<T>> from your ViewModel layer.

    This is done via the asSnapshot Kotlin extension on Flow<PagingData<Value>>, which translates the Flow<PagingData<Value>> into a direct List<Value>. The asSnapshot lambda allows you to mimic the UI of your app via APIs such as scrollTo or appendScrollWhile in a way that is repeatable and consistent so that you can verify the snapshot of data is correct at any point in your set of paged data.

    // Create your ViewModel instance
    val viewModel = …
    // Get the Flow of PagingData from the ViewModel
    val data< Flow<PagingData<String>> = viewModel.data
    val snapshot: List<String> = data.asSnapshot {
      // Each operation inside the lambda waits for the data to settle before continuing
      scrollTo(index = 50)
    

    // While you can’t view the items within the asSnapshot call,
    // you can continuously scroll in a direction while some condition is true
    // i.e., in this case until you hit a placeholder item
    appendScrollWhile { item: String -> item != “Header 1” }
    }
    // With the asSnapshot complete, you can now verify that the snapshot
    // has the expected values

    asSnapshot is a suspend method that is expected to be run within runTest. See Testing Kotlin coroutines on Android for more information. (I55fd2, I5bd26, I7ce34, I51f4d, I2249f, Id6223, Ic4bab, Ib29b9, Ic1238, I96def, b/235528239)

API Changes

  • UI calls to getItem and peek in AsyncPagingDataDiffer and PagingDataAdapter are now correctly marked as only callable on the Main thread. (I699b6)
  • Removed wildcards from generic types used by TestPager, making it easier to consume the results of those methods in code written in the Java programming language. (I56c42)

Paging Compose: v1.0.0-alpha18

February 8, 2023

androidx.paging:paging-compose:1.0.0-alpha18 is released with no changes. Version 1.0.0-alpha18 contains these commits.

ProfileInstaller: v1.3.0-beta01

February 8, 2023

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

API Changes

  • Removes support for handling compressed profiles - opening and decompressing leads to a 10s of ms regression in CPU utilization during startup, so instead added a diagnostic to discover incorrectly compressed baseline profiles. (I86413, b/261998144)

Tracing Perfetto: v1.0.0-alpha10

February 8, 2023

androidx.tracing:tracing-perfetto:1.0.0-alpha10, androidx.tracing:tracing-perfetto-binary:1.0.0-alpha10 and androidx.tracing:tracing-perfetto-common:1.0.0-alpha10 are released with no changes. Version 1.0.0-alpha10 contains these commits.

tv: v1.0.0-alpha04

February 8, 2023

androidx.tv:tv-foundation:1.0.0-alpha04 and androidx.tv:tv-material:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits.

New Features

  • In lazy rows, columns and grids, the pivot is overridden, if necessary, to ensure the entire item is brought into view. (11d7e40)
  • Add customization of tab colors in different states. (21b2925)
  • Carousel now accepts custom animations for forward and backward manual scrolling. (431494a)

API Changes

  • Renaming androidx.tv.material to androidx.tv.material3 and flattening package structure under androidx.tv.material3. (I6ca52)
  • Indicator within Carousel Indicator row is now a slot that can be customized by the developer. (268af2a)
  • Renamed focusableItem to immersiveListItem. Users will have to manually add focusable() or clickable() modifier along with immersiveListItem (5dd5078)(b/263061052)
  • Renamed timeToDisplayMillis to autoScrollDurationMillis in Carousel component. (431494a)
  • CarouselItem is now restricted to use within Carousel's. (431494a)
  • Carousel now accepts ContentTransforms as the animation definition instead of EnterTransition and ExitTransitions. (431494a)
  • Introduced PinnableContainer api propagated by lazy lists via a composition local which allows to pin current item. (Ib8881, b/259274257, b/195049010)
  • Added mainAxisItemSpacing property to TvLazyListLayoutInfo and TvLazyGridLayoutInfo (I37765)

Bug Fixes

  • Update tab-row to ensure it handles tab-count of 0 or 1 correctly. (I44009), (1c01525), (b/264018028)
  • Fix focus-search crash when TvLazyColumn contains empty TvLazyRow. (e11b4fe), (b/260299091)
  • The clickable modifier now works with ImmersiveList. (5dd5078), (b/263061052)
  • Back key is now handled and used to exit Featured Carousel. (84c138c)
  • Carousel does not lose focus on multiple fast key-presses. (799489f)
  • Carousel does not lose focus on long key-presses. (b2cf37e)
  • Addressed crashes when carousel slide-count changes. (b261247)

Wear Compose: v1.2.0-alpha04

February 8, 2023

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

New Features

  • PickerGroup for handling multiple pickers together using the focus API. It handles the focus between the different pickers, enables auto-centering of the pickers based on parameters and allows developers to change the focus between different pickers while handling the events from the group. In talkback mode, the PickerGroup handles the talkback focus by moving the focus to the selected Picker from the group. (I60840)

API Changes

  • We have added an overload to Stepper with an additional enableRangeSemantics parameter in order to facilitate disabling the default range semantics (Ia61d4)

Bug Fixes

  • Allow ScalingLazyColumn to be nested within a horizontally scrolling page (Iec3f8, b/266555016)
  • Improvement of Stepper kdocs and StepperTest tests clean-up. (Ic118e)
  • Updated androidx.navigation dependency to version 2.5.3 (If58ed)

Wear Compose: v1.1.2

February 8, 2023

androidx.wear.compose:compose-foundation:1.1.2, androidx.wear.compose:compose-material:1.1.2, and androidx.wear.compose:compose-navigation:1.1.2 are released. Version 1.1.2 contains these commits.

Bug Fixes

  • We have fixed a bug that caused unnecessary recompositions in ScalingLazyListState.centerItemIndex by ensuring that it only pushes updates when the value actually changes (Ia9f38)

wear protolayout: v1.0.0-alpha03

February 8, 2023

androidx.wear.protolayout:protolayout-*:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.

New Features

  • We have added toByteArray() and fromByteArray() to Dynamic types in protolayout-express library.
  • We have added toString() to Dynamic types in protolayout-expression library.
  • We have added evaluation support for Dynamic types. The DynamicTypeEvaluator class from the protolayout-expression-pipeline library can be used to evaluate (and receive updated values) for a previously create Dynamic type (DynamicString, DynamicFloat, …)
  • When animations can't be played (either because they are disabled by the evaluator, or the number of running animations has reached the set limit), the static values set on the animatable node will be used to replace the animation.

Webkit: v1.7.0-alpha02

February 8, 2023

androidx.webkit:webkit:1.7.0-alpha02 is released. Version 1.7.0-alpha02 contains these commits.

Bug Fixes

  • Documentation bugs for DropDataContentProvider.

WorkManager: v2.8.0

February 8, 2023

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

Important changes since 2.7.0

New Features

API Changes

  • WorkManager.updateWork was added to update work preserving its original enqueue time and chaining.(I9a248, b/219446409)
  • ExistingPeriodicWorkPolicy.UPDATE was added. This policy allows updating a periodic work by the name. It is similar to the existing REPLACE, but it is less intrusive: it doesn't cancel a worker if it is currently running and it preserves enqueue time - initial delay and period are calculated from original enqueue time, rather than update time. REPLACE was deprecated to decrease a confusion between the very similarly named REPLACE and UPDATE. If you still want to keep the previous semantics of REPLACE, the newly added CANCEL_AND_REENQUEUE, which is identical to REPLACE, can be used. (I985ed, b/219446409)
  • Added the ability to intercept scheduling exceptions providing Consumer<Throwable> via setSchedulingExceptionHandler)
  • Added the ability to provide Consumer<Throwable> via setInitializationExceptionHandler to determine if there were issues when trying to initialize WorkManager.
  • Inline helpers for OneTimeWorkRequest & PeriodicWorkRequest were moved from androidx.work:work-runtime-ktx to androidx.work:work-runtime (I0010f, b/209145335)
  • Helper methods WorkQuery.fromIds, WorkQuery.fromStates, WorkQuery.fromUniqueWorkNames, WorkQuery.fromTags were added to create WorkQuery directly. (b/199919736) (If48f2, b/199919736)
  • Added getForegroundInfo to Worker. (Ic1ead)
  • RxWorker both for RxJava 2 and RxJava 3 now has setForeground returning Completable that can be used instead of setForegroundInfoAsync that returns ListenableFuture
  • RxWorker both for RxJava 2 and RxJava 3 has getForegroundInfo returning Single that can be used instead of getForegroundInfoAsync that returns ListenableFuture. (b/203851459)
  • Constraints can now be directly constructed rather than using Constraints.Builder, which is convenient for Kotlin users. (Idc390, b/137568653)
  • Added the ability to check if WorkManager has been initialized. Also, added a new getConfiguration() API for library developers to get the configuration that WorkManager was initialized with. (I6eff3, b/212300336)

Bug Fixes

  • Fixed an issue with the greedy scheduler that would prevent workers from running immediately when under load. (I9686b, b/248111307)
  • Added @RequiresPermission to APIs that require granting the POST_NOTIFICATIONS permission on SDK 33 and above. (Ie542e, b/238790278)
  • Propagate cancellations in the CoroutineScope to the ListenableFuture when using suspendCancellableCoroutine.