Skip to content

2022-01-10

Choose a tag to compare

@github-actions github-actions released this 12 Jan 18:47
· 231 commits to main since this release
f9fae75

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, and AppCompatMultiAutoCompleteTextView will not call overriden setKeyListener during the constructor. (I5c13a, b/208480173)
  • Emoji2 will not wrap instances of NumberKeyListener, allowing the locale to be configured by textview.
    • Appcompat will not wrap instances of NumberKeyListener passed to setKeyListener, allowing TextView to correctly configure the locale on NumberKeyListeners. (Ibf113, b/207119921)
  • Fixes issue with all NumberKeyListener subclasses 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.Partial to 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.animatedVectorResource instead of animatedVectorResource to load an <animated-vector> resource file.
    • Use rememberAnimatedVectorResource instead of AnimatedImageVector#painterFor to render an AnimatedImageVector. (I9c300)

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 userScrollEnabled was added to LazyColumn, LazyRow, and LazyVerticalGrid in 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 onSizeChanged callback to magnifier modifier. (I6879f)
  • The magnifier widget now shows when dragging selection handles in a SelectionContainer. (I30b38, b/139320979)

Bug Fixes

  • Fixes TextField cursor 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

  • ModalBottomSheetState now has a isSkipHalfExpanded flag. It can be either set through the constructor or updated later on by setting ModalBottomSheetState's isSkipHalfExpanded property to true. Updating isSkipHalfExpanded'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

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 identity field to CompositionData for 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 CompositionData for 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 @JvmName annotations 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 ScalingLazyListState to 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.ItemCenter has been added to the ScalingLazyList to control whether the center (ScalingLazyListAnchorType.ItemCenter) or Edge (ScalingLazyListAnchorType.ItemStart) should be aligned to the viewport's centerline.

    As a result the ScalingLazyListItemInfo.offset and ScalingLazyListItemInfo.adjustedOffset have changed and will now reflect the offset of the item with respect to both the position of the list item and the anchorType of the list. E.g. for a ScalingLazyColumn with anchorType of ItemCenter and an list item positioned with its center on the centerline of the viewport the offset would be 0.

    The new methods are scrollTo, animatedScrollTo, centerItemIndex, and centerItemOffset. (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, ComplicationData and related subclasses now have overridden hashcode, equals and toString methods making them easier to work with.

API Changes

  • WatchfaceMetadataClient methods once again throw RemoteExceptions where appropriate, making it easier for client code to catch errors from the watch face. (I78785)
  • ComplicationData and 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.fromTags were added to create WorkQuery directly. (If48f2, b/199919736)
  • Adds experimental BuildCompat methods for future SDKs (Iafd82, b/207528937)
  • Add getForegroundInfo to Worker. (Ic1ead)
  • Helper methods WorkQuery.fromIds to create WorkQuery directly from ids were added. (Ie5bdf, b/199919736)
  • RxWorker now has setForeground returning Completable that can be used instead of setForegroundInfoAsync that returns ListenableFuture. (I85156)
  • RxWorker for RxJava 2 now has getForegroundInfo returning Single that can be used instead of getForegroundInfoAsync that returns ListenableFuture. (I21c91, b/203851459)
  • RxWorker for RxJava 3 now has getForegroundInfo returning Single that can be used instead of getForegroundInfoAsync that returns ListenableFuture. (I1ca8a)
  • RxWorker now has setForeground returning Completable that can be used instead of setForegroundInfoAsync that returns ListenableFuture. (I992a3, b/203851459)

Bug Fixes

  • Propagate cancellations in the CoroutineScope to the ListenableFuture when using suspendCancellableCoroutine. (I77e63)