Skip to content

2022-06-01

Choose a tag to compare

@github-actions github-actions released this 01 Jun 18:50
· 208 commits to main since this release

Annotation: v1.4.0-rc01

June 1, 2022

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

  • API surface and functionality have been finalized for release.

Appcompat: v1.4.2

June 1, 2022

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

Bug Fixes

  • Fix crash where AppCompatDelegateImpl made an internal call to ensureSubDecor before the action bar was created (aosp/2048349, b/226648941)

Benchmark: v1.1.0-rc03

June 1, 2022

androidx.benchmark:benchmark-*:1.1.0-rc03 is released. Version 1.1.0-rc03 contains these commits.

Bug Fixes

Camera-Camera2, Camera-Core, Camera-Lifecycle, & Camera-Video: v1.1.0-rc02

June 1, 2022

androidx.camera:camera-*:1.1.0-rc02 is released. Version 1.1.0-rc02 contains these commits.

Bug Fixes

  • Fixed NullPointerException on ImageCapture.takePicture(). (I92366, b/230454568, b/229766155)
  • Fixed a bug where AssertionError not being handled when getting the CONTROL_ZOOM_RATIO_RANGE characteristic. (Ia248a, b/231701345)

CameraX: v1.2.0-alpha02

June 1, 2022

androidx.camera:camera-*:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.

New Features

  • Expose CameraX Zero-Shutter Lag API as experimental.

API Changes

  • Add new capture mode CAPTURE_MODE_ZERO_SHUTTER_LAG in ImageCapture and add isZslSupported in CameraInfo to query the device capability. CAPTURE_MODE_ZERO_SHUTTER_LAG mode is aiming to provide the minimum latency for instant capture. It is implemented based on a ring buffer, which caches intermediate capture results for later reprocessing when the user presses buttons to take pictures. If {@link VideoCapture} is bound or flash mode is not OFF or OEM Extension is ON, this mode will be disabled automatically. (I9ae74)
  • Add ImageAnalysis.getBackgroundExecutor() method (Icc945)

Bug Fixes

  • Fixed ImageCapture takePicture method turns torch off on the reported devices. (Ib5eb5, b/228272227)
  • Fixed a bug where AssertionError not being handled when getting the CONTROL_ZOOM_RATIO_RANGE characteristic.(/Ia248a, b/231701345)

Compose Animation: v1.2.0-beta03

June 1, 2022

androidx.compose.animation:animation:1.2.0-beta03, androidx.compose.animation:animation-core:1.2.0-beta03, and androidx.compose.animation:animation-graphics:1.2.0-beta03 are released. Version 1.2.0-beta03 contains these commits.

API Changes

  • Added Experimental Easing Curves for Animations (I64a38)

Compose Compiler: v1.2.0-beta03

June 1, 2022

androidx.compose.compiler:compiler:1.2.0-beta03 is released. Version 1.2.0-beta03 contains these commits.

Compose Foundation: v1.2.0-beta03

June 1, 2022

androidx.compose.foundation:foundation:1.2.0-beta03 and androidx.compose.foundation:foundation-layout:1.2.0-beta03 are released. Version 1.2.0-beta03 contains these commits.

API Changes

  • Added new experimental IntervalList and MutableIntervalList. It allows to represent some list of values via multiple intervals. It will be useful when you want to define your own dsl similar to the one used by LazyColumn where list items can be defined via multiple item/items calls. (I2d05e, b/228580728)

Bug Fixes

  • Clarified the documentation for WindowInsets.ime to state that ime insets are reported as far back as API 23, but only animated on 30+. (Ia7fc0, b/230756508)
  • Pressing the forward delete key when the cursor is at the end of a text field will no longer crash.
  • DeleteSurroundingTextCommand and DeleteSurroundingTextInCodePointsCommand now require their constructor arguments to be non-negative. (Ica8e6, b/199919707)

Compose Material: v1.2.0-beta03

June 1, 2022

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

Bug Fixes

  • Fixed a bug where BottomSheetScaffold was drawing over the top app bar's shadow. BottomSheetScaffold now also takes the sheet's state into account when placing Snackbars: in the collapsed state, Snackbars are placed above the sheet and FAB; in the expanded state, Snackbars are anchored to the sheet's bottom. (Ia80b5, b/187771422)

