2022-06-01
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
AppCompatDelegateImplmade an internal call toensureSubDecorbefore 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
Avoid reinstalling the target package on every benchmark iteration. ( aosp/2093027, b/231976084)
Remove the
300msdelay frompressHome(). (aosp/2086030, b/231322975)Improve Macrobenchmark iteration speed by optimizing Shell commands used under the hood. (aosp/2086023, b/231323582)
Support for Managed Gradle Devices when generating Baseline Profiles with Macrobenchmarks. (aosp/2062228, b/228926421)
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
NullPointerExceptiononImageCapture.takePicture(). (I92366, b/230454568, b/229766155) - Fixed a bug where
AssertionErrornot being handled when getting theCONTROL_ZOOM_RATIO_RANGEcharacteristic. (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_LAGinImageCaptureand addisZslSupportedinCameraInfoto query the device capability.CAPTURE_MODE_ZERO_SHUTTER_LAGmode 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
ImageCapturetakePicture method turns torch off on the reported devices. (Ib5eb5, b/228272227) - Fixed a bug where
AssertionErrornot being handled when getting theCONTROL_ZOOM_RATIO_RANGEcharacteristic.(/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
IntervalListandMutableIntervalList. 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 byLazyColumnwhere list items can be defined via multiple item/items calls. (I2d05e, b/228580728)
Bug Fixes
- Clarified the documentation for
WindowInsets.imeto state thatimeinsets 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.
DeleteSurroundingTextCommandandDeleteSurroundingTextInCodePointsCommandnow 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
BottomSheetScaffoldwas drawing over the top app bar's shadow.BottomSheetScaffoldnow 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
pressKeyTimesas well asisCapsLockOnand friends toKeyInjectionScope. 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
performKeyInputto send key events, or send them through thekeyproperty ofMultiModalInjectionScopeduring a multi modal input gesture withperformMultiModalInput. SeeKeyInjectionScopefor documentation of the API. (Ic5000, b/229831515) - Add new
GoogleFont.Provider.AllFontsListUrifor 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
InputEventChangeevents 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 Boundssetting 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 ifFontFamily.Resolverhad been overwritten. (I4609d) - Pressing the forward delete key when the cursor is at the end of a text field will no longer crash.
DeleteSurroundingTextCommandandDeleteSurroundingTextInCodePointsCommandnow 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
ComponentActivityin Activity library - Improvements to
MenuProvidercallback methods, includingonPrepareMenuandonMenuClosed - Fixed issue where
FileProviderwould fail withIllegalArgumentExceptionon certain devices - Fixed issue where
TypefaceCompatapplied 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,
UwbManagerandUwbClientSessionScope.
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
hasMetricandgetMetricinAggregationResult, added contains and get operators (I7cc7c) - Adds
OvulationTest.Result.HIGHandOvulationTest.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
PagingDataAdapterandAsyncPagingDataDifferwhich acceptCoroutineContextinstead ofCoroutineDispatcher. (Idc878) - By default,
PagingData.from()andPagingData.empty()will no longer affectCombinedLoadStateson the presenter side. A new overload that allows passingsourceLoadStatesandremoteLoadStatesin to these constructors has been added to maintain the existing behavior of settingLoadStatesto be fully terminal (i.e.,NotLoading(endOfPaginationReached = false)), with the option to include remote states as well if needed. IfLoadStatesare not passed, then the previousCombinedLoadStateswill be maintained on the presenter side when it receives the staticPagingData. (Ic3ce5, b/205344028)
Bug Fixes
- The result of
PagingSource.getRefreshKey()is now correctly priotized overinitialKeyin cases where it would return null, but a non-nullinitialKeywas 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
PagingDataAdapterandAsyncPagingDataDifferwhich acceptCoroutineContextinstead ofCoroutineDispatcher. (Idc878)
Bug Fixes
LazyPagingItemsnow sets the initialloadStateto have aLoadState.Loadingrefresh. (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
- New
room-pagingartifactsroom-paging-rxjava2,room-paging-rxjava3androom-paging-guavahave been added for support in Room Paging.(41a1d4,b/203666906),(eb6098,b/203666906),(1b9ae4,b/203666906)
API Changes
- All of
room-runtimehas 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 declareonInvalidate()inObserverto have a param of typeSetand notMutableSet.(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
@Ignorein 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.ProcessLockrestricted. The API is scoped and limited to its function withinandroidx.sqliteand 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
ScalingLazyColumnwork in Compose@Previewmode. (I3b3b6, b/232947354)
API Changes
- We have changed the default value for the
ScalingLazyColumn.horizontalAlignmentproperty from Start toCenterHorizontallyto 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 sethorizontalAlignment = 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
TimeTextcloser 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
Helperclass. (I70db2),(I30c3d) - Static method
fromLayoutElementhas 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)