2023-02-08
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 fromIntent, rather than only a single flag. (Iac04c)
Bug Fixes
- The fallback for
PickVisualMediafor when the framework Photo Picker is unavailable now correctly limits the handling to apps installed in the device's system image. (If8ae6)
Kotlin Conversions
ActivityResultRegistryOwneris now written in Kotlin. This is a source incompatible change for those classes written in Kotlin - you must now override theactivityResultRegistryproperty rather than implementing the previousgetActivityResultRegistry()function. (I0b00e)OnBackPressedDispatcherOwneris now written in Kotlin. This is a source incompatible change for those classes written in Kotlin - you must now override theonBackPressedDispatcherproperty rather than implementing the previousgetOnBackPressedDispatcherfunction. (Ia277d)ContextAware,ContextAwareHelper,OnContextAvailableListener,IntentSenderRequestandOnBackPressedDispatcherare 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.
New Features
- The
OnBackPressedCallbackclass 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 previoushandleOnBackPressed()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) AppCompatnow 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#setToolbarCornerRadiusDpwhich allows developers to specify the toolbar's top corner radius. (I48bd3) - Added
CustomTabsIntent.Builder#setCloseButtonPositionwhich allows developers to set the position of the close button on the toolbar. (I48bd3) - Added an
onActivityResizedcallback method to interfaceCustomTabsCallbackto let developers know when a Custom Tab is resized. (Ic864e) - Make parts of
CustomTabsCallbackAPIs asynchronous. (Ic86df) - Populates the current app's language in Accept-Language by default to align to Android’s per-app language experience. (I3d1d7)
- Added
@RequiresPermissionto APIs that require granting thePOST_NOTIFICATIONSpermission 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
TextandTextField, as well as the lower level Paragraph. It is enabled by default when emojicompat is configured. EmojiCompatcan be configured on a specific Text usingPlatformParagraphStyle.
API Changes
- Added common implementation of
PinnableContainerAPI used in allLazyLayoutsto retain items that exit composition, but still need to be active. (If45a4) PinnableContainer.PinnedHandle.unpin()was renamed torelease()(I4667a)
External Contribution
- Added
mainAxisItemSpacingproperty toLazyListLayoutInfo,LazyGridLayoutInfoandLazyStaggeredGridItemInfo(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
pullRefreshwas not consuming velocity, causing overscroll to show. Also changed the API signature of theonReleaselambda inModifier.pullRefreshto return a Float for consumed velocity (I7db65, b/266874741) - Restored property getter
LocalMinimuTouchTargetEnforcementand mark it as deprecated and redirect toLocalMinimumInteractiveComponentEnforcement. (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
TimePickerfunction to show a time picker following the Material 3 spec, used in conjunction withTimePickerStateand convenience methodrememberTimePickerState(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
ModalBottomSheetandModalBottomSheetDefaults. Also introducesSheetStateandrememberSheetStatewhich 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,ListItemDefaultsandListItemColorsAPI to non-experimental (I7e7fa, b/261438882) - Promoting
SliderPositions,SliderDefaults.Thumb, andSliderDefaults.Trackto stable and adding non-experimentalSliderandRangeSliderAPIs that contain custom thumbs and track. Also deprecating the previousSliderandRangeSliderAPIs. (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. UpdatedPlainTooltipBoxAPI to no longer makeTooltipStatenullable and now has a default. (Ie2fb7) ProgressIndicatorDefaults.circularTrackColorhas been marked@Composablefor consistency. (Id29cc)- Restored property getter
LocalMinimuTouchTargetEnforcementand mark it as deprecated and redirect toLocalMinimumInteractiveComponentEnforcement. (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
ComposeNodeLifecycleCallbackwas added which allows to observe lifecycle of Compose nodes (I3731b)- Added
@TestOnlytoComposer.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 torelease()(I4667a)- Added
waitUntilNodeCount,waitUntilAtLeastOneExists,waitUntilExactlyOneExistsandwaitUntilDoesNotExistas experimental API toComposeTestRule, extending thewaitUntilAPI to accept any matcher and any count of nodes. SeeComposeTestRulefor further documentation. (Ifa1b9, b/226934294) - Rename
Font.MaximumAsyncTimeouttoFont.MaximumAsyncTimeoutMillis. (I07af5) - Removed
GoogleFont.Provider.AllFontsListUriand 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
ConstraintLayoutpage 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.Chainfor Flow not laying out properly to the givenmaxElementparameter. (e1f2ed3) - Fixed
startConstraintSetnot updating when changing Transition throughMotionLayout(motionScene: MotionScene, progress: Float, transitionName: String). (17ffff1) - Fixed
ConstraintSetnot reflecting some changes when inheriting constraints throughConstraintSet(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
CredentialManagerapi signature changes (Iabdec)CredentialManagerapi signature changes (I977ed)CredentialManagerapi 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.
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.OnBackStackChagnedListenerinterface now offers two additional callbacks,onBackStackChangeStartedandonBackStackChangeCommitted, that allow for additional information and control when back stack changes occur in theFragmentManager. (Ib7ce5, b/238686802)
API Changes
- The
FragmentandFragmentManagerAPIs that take anIntentorIntentSenderare now properly annotated with@NonNullto 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_predictQualityLevelsAPI 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
LifecycleOwneris now written in Kotlin. This is a source incompatible change for classes written in Kotlin - they must now override thelifecycleproperty rather than implementing the previousgetLifecycle()function. (I75b4b, b/240298691)ViewModelStoreOwneris now in Kotlin. This is a source incompatible change for classes written in Kotlin - they must now override theviewModelStoreproperty rather than implementing the previousgetViewModelStore()function. (I86409, b/240298691)- The Kotlin extension on
LifecycleOwnerthat provides thelifecycleScopefield has been moved to thelifecycle-commonartifact fromlifecycle-runtime-ktx. (I41d78, b/240298691) - The Kotlin extension on
Lifecyclethat provides thecoroutineScopefield has been moved to thelifecycle-commonartifact fromlifecycle-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
ForegroundServiceStartNotAllowedExceptioninMediaButtonReceiverand forward it toonForegroundServiceStartNotAllowedException. (I0c939) - Add
BROWSER_SERVICE_EXTRAS_KEY_FAVORITES_MEDIA_ITEMfor passing Favorites media item inMediaBrowserCompatroot extras. (Id3a11) - Add extras to set browse custom actions in
MediaBrowserCompatroot extras andMediaItemdescriptions. (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
FragmentNavigatornow uses the transition APIs when navigating and poppingNavBackStackEntries. This means that theNavBackStackEntryLifecyclewill now wait for the entering and exiting fragment special effects to complete before moving their finalLifecycle.State. (I3cb19, b/238686802) - The
DialogFragmentNavigatornow uses the transition APIs when navigating and poppingNavBackStackEntries. This means that theNavBackStackEntryLifecyclewill now wait for theDialogFragmentLifecycleto move toDESTROYEDbefore moving toDESTROYEDitself. (I53ee5, b/261213893)
API Changes
NavigatorStatenow provides theprepareForTransitionAPI to allowNavigators to moveNavBackStackEntriesto intermediateLifecycle.States. (I42c21, b/238686802)- You can now access the back stack associated with a
NavGraphNavigatoror aComposeNavigatorvia abackstackproperty.ComposeNavigatoralso now exposes theonTransitionComplete()callback to mark aNavBackStackEntrythat has executed a navigate orpopBackStackoperation as complete. (I02062, I718db, b/257519195)
Bug Fixes
- Navigator state will now no-op when using the
push/popWithTransitionAPIs and the entry is already being handled. (Iadbfa, b/261213893) - When using
launchSingleTopwith a nestedNavGraphall destinations starting from original destination to itsstartDestinationwill only be properly added to the top of the backstack. (Id4bea, b/253256629) - Navigation will now properly replace the
DialogFragmentinstance when navigating to the same destination with thelaunchSingleTopflag 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-testingartifact now contains aasPagingSourceFactorymethod to create apagingSourceFactoryfrom aFlow<List<Value>>to be supplied to a Pager. EachList<Value>>emitted from the Flow represents a generation of Paged data. This facilitates paging tests on, for example,PagingDatatransformations by faking a data source for the Pager to collect from. (I6f230, b/235528239) The
paging-testingartifact has been expanded with new APIs suitable for verifying the data contained with aFlow<PagingData<T>>is correct. This can be used, for example, to assert the output of aFlow<PagingData<T>>from your ViewModel layer.This is done via the
asSnapshotKotlin extension onFlow<PagingData<Value>>, which translates theFlow<PagingData<Value>>into a directList<Value>. TheasSnapshotlambda allows you to mimic the UI of your app via APIs such asscrollToorappendScrollWhilein 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
asSnapshotis asuspendmethod that is expected to be run withinrunTest. 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
getItemandpeekinAsyncPagingDataDifferandPagingDataAdapterare 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.materialtoandroidx.tv.material3and flattening package structure underandroidx.tv.material3. (I6ca52) - Indicator within Carousel Indicator row is now a slot that can be customized by the developer. (268af2a)
- Renamed
focusableItemtoimmersiveListItem. Users will have to manually addfocusable()orclickable()modifier along withimmersiveListItem(5dd5078)(b/263061052) - Renamed
timeToDisplayMillistoautoScrollDurationMillisin Carousel component. (431494a) CarouselItemis now restricted to use withinCarousel's. (431494a)- Carousel now accepts
ContentTransformsas the animation definition instead ofEnterTransitionandExitTransitions. (431494a) - Introduced
PinnableContainerapi propagated by lazy lists via a composition local which allows to pin current item. (Ib8881, b/259274257, b/195049010) - Added
mainAxisItemSpacingproperty toTvLazyListLayoutInfoandTvLazyGridLayoutInfo(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
TvLazyColumncontains emptyTvLazyRow. (e11b4fe), (b/260299091) - The
clickablemodifier now works withImmersiveList. (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
PickerGroupfor 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, thePickerGrouphandles 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
enableRangeSemanticsparameter in order to facilitate disabling the default range semantics (Ia61d4)
Bug Fixes
- Allow
ScalingLazyColumnto be nested within a horizontally scrolling page (Iec3f8, b/266555016) - Improvement of Stepper kdocs and
StepperTesttests clean-up. (Ic118e) - Updated
androidx.navigationdependency 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.centerItemIndexby 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()andfromByteArray()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
DynamicTypeEvaluatorclass 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
- An ability to update
WorkRequestsin a non-intrusive way was added, preserving original enqueue time, chaining etc. See detailed blogpost about this feature, as well as javadocs forWorkManager.updateWorkandExistingPeriodicWorkPolicy.UPDATEfor more details.
API Changes
WorkManager.updateWorkwas added to update work preserving its original enqueue time and chaining.(I9a248, b/219446409)ExistingPeriodicWorkPolicy.UPDATEwas added. This policy allows updating a periodic work by the name. It is similar to the existingREPLACE, 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.REPLACEwas deprecated to decrease a confusion between the very similarly namedREPLACEandUPDATE. If you still want to keep the previous semantics ofREPLACE, the newly addedCANCEL_AND_REENQUEUE, which is identical toREPLACE, 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&PeriodicWorkRequestwere moved fromandroidx.work:work-runtime-ktxtoandroidx.work:work-runtime(I0010f, b/209145335) - Helper methods
WorkQuery.fromIds,WorkQuery.fromStates,WorkQuery.fromUniqueWorkNames,WorkQuery.fromTagswere added to createWorkQuerydirectly. (b/199919736) (If48f2, b/199919736) - Added
getForegroundInfotoWorker. (Ic1ead) RxWorkerboth for RxJava 2 and RxJava 3 now hassetForegroundreturningCompletablethat can be used instead ofsetForegroundInfoAsyncthat returnsListenableFutureRxWorkerboth for RxJava 2 and RxJava 3 hasgetForegroundInforeturningSinglethat can be used instead ofgetForegroundInfoAsyncthat returnsListenableFuture. (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
WorkManagerhas been initialized. Also, added a newgetConfiguration()API for library developers to get the configuration thatWorkManagerwas 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
@RequiresPermissionto APIs that require granting thePOST_NOTIFICATIONSpermission on SDK 33 and above. (Ie542e, b/238790278) - Propagate cancellations in the
CoroutineScopeto theListenableFuturewhen usingsuspendCancellableCoroutine.