Compose Material 3: v1.0.0-alpha13

June 1, 2022

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

API Changes

  • Supports maintaining the top app bar position on configuration change. (I10459, b/216160958)

Compose Runtime: v1.2.0-beta03

June 1, 2022

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

Compose UI: v1.2.0-beta03

June 1, 2022

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

API Changes

  • Added pressKeyTimes as well as isCapsLockOn and friends to KeyInjectionScope. Additionally, the API now supports mouse and keyboard combined injection patterns such as clicking a mouse button with a meta key held down. (I4c8da, b/229831515)
  • Added experimental support for injecting key events. Use performKeyInput to send key events, or send them through the key property of MultiModalInjectionScope during a multi modal input gesture with performMultiModalInput. See KeyInjectionScope for documentation of the API. (Ic5000, b/229831515)
  • Add new GoogleFont.Provider.AllFontsListUri for retrieving the canonical internet source of Google Fonts supported by Android.
  • Improve error messages rethrown when GoogleFonts fail to load in compose. (I0416c)

Bug Fixes

  • When adding InputEventChange events to Velocity Tracker we will consider now deltas instead of positions, this will guarantee the velocity is correctly calculated for all cases even if the target element moves (I51ec3, b/216582726, b/223440806, b/227709803)
  • The Show Layout Bounds setting will now be applied for composables immediately after toggling it from the quick settings tile, without having to leave and re-enter the activity. (I843d5, b/225937688)
  • Accessibility string lookup does not trigger font loading. Previously, it would attempt to load fonts for StyleSpans, which lead to crashes if FontFamily.Resolver had been overwritten. (I4609d)
  • Pressing the forward delete key when the cursor is at the end of a text field will no longer crash.
  • DeleteSurroundingTextCommand and DeleteSurroundingTextInCodePointsCommand now require their constructor arguments to be non-negative. (Ica8e6, b/199919707)

Core and Core-ktx: v1.8.0

June 1, 2022

androidx.core:core:1.8.0 and androidx.core:core-ktx:1.8.0 are released. Version 1.8.0 contains these commits.

Important changes since 1.7.0

  • Significant clean-up of nullability annotations to improve Kotlin usability
  • Platform parity improvements to ShortcutInfoCompat, NotificationCompat, and more
  • New interfaces to allow components to receive picture-in-picture and multi-window mode change events, implemented by ComponentActivity in Activity library
  • Improvements to MenuProvider callback methods, including onPrepareMenu and onMenuClosed
  • Fixed issue where FileProvider would fail with IllegalArgumentException on certain devices
  • Fixed issue where TypefaceCompat applied incorrect typeface weight on API 29+ (b/194553426) thanks to contribution from RikkaW

Core Ultra Wideband (UWB): v1.0.0-alpha01

June 1, 2022

androidx.core.uwb:uwb:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.

New Features

  • The UWB library provides a set of APIs for developers to interact with UWB-enabled devices. The use-case will be limited to partnered devices which already assume the Controller profile of UWB ranging sessions, with the support for Controller profile planned in the near future. Two top level API surfaces are included in this initial release, UwbManager and UwbClientSessionScope.

Health Connect Client: v1.0.0-alpha02

June 1, 2022

androidx.health:health-connect-client:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.

API Changes

  • Deprecated hasMetric and getMetric in AggregationResult, added contains and get operators (I7cc7c)
  • Adds OvulationTest.Result.HIGH and OvulationTest.Result.INCONCLUSIVE. (I9f9c4)

Bug Fixes

  • Reduce SDK requirements to 26. (I6d201)

Paging: v3.2.0-alpha01

June 1, 2022

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

API Changes

  • Added constructors for PagingDataAdapter and AsyncPagingDataDiffer which accept CoroutineContext instead of CoroutineDispatcher. (Idc878)
  • By default, PagingData.from() and PagingData.empty() will no longer affect CombinedLoadStates on the presenter side. A new overload that allows passing sourceLoadStates and remoteLoadStates in to these constructors has been added to maintain the existing behavior of setting LoadStates to be fully terminal (i.e., NotLoading(endOfPaginationReached = false)), with the option to include remote states as well if needed. If LoadStates are not passed, then the previous CombinedLoadStates will be maintained on the presenter side when it receives the static PagingData. (Ic3ce5, b/205344028)

