Skip to content

2023-03-08

Choose a tag to compare

@github-actions github-actions released this 08 Mar 18:42
· 159 commits to main since this release

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: 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.

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

Dependency update

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

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 MacrobenchmarkRule and BaselineProfileRule when 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 PlatformTextInputAdapter API for building custom text input implementations that talk directly to platform APIs. (I58df4)
  • Add support for reverse layout to LazyStaggeredGrid. (I3ef4a)

Bug Fixes

  • BasicTextField's SetText semantics 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, and performTextSelection now use SemanticsActions. (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 BottomSheetScaffold and BottomSheetScaffoldState. (I063d4)

API Changes

  • Added functionality to the DatePickerState and the DateRangePickerState to 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 new setSelection function will throw an exception in case a provided date fails a precondition (see documentation). (Ifa645, b/268609314, b/270427389)
  • Rename Collapsed SheetValue to PartiallyExpanded to more accurately and flexibly depict behavior in this state. (Ia1491)
  • Updated ListItem parameter names to _content instead of _text. Default getters are now ReadOnlyComposables where relevant. (I69a25)
  • Graduate interactive Surface APIs from experimental. (I90d59, b/261561812)

Bug Fixes

  • Fixed an issue where ModalBottomSheet's HalfExpanded state was calculated incorrectly and the sheet would appear to be floating. (I45e84, b/268411386)
  • Add confirmValueChange check to scrim tap for ModalBottomSheet. (I2311a, b/270425759)
  • Move semantic BottomSheet actions to drag handle. (I158ba)
  • ModalBottomSheet now commands focus on launch, handles back button. (I4d2ab)
  • ModalBottomSheet onDismissRequest is 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 AndroidView composable function, which accepts the onReset param. 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 for LazyRows and LazyColumns of Views. (I3f10d, b/230099236)
  • Introduced new low-level PlatformTextInputAdapter API for building custom text input implementations that talk directly to platform APIs. (I58df4)

Bug Fixes

  • BasicTextField's SetText semantics 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, and performTextSelection now use SemanticsActions. (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) and LayoutReference.withChainParams() in cases where the typical patterns may lead to unpredictable behavior. (I62eb0, I03060)

API Changes

  • Enable ReverseSpanDirection and SpansOrderFirst flags for Grid Helper in Compose.
    1. ReverseSpanDirection: reverse the width and height specification for spans/skips.
    2. SpansOrderFirst: spans would respect the order of the widgets. (I6ad50)
  • Use Modifier.onStartEndBoundsChanged(...) to obtain local bounds of Composables in a MotionLayout that are not affected by animation. Useful for any ui interaction that requires layout information that may also trigger animations such as DragAndDrop. (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 LocalePreferences to 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_ORIGIN requirement for setting origin in Jetpack Library. (Ibaad4)
  • Added passkey get flow exceptions (I4f654)
  • CredentialManager api autoselect behavior update (I576dd)
  • CreateCredentialRequest.DisplayInfo now uses CharSequence rather than String fields. (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.

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

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.CallingAppInfo class, 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 contentRect structure.
  • 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

  • LiveData now includes a new isInitialized property that indicates whether an explicit value has ever been set on the LiveData, allowing you to distinguish between liveData.value returning null because no value has ever been set or an explicit null value.
  • MediatorLiveData now includes a constructor to set an initial value.
  • Added a new extension on StateFlow and Flow of collectAsStateWithLifecycle() that collect from flows and represents its latest value as Compose State in a lifecycle-aware manner.
  • Lifecycle.launchWhenX methods and Lifecycle.whenX methods have been deprecated as the use of a pausing dispatcher can lead to wasted resources in some cases. It is recommended to use Lifecycle.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 onChanged method of a Observer created in Kotlin now matches the nullability of the generic type. If you want Observer.onChanged() to accept a nullable type, you must instantiate the Observer with a nullable type.
  • These classes were also converted to Kotlin, but remain source compatible: DefaultLifecycleObserver, LifecycleEventObserver, Lifecycle, LifecycleRegistry, LifecycleObserver, ViewModelStore, AndroidViewModel, AbstractSavedStateViewModelFactory, LifecycleService, ServiceLifecycleDispatcher, and ProcessLifecycleOwner

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, clearBackStack API 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 the NavController would 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 MenuItem in the BottomNavigationView to 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 using Animations. (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-beta02 or higher and were using the MyComposeAdapter and DisposeOnViewTreeLifecycleDestroyed ViewCompositionStrategy described in the previous interoperability guidelines, you should remove these, as they are no longer an improvement over the default state.
  • New ConcatAdapter.getWrappedAdapterAndPosition method added to allow for retrieving wrapped adapter information in situations where you don't have a ViewHolder, such as a SpanSizeLookup (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 CurvedBox component, 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: WearPreviewSmallRound previews the composable on a small, round device; WearPreviewLargeRound previews the composable on a large round device; WearPreviewSquare previews the composable on a square device. Also, the following and multi-preview annotations: WearPreviewFontScales previews the composables on a wear device with multiple font sizes, while WearPreviewDevices previews 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 HierarchicalFocusCoordinator as 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 the focusEnabled parameter 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, CompactChip and ToggleButton. 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 Modifiers object. 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 forwardRepeatDelayMillis and reverseRepeatDelayMillis to Repeatable. We've also renamed delayMillis in AnimationSpec to startDelayMillis (Ifb266)
  • DynamicTypeEvaluator.bind methods now accept an Executor. (I346ab)
  • We've added the startEvaluation method to the BoundDynamicType to 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 onTileResourceRequest to TileService, for providing resources from the protolayout library. (983d9c5)
  • We've updated ResourcesRequestand TileRequest to support State and DeviceParameters types from the protolayout library. (88fa01d)
  • We've updated TileBuilders.Tile to support State and Timeline types from the protolayout library. (168619c)

Bug Fixes

  • Improvements to Javadocs. (I3ed73)
  • Default colors for onPrimary and surface has changed. (I0b039)

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 that WebView will use for the current process. (Ibd1a1, b/250553687)

Bug Fixes

  • Fix invalid ProGuard rule causing build errors when using DexGuard (Ia65c2, b/270034835)