2023-03-08
Activity: v1.7.0-rc01
March 8, 2023
androidx.activity:activity:1.7.0-rc01, androidx.activity:activity-compose:1.7.0-rc01, and androidx.activity:activity-ktx:1.7.0-rc01 are released. Version 1.7.0-rc01 contains these commits.
Dependency update
- Activity now depends on
Lifecycle 2.6.0.
Activity: v1.8.0-alpha02
March 8, 2023
androidx.activity:activity:1.8.0-alpha02, androidx.activity:activity-compose:1.8.0-alpha02, and androidx.activity:activity-ktx:1.8.0-alpha02 are released. Developed from an internal branch.
Dependency update
- From Activity
1.7.0-rc01: Activity now depends onLifecycle 2.6.0.
Ads: v1.0.0-alpha05
March 8, 2023
androidx.ads:ads-identifier:1.0.0-alpha05, androidx.ads:ads-identifier-common:1.0.0-alpha05, and androidx.ads:ads-identifier-provider:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.
API Changes
- Deprecated
androidx.ads:ads-identifier&androidx.ads:ads-identifier-provider. Please migrate to the Advertising ID API that's available as part of Google Play Services instead. (I57791)
Benchmark: v1.2.0-alpha11
March 8, 2023
androidx.benchmark:benchmark-*:1.2.0-alpha11 is released. Version 1.2.0-alpha11 contains these commits.
Bug Fixes
- Fixed crashes in
MacrobenchmarkRuleandBaselineProfileRulewhen reinstalling or extracting profiles from an app bundle with multiple APKs. (I0d8c8, b/270587281)
Compose Animation: v1.4.0-rc01
March 8, 2023
androidx.compose.animation:animation:1.4.0-rc01, androidx.compose.animation:animation-core:1.4.0-rc01, and androidx.compose.animation:animation-graphics:1.4.0-rc01 are released with no changes. Version 1.4.0-rc01 contains these commits.
Compose Foundation: v1.4.0-rc01
March 8, 2023
androidx.compose.foundation:foundation:1.4.0-rc01 and androidx.compose.foundation:foundation-layout:1.4.0-rc01 are released. Version 1.4.0-rc01 contains these commits.
API Changes
- Introduced new low-level
PlatformTextInputAdapterAPI for building custom text input implementations that talk directly to platform APIs. (I58df4) - Add support for reverse layout to
LazyStaggeredGrid. (I3ef4a)
Bug Fixes
BasicTextField'sSetTextsemantics action will now update the text buffer using the same code path as IME updates and the testing functions (e.g.performTextReplacement).- Text testing functions
performTextClearance,performTextReplacement, andperformTextSelectionnow useSemanticsActions. (I0807d, b/269633168, b/269624358)
Compose Material: v1.4.0-rc01
March 8, 2023
androidx.compose.material:material-*:1.4.0-rc01 is released with no changes. Version 1.4.0-rc01 contains these commits.
Compose Material 3: v1.1.0-alpha08
March 8, 2023
androidx.compose.material3:material3:1.1.0-alpha08 and androidx.compose.material3:material3-window-size-class:1.1.0-alpha08 are released. Version 1.1.0-alpha08 contains these commits.
New Features
- Added support for
BottomSheetScaffoldandBottomSheetScaffoldState. (I063d4)
API Changes
- Added functionality to the
DatePickerStateand theDateRangePickerStateto allow setting dates after the initial creation of the state, as well as resetting selections by setting null timestamps. Setting dates manually should be made with caution, and the newsetSelectionfunction will throw an exception in case a provided date fails a precondition (see documentation). (Ifa645, b/268609314, b/270427389) - Rename Collapsed
SheetValuetoPartiallyExpandedto more accurately and flexibly depict behavior in this state. (Ia1491) - Updated
ListItemparameter names to _content instead of _text. Default getters are nowReadOnlyComposableswhere relevant. (I69a25) - Graduate interactive Surface APIs from experimental. (I90d59, b/261561812)
Bug Fixes
- Fixed an issue where
ModalBottomSheet'sHalfExpandedstate was calculated incorrectly and the sheet would appear to be floating. (I45e84, b/268411386) - Add
confirmValueChangecheck to scrim tap forModalBottomSheet. (I2311a, b/270425759) - Move semantic
BottomSheetactions to drag handle. (I158ba) ModalBottomSheetnow commands focus on launch, handles back button. (I4d2ab)ModalBottomSheet onDismissRequestis now also handled during nested scroll flings. (I655c5, b/268433166)
Compose Runtime: v1.4.0-rc01
March 8, 2023
androidx.compose.runtime:runtime-*:1.4.0-rc01 is released. Version 1.4.0-rc01 contains these commits.
Bug Fixes
Compose UI: v1.4.0-rc01
March 8, 2023
androidx.compose.ui:ui-*:1.4.0-rc01 is released. Version 1.4.0-rc01 contains these commits.
API Changes
- Added an overload of
AndroidViewcomposable function, which accepts theonResetparam. It allows View instances to be reused when their node in the composition is discarded and reused in a compatible way. This is especially useful forLazyRowsandLazyColumnsof Views. (I3f10d, b/230099236) - Introduced new low-level
PlatformTextInputAdapterAPI for building custom text input implementations that talk directly to platform APIs. (I58df4)
Bug Fixes
BasicTextField'sSetTextsemantics action will now update the text buffer using the same code path as IME updates and the testing functions (e.g.performTextReplacement).- Text testing functions
performTextClearance,performTextReplacement, andperformTextSelectionnow useSemanticsActions. (I0807d, b/269633168, b/269624358)
Constraintlayout: v2.2.0-alpha08
March 8, 2023
androidx.constraintlayout:constraintlayout:2.2.0-alpha08 is released. Version 2.2.0-alpha08 contains these commits.
ConstraintLayout-compose, and ConstraintLayout-Core 1.1: v1.1.0-alpha08
March 8, 2023
androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha08 and androidx.constraintlayout:constraintlayout-core:1.1.0-alpha08 are released. Version 1.1.0-alpha08 contains these commits.
New Features
- Lint checks added to suggest the use of
Dimension.percent(1f)andLayoutReference.withChainParams()in cases where the typical patterns may lead to unpredictable behavior. (I62eb0, I03060)
API Changes
- Enable
ReverseSpanDirectionandSpansOrderFirstflags for Grid Helper in Compose.ReverseSpanDirection: reverse the width and height specification for spans/skips.SpansOrderFirst: spans would respect the order of the widgets. (I6ad50)
- Use
Modifier.onStartEndBoundsChanged(...)to obtain local bounds of Composables in aMotionLayoutthat are not affected by animation. Useful for any ui interaction that requires layout information that may also trigger animations such asDragAndDrop. (I6b5f9) - Enable skips and spans of the Grid Helper in Compose (I917b6)
Bug Fixes
- Fixed translation properties not applying expected values. (I961cd)
Core and Core-ktx: v1.10.0-rc01
March 8, 2023
androidx.core:core:1.10.0-rc01 and androidx.core:core-ktx:1.10.0-rc01 are released with no changes from the previous beta.
Core and Core-ktx: v1.12.0-alpha01
March 8, 2023
androidx.core:core:1.12.0-alpha01 and androidx.core:core-ktx:1.12.0-alpha01 are released. Version 1.12.0-alpha01 contains these commits.
New Features
- Provides APIs to help developers to easily access user's preference or the locale data in ICU. The accessible locale data includes hour cycle, calendar type, temperature unit, and first day of week.
API Changes
- Added new APIs
LocalePreferencesto help developers to easily access locale data or user's locale preferences.
credentials: v1.0.0-alpha04
March 8, 2023
androidx.credentials:credentials:1.0.0-alpha04 and androidx.credentials:credentials-play-services-auth:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits.
API Changes
- Added
android.permission.CREDENTIAL_MANAGER_SET_ORIGINrequirement for setting origin in Jetpack Library. (Ibaad4) - Added passkey get flow exceptions (I4f654)
CredentialManagerapi autoselect behavior update (I576dd)CreateCredentialRequest.DisplayInfonow usesCharSequencerather thanStringfields. (I85e70)
Bug Fixes
- Add proguard rules to ensure the play auth module won't be removed by R8. (9543977)
credentials: v1.2.0-alpha02
March 8, 2023
androidx.credentials:credentials:1.2.0-alpha02 and androidx.credentials:credentials-play-services-auth:1.2.0-alpha02 are released. Developed from an internal branch.
API Changes
- Enable testing of provider request classes by making constructors public.
- Make icons required in all entry classes. However if credential providers do not provide icons, this library will have fallback icons.
- Allow credential providers to set multiple authentication action entries, and set a title for each.
- Remove all privileged request classes. Providers can now simply get the origin from
android.service.credentials.CallingAppInfoclass, and do not need to handle special request classes for privileged calls (calls on behalf of another app).
Drawerlayout: v1.2.0-rc01
March 8, 2023
androidx.drawerlayout:drawerlayout:1.2.0-rc01 is released with no changes. Version 1.2.0-rc01 contains these commits.
Emoji2: v1.3.0-rc01
March 8, 2023
androidx.emoji2:emoji2-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
New Features
- This version is to support emoji2 compose integration.
API Changes
- Replace spans for custom drawing code.
- Querying system exclusions.
Bug Fixes
- And fixed a bug where background spans were not correctly applied behind
EmojiSopans.
Emoji2 Emojipicker: v1.0.0-alpha03
March 8, 2023
androidx.emoji2:emoji2-emojipicker:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
Bug Fixes
- Removed unnecessary resources and reduced library size by ~0.3M.
Fragment: v1.6.0-alpha07
March 8, 2023
androidx.fragment:fragment-*:1.6.0-alpha07 is released. Version 1.6.0-alpha07 contains these commits.
Bug Fixes
- Fixed an issue where the removal of any Fragment, whether it had added Menu items or not, would invalidate the activity's menu. (50f098, b/244336571)
Games-Activity: v2.0.0
March 8, 2023
androidx.games:games-activity:2.0.0 is released. Version 2.0.0 contains these commits.
Major features of 2.0.0
- Changed interface for historical event times to overcome the 32 bit limit.
- Provided user access to configuration changes, like orientation.
- Provided up-to-date information in the
contentRectstructure. - Provided an easier way to customize default
SurfaceView. - Fixed default OS handling of touch events, like handling system buttons.
- Optimized out most JNI calls in touch event handling; this used to affect performance.
Lifecycle: v2.6.0
March 8, 2023
androidx.lifecycle:lifecycle-*:2.6.0 is released. Version 2.6.0 contains these commits.
Important changes since 2.5.0
LiveDatanow includes a newisInitializedproperty that indicates whether an explicit value has ever been set on theLiveData, allowing you to distinguish betweenliveData.valuereturningnullbecause no value has ever been set or an explicitnullvalue.MediatorLiveDatanow includes a constructor to set an initial value.- Added a new extension on
StateFlowandFlowofcollectAsStateWithLifecycle()that collect from flows and represents its latest value as Compose State in a lifecycle-aware manner. Lifecycle.launchWhenXmethods andLifecycle.whenXmethods have been deprecated as the use of a pausing dispatcher can lead to wasted resources in some cases. It is recommended to useLifecycle.repeatOnLifecycle. For more information about one-time suspending work, please see this explanation on why this is inherently unsafe.- Kotlin Conversion - A large number of Lifecycle classes have been converted to Kotlin. All converted classes still retain their binary compatibility with previous versions. The following classes have source incompatible changes for classes written in Kotlin:
ViewTreeLifecycleOwner,LiveDataReactiveStreams,HasDefaultViewModelProviderFactory,ViewTreeViewModelStoreOwner,Transformations,ViewModelStoreOwner,LifecycleOwner
The table below provides the source conversions for the new version of lifecycle.
| Lifecycle 2.5 | Lifecycle 2.5 (KTX) | Lifecycle 2.6 |
|---|---|---|
Transformations.switchMap(liveData) {...} |
liveData.switchMap {...} |
liveData.switchMap {...} |
Transformations.map(liveData) {...} |
liveData.map {...} |
liveData.map {...} |
Transformations.distinctUntilChanged(liveData) {...} |
liveData.distinctUntilChanged{...} |
liveData.distinctUntilChanged{...} |
LiveDataReactiveStreams.fromPublisher(publisher) |
publisher.toLiveData() |
publisher.toLiveData() |
LiveDataReactiveStreams.toPublisher(lifecycleOwner, liveData) |
liveData.toPublisher(lifecycleOwner) |
liveData.toPublisher(lifecycleOwner) |
override fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory = factory |
override fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory = factory |
override val defaultViewModelProviderFactory = factory |
override fun getDefaultViewModelCreationExtras(): CreationExtras = extras |
override fun getDefaultViewModelCreationExtras(): CreationExtras = extras |
override val defaultViewModelProviderCreationExtras = extras |
ViewTreeLifecycleOwner.set(view, owner) |
ViewTreeLifecycleOwner.set(view, owner) |
view.setViewTreeLifecycleOwner(owner) |
ViewTreeLifecycleOwner.get(view) |
view.findViewTreeLifecycleOwner() |
view.findViewTreeLifecycleOwner() |
override fun getViewModelStore(): ViewModelStore = store |
override fun getViewModelStore(): ViewModelStore = store |
override val viewModelStore: ViewModelStore = store |
override fun getLifecycle(): Lifecycle = registry |
override fun getLifecycle(): Lifecycle = registry |
override val lifecycle: Lifecycle get() = registry |
- The nullability of the
onChangedmethod of aObservercreated in Kotlin now matches the nullability of the generic type. If you wantObserver.onChanged()to accept a nullable type, you must instantiate theObserverwith a nullable type. - These classes were also converted to Kotlin, but remain source compatible:
DefaultLifecycleObserver,LifecycleEventObserver,Lifecycle,LifecycleRegistry,LifecycleObserver,ViewModelStore,AndroidViewModel,AbstractSavedStateViewModelFactory,LifecycleService,ServiceLifecycleDispatcher, andProcessLifecycleOwner
Mediarouter: v1.6.0-alpha02
March 8, 2023
androidx.mediarouter:mediarouter:1.6.0-alpha02 and androidx.mediarouter:mediarouter-testing:1.6.0-alpha02 are released. Developed on internal branch.
New Features
- Add route listing preference support to AndroidX
MediaRouter. - Add visibility support for
MediaRouteDescriptor.
Bug Fixes
- Improve SystemUI output switcher invocation on Android U+.
Navigation: v2.6.0-alpha07
March 8, 2023
androidx.navigation:navigation-*:2.6.0-alpha07 is released. Version 2.6.0-alpha07 contains these commits.
Bug Fixes
- The
getBackStackEntry,popBackStack,clearBackStackAPI variants that take routes now take route patterns with nullable arguments and nullable query params (I22294, b/269302500) - Fixed an issue where calling
clearBackStack()from theNavControllerwould not clear the saved state in the fragment manager associated with the cleared back stack. (Ic1cce, b/271190202) - Fixed a regression in 2.6.0-alpha06 that caused the wrong
MenuItemin theBottomNavigationViewto be highlighted when using System back between tabs. (I634f6, b/270447657) - Fixed regression in 2.6.0-alpha06 that caused
NavBackStackEntrys not to be moved to the RESUMED state when usingAnimations. (Ib3589, b/269646882)
privacysandbox-tools: v1.0.0-alpha03
March 8, 2023
androidx.privacysandbox.tools:tools-*:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
New Features
- Added support for Privacy Sandbox UI API integration
API Changes
- Changed target kotlin version to 1.8.0
privacysandbox ui: v1.0.0-alpha01
March 8, 2023
androidx.privacysandbox.ui:ui-client:1.0.0-alpha01, androidx.privacysandbox.ui:ui-core:1.0.0-alpha01, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.
New Features
- These are new jetpack libraries that applications and Runtime Enabled SDKs (Privacy Sandbox) can use to let the application (client) host any UI provided by the SDK (provider).
ProfileInstaller: v1.3.0-rc01
March 8, 2023
androidx.profileinstaller:profileinstaller:1.3.0-rc01 is released with no changes since the last beta. Version 1.3.0-rc01 contains these commits.
Recyclerview: v1.3.0
March 8, 2023
androidx.recyclerview:recyclerview:1.3.0 is released, with no changes since 1.3.0-rc01. Version 1.3.0 contains these commits.
Important changes since 1.2.0
- This release contains performance improvements (previously included in 1.3.0-alpha02 and 1.3.0-beta01) when used with Jetpack Compose. If you are using Compose
1.2.0-beta02or higher and were using theMyComposeAdapterandDisposeOnViewTreeLifecycleDestroyedViewCompositionStrategydescribed in the previous interoperability guidelines, you should remove these, as they are no longer an improvement over the default state. - New
ConcatAdapter.getWrappedAdapterAndPositionmethod added to allow for retrieving wrapped adapter information in situations where you don't have aViewHolder, such as aSpanSizeLookup(I2bd4c, b/191543920)
Tracing: v1.2.0-beta01
March 8, 2023
androidx.tracing:tracing:1.2.0-beta01 and androidx.tracing:tracing-ktx:1.2.0-beta01 are released with no changes since the last alpha. Version 1.2.0-beta01 contains these commits.
Tracing Perfetto: v1.0.0-alpha12
March 8, 2023
androidx.tracing:tracing-perfetto:1.0.0-alpha12, androidx.tracing:tracing-perfetto-binary:1.0.0-alpha12, and androidx.tracing:tracing-perfetto-common:1.0.0-alpha12 are released with no changes since previous alpha. Version 1.0.0-alpha12 contains these commits.
Wear Compose: v1.2.0-alpha06
March 8, 2023
androidx.wear.compose:compose-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
API Changes
- Add
CurvedBoxcomponent, which places components on top of each other in the curved world. (I29200) - Added Expandable Item(s) - two new components to support either a group of expandable items in a
ScalingLazyColumn, or an expandable single item, such as Text in which the number of lines expands. (I95dd5) - We have added the following custom annotations for previewing composables on Wear screens:
WearPreviewSmallRoundpreviews the composable on a small, round device;WearPreviewLargeRoundpreviews the composable on a large round device;WearPreviewSquarepreviews the composable on a square device. Also, the following and multi-preview annotations:WearPreviewFontScalespreviews the composables on a wear device with multiple font sizes, whileWearPreviewDevicespreviews the composables on different wear devices. To use these previews, you must be using the latest Android Studio (Giraffe Canary 6) or beyond. Please note that if these annotations do not suit your purpose, Preview can still be used and supports further customisations via parameters. (I397ff) - We have marked
HierarchicalFocusCoordinatoras experimental while it is considered as a candidate to be moved into core compose libraries, given its wide applicability. (I3a768)
Bug Fixes
- Fixed a bug on
HierarchicalFocusCoordinator, when the lambda passed in for thefocusEnabledparameter is changed, we now correctly use the new one. (Icb353) - We have updated the default disabled content color to Background when using primary colors as the background in
Button,CompactButton,Chip,CompactChipandToggleButton. This improves the contrast for accessibility. (I527cc)
wear protolayout: v1.0.0-alpha05
March 8, 2023
androidx.wear.protolayout:protolayout-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
New Features
- We've added an experimental "content update" animation to the
Modifiersobject. This animation will trigger whenever the element (with this modifier) or one of its children changes during a layout update. (bd03e5d)
API Changes
- We've added
forwardRepeatDelayMillisandreverseRepeatDelayMillistoRepeatable. We've also renameddelayMillisinAnimationSpectostartDelayMillis(Ifb266) DynamicTypeEvaluator.bindmethods now accept an Executor. (I346ab)- We've added the
startEvaluationmethod to theBoundDynamicTypeto trigger the evaluation after the dynamic type is bound. (I19908)
Bug Fixes
- The Animator object will be reused for subsequent animations of a single element. (Ia3be9)
Wear Tiles: v1.2.0-alpha01
March 8, 2023
androidx.wear.tiles:tiles-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
- We've added
onTileResourceRequesttoTileService, for providing resources from theprotolayoutlibrary. (983d9c5) - We've updated
ResourcesRequestandTileRequestto supportStateandDeviceParameterstypes from theprotolayoutlibrary. (88fa01d) - We've updated
TileBuilders.Tileto supportStateandTimelinetypes from theprotolayoutlibrary. (168619c)
Bug Fixes
Webkit: v1.7.0-alpha03
March 8, 2023
androidx.webkit:webkit:1.7.0-alpha03 is released. Version 1.7.0-alpha03 contains these commits.
API Changes
- Add
ProcessGlobalConfig#setDirectoryBasePath(String, String)API which can be used to set the base directories thatWebViewwill use for the current process. (Ibd1a1, b/250553687)
Bug Fixes
- Fix invalid
ProGuardrule causing build errors when usingDexGuard(Ia65c2, b/270034835)