Bug Fixes

  • The result of PagingSource.getRefreshKey() is now correctly priotized over initialKey in cases where it would return null, but a non-null initialKey was set. (Ic9542, b/230391606)

External Contribution

  • Updated :compose:ui:ui-test api (updateApi) due to test-coroutines-lib migration (I3366d)

Paging Compose: v1.0.0-alpha15

June 1, 2022

androidx.paging:paging-compose:1.0.0-alpha15 is released. Version 1.0.0-alpha15 contains these commits.

API Changes

  • Added constructors for PagingDataAdapter and AsyncPagingDataDiffer which accept CoroutineContext instead of CoroutineDispatcher. (Idc878)

Bug Fixes

  • LazyPagingItems now sets the initial loadState to have a LoadState.Loading refresh. (I55043, b/224855902)

ProfileInstaller: v1.2.0-beta03

June 1, 2022

androidx.profileinstaller:profileinstaller:1.2.0-beta03 is released. Version 1.2.0-beta03 contains these commits.

Room: v2.5.0-alpha02

June 1, 2022

androidx.room:room-*:2.5.0-alpha02 is released. Version 2.5.0-alpha02 contains these commits.

New Features

API Changes

  • All of room-runtime has been converted from Java to Kotlin. This change will include some source incompatible changes to watch out for, e.g. in InvalidationTracker you will now need to declare onInvalidate() in Observer to have a param of type Set and not MutableSet.(If2069, b/206859668),(Ie4b55, b/206859668), (I697ee, b/206859668), (I96c25, b/206859668)
  • Added APIs for providing key and value tables names for disambiguation in @MapInfo (Icc4b5)
  • Fix a source compatibility issue to re-allow @Ignore in property getters. (Ifc2fb)

Bug Fixes

  • Duplicate column resolution heuristic algorithm. Room will now attempt to resolve ambiguous columns in a multimap query. This allows for JOINs with tables containing same-name tables to be correctly mapped to a result data object. (I4b444, b/201306012, b/212279118)

Sqlite: v2.3.0-alpha03

June 1, 2022

androidx.sqlite:sqlite:2.3.0-alpha03, androidx.sqlite:sqlite-framework:2.3.0-alpha03, and androidx.sqlite:sqlite-ktx:2.3.0-alpha03 are released. Version 2.3.0-alpha03 contains these commits.

API Changes

  • Make androidx.sqlite.ProcessLock restricted. The API is scoped and limited to its function within androidx.sqlite and should not be used as a general purpose multi-process lock. (I1643f)

Wear Compose: v1.0.0-beta03

June 1, 2022

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

New Features

  • We have made ScalingLazyColumn work in Compose @Preview mode. (I3b3b6, b/232947354)

API Changes

  • We have changed the default value for the ScalingLazyColumn.horizontalAlignment property from Start to CenterHorizontally to ensure that when list items do not fill the entire width of the column they will be aligned for maximum visibility. To switch back to the previous behavior set horizontalAlignment = Alignment.Start.(I9ed4b)

Known Issues

  • CompactChip’s tap/touch height is smaller than Material accessibility guidelines. This will be corrected in the next release (15th June). If you are using CompactChip this will affect your layouts as CompactChips will now have additional padding above and below. Please adjust and test your layouts or see the bug comments for a workaround to use the existing behavior. (b/234332135)

Bug Fixes

  • New demo to animate adding or removing a start text on a TimeText. (I16d75)
  • Add tests for HorizontalPageIndicator.PagesState (I64ed0)
  • Updating TimeText closer to UX specs (Ib7ea1)

Wear Tiles: v1.1.0-alpha08

June 1, 2022

androidx.wear.tiles:tiles-*:1.1.0-alpha08 is released. Version 1.1.0-alpha08 contains these commits.

New Features

  • Metadata tag has been added to Modifiers to be used to track component’s metadata with helper methods added to the Helper class. (I70db2),(I30c3d)
  • Static method fromLayoutElement has been added to all components and layouts inside of Tiles Material. It should be used for testing, to cast a LayoutElement obtained from accessing the contents of a container to its original type. (Ia572a),(Idbd8a),(I3ae13),(I292fe),(I8b20f),(I3cacb),(I84b24)