2022-01-10
Appcompat: v1.4.1
January 12, 2022
androidx.appcompat:appcompat:1.4.1 and androidx.appcompat:appcompat-resources:1.4.1 are released. Version 1.4.1 contains these commits.
Bug Fixes
AppCompatEditText,AppCompatAutoCompleteTextView, andAppCompatMultiAutoCompleteTextViewwill not call overridensetKeyListenerduring the constructor. (I5c13a, b/208480173)Emoji2will not wrap instances ofNumberKeyListener, allowing the locale to be configured by textview.- Appcompat will not wrap instances of
NumberKeyListenerpassed tosetKeyListener, allowingTextViewto correctly configure the locale onNumberKeyListeners. (Ibf113, b/207119921)
- Appcompat will not wrap instances of
- Fixes issue with all
NumberKeyListenersubclasses introduced in appcompat 1.4.0 that allowed unexpected characters such as punctuation to be input (b/207119921) (Iede7a, b/207119921)
Benchmark: v1.1.0-beta01
January 12, 2022
androidx.benchmark:benchmark-*:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.
Bug Fixes
- Fixes profiler argument enable being ignored. (I37373, b/210619998)
- Removed deprecated
CompliationModes(I98186, b/213467659) - Switched baseline profile arg of
CompilationMode.Partialto enum for clarity. (Id67ea)
Compose Animation: v1.2.0-alpha01
January 12, 2022
androidx.compose.animation:animation:1.2.0-alpha01, androidx.compose.animation:animation-core:1.2.0-alpha01, and androidx.compose.animation:animation-graphics:1.2.0-alpha01 are released. Version 1.2.0-alpha01 contains these commits.
API Changes
- Use
AnimatedImageVector.animatedVectorResourceinstead ofanimatedVectorResourceto load an<animated-vector>resource file.- Use
rememberAnimatedVectorResourceinstead ofAnimatedImageVector#painterForto render anAnimatedImageVector. (I9c300)
- Use
Bug Fixes
- Add toString methods to Animatable and AnimationResult. (Icd3a6)
Dependency Updates
- Now depends on Kotlin
1.6.10.
Compose Compiler: v1.2.0-alpha01
January 12, 2022
androidx.compose.compiler:compiler:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
- Added support for Kotlin
1.6.10.
Compose Foundation: v1.2.0-alpha01
January 12, 2022
androidx.compose.foundation:foundation:1.2.0-alpha01 and androidx.compose.foundation:foundation-layout:1.2.0-alpha01 are released. Version 1.2.0-alpha01 contains these commits.
API Changes
- New parameter
userScrollEnabledwas added toLazyColumn,LazyRow, andLazyVerticalGridin order to allow users to temporarily or permanently disable the user initiated scroll via touch gestures or accessibility actions. Scrolling programmatically via the methods on the state will still be allowed. (I7eae9, b/201150093) - Add
onSizeChangedcallback to magnifier modifier. (I6879f) - The magnifier widget now shows when dragging selection handles in a
SelectionContainer. (I30b38, b/139320979)
Bug Fixes
- Fixes
TextFieldcursor handle not hiding when scrolled out of view. (I14552, b/208883748)
Dependency Updates
- Now depends on Kotlin
1.6.10.
Compose Material: v1.2.0-alpha01
January 12, 2022
androidx.compose.material:material-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
Dependency Updates
- Now depends on Kotlin
1.6.10.
External Contribution
ModalBottomSheetStatenow has aisSkipHalfExpandedflag. It can be either set through the constructor or updated later on by settingModalBottomSheetState'sisSkipHalfExpandedproperty totrue. UpdatingisSkipHalfExpanded's value causes a recomposition of the sheet. (I18b86, b/186669820)
Compose Material 3: v1.0.0-alpha03
January 12, 2022
androidx.compose.material3:material3:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
Bug Fixes
- Add
LocalIndicationto Material 3'sMaterialTheme. (I7ce4e) - Fix the corner radius that is applied for Checkboxes (I38b03, b/175198975, b/202309440)
Dependency Updates
- Now depends on Kotlin
1.6.10.
Compose Runtime: v1.2.0-alpha01
January 12, 2022
androidx.compose.runtime:runtime-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
API Changes
- Added
identityfield toCompositionDatafor generating invariant ids in the Layout Inspector. (Ic116e)
Dependency Updates
- Now depends on Kotlin
1.6.10.
Compose UI: v1.2.0-alpha01
January 12, 2022
androidx.compose.ui:ui-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
API Changes
- Deprecated
FontFamily.canLoadSynchronously. This property has no semantic meaning. (Ica5ef) - Added identity field to
CompositionDatafor generating invariant ids in the Layout Inspector. (Ic116e) - Added Wear OS device ids to Preview devices list (I93232)
Dependency Updates
- Now depends on Kotlin
1.6.10.
Coordinatorlayout: v1.2.0
January 12, 2022
androidx.coordinatorlayout:coordinatorlayout:1.2.0 is released. Version 1.2.0 contains these commits.
Important changes since 1.1.0
- Only retain runtime visible annotations in CoordinatorLayout rules (9ec7cb)
Core Splashscreen: v1.0.0-beta01
January 12, 2022
androidx.core:core-splashscreen:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.
Bug Fixes
- Better night mode handling ensures that night mode is handled when the default parameters are used on all APIs. 2d1d182
Fixes bugs introduced in the new splash screen on Android 12:
- Fix systemBar flickering on API 31: Ensure that the system bars do not flicker when customizing the exit animation. 5a75362
- Fix insets handling when using OnExitAnimationListener: Ensures that the content does not jump when the OnExitAnimationListener is used. 4c8f264
Localbroadcastmanager: v1.1.0
January 12, 2022
androidx.localbroadcastmanager:localbroadcastmanager:1.1.0 is released. Version 1.1.0 contains these commits.
Important changes since 1.0.0
androidx.localbroadcastmanager has been fully deprecated. There will be no further releases of this library. Developers should replace usages of LocalBroadcastManager with other implementations of the observable pattern. Depending on the use case, suitable options may be LiveData or reactive streams.
ProfileInstaller: v1.2.0-alpha01
January 12, 2022
androidx.profileinstaller:profileinstaller:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
- Add support for the ART profile format used on Android 12 and going forward.
Room: v2.4.1
January 12, 2022
androidx.room:room-*:2.4.1 is released. Version 2.4.1 contains these commits.
Bug Fixes
- Added support for internal properties in Kotlin sources. This is a slight behavior change in Room where it will use the source name of functions while matching them to properties as getters/setters (previously, it was using JVM name of the function which is different for internal functions/properties). If you are using custom
@JvmNameannotations to match getters/setters to private properties, please double check the generated code after the update (If6531, b/205289020)
Wear Compose: v1.0.0-alpha14
January 12, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha14, androidx.wear.compose:compose-material:1.0.0-alpha14, and androidx.wear.compose:compose-navigation:1.0.0-alpha14 are released. Version 1.0.0-alpha14 contains these commits.
New Features
We have added a number of methods to
ScalingLazyListStateto allow developer control over scrolling to specific list items and also setting the initial list item and offset.As part of this change we have also modified the ScalingLazyList so that it is oriented around the center of the viewport of the ScalingLazyList rather than the start of the viewport.
A new property
anchorType: ScalingLazyListAnchorType = ScalingLazyListAnchorType.ItemCenterhas been added to theScalingLazyListto control whether the center (ScalingLazyListAnchorType.ItemCenter) orEdge(ScalingLazyListAnchorType.ItemStart) should be aligned to the viewport's centerline.As a result the
ScalingLazyListItemInfo.offsetandScalingLazyListItemInfo.adjustedOffsethave changed and will now reflect the offset of the item with respect to both the position of the list item and theanchorTypeof the list. E.g. for aScalingLazyColumnwithanchorTypeofItemCenterand an list item positioned with its center on the centerline of the viewport the offset would be0.The new methods are
scrollTo,animatedScrollTo,centerItemIndex, andcenterItemOffset. (I61b61)We have added a back button handler to
SwipeDismissableNavHost, so that pressing back navigates to the previous level in the navigation hierarchy. (I5b086, b/210205624)
Wear Watchface: v1.1.0-alpha02
January 12, 2022
androidx.wear.watchface:watchface-*:1.1.0-alpha02 is released. Version 1.1.0-alpha02 contains these commits.
New Features
- To aid debugging and testing,
ComplicationDataand related subclasses now have overridden hashcode, equals and toString methods making them easier to work with.
API Changes
WatchfaceMetadataClientmethods once again throwRemoteExceptionswhere appropriate, making it easier for client code to catch errors from the watch face. (I78785)ComplicationDataand sub classes now have hashcode, equals and toString. (I24bc6)
WorkManager: v2.8.0-alpha01
January 12, 2022
androidx.work:work-*:2.8.0-alpha01 is released. Version 2.8.0-alpha01 contains these commits.
API Changes
- Helper methods
WorkQuery.fromStates,WorkQuery.fromUniqueWorkNames,WorkQuery.fromTagswere added to create WorkQuery directly. (If48f2, b/199919736) - Adds experimental BuildCompat methods for future SDKs (Iafd82, b/207528937)
- Add
getForegroundInfotoWorker. (Ic1ead) - Helper methods
WorkQuery.fromIdsto create WorkQuery directly from ids were added. (Ie5bdf, b/199919736) - RxWorker now has
setForegroundreturningCompletablethat can be used instead ofsetForegroundInfoAsyncthat returnsListenableFuture. (I85156) - RxWorker for RxJava 2 now has
getForegroundInforeturningSinglethat can be used instead ofgetForegroundInfoAsyncthat returnsListenableFuture. (I21c91, b/203851459) - RxWorker for RxJava 3 now has
getForegroundInforeturningSinglethat can be used instead ofgetForegroundInfoAsyncthat returnsListenableFuture. (I1ca8a) - RxWorker now has
setForegroundreturningCompletablethat can be used instead ofsetForegroundInfoAsyncthat returnsListenableFuture. (I992a3, b/203851459)
Bug Fixes
- Propagate cancellations in the
CoroutineScopeto theListenableFuturewhen usingsuspendCancellableCoroutine. (I77e63)