Skip to content

2022-06-14

Choose a tag to compare

@github-actions github-actions released this 15 Jun 18:46
· 204 commits to main since this release
9d7a8e3

Activity: v1.6.0-alpha05

June 15, 2022

androidx.activity:activity:1.6.0-alpha05, androidx.activity:activity-compose:1.6.0-alpha05, and androidx.activity:activity-ktx:1.6.0-alpha05 are released. Version 1.6.0-alpha05 was developed in a private pre-release branch and has no public commits.

API Changes

  • minCompileSdk is now 33 to align with Tiramisu Beta 3 SDK

Bug Fixes

  • Fixed crash on older devices when doing SDK extension check for the PickVisualMedia ActivityResultContract so that it should now work with ACTION_OPEN_DOCUMENT on devices running Android 10 and lower.

Annotation: v1.4.0

June 15, 2022

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

Important changes since 1.3.0

  • @RestrictTo has been migrated to Kotlin sources and now supports @file usage site. As a result, the Annotation library now depends on the Kotlin standard library.
  • @ReturnThis (b/140249763): Ensures that overriding methods of this method must return the same instance (intended for builders etc)
  • @OpenForTesting (b/141539024): Kotlin classes and methods marked "open" can be annotated with this annotation, and lint will make sure that this class is only subclassed (and methods only overridden) from unit tests
  • @DeprecatedSinceApi (b/37116481): Indicates that the annotated method (or class or field) is part of a backport library for a platform API, which is no longer needed as of the given API level.
  • @EmptySuper: Indicates that this method is defined to be empty, so when overriding you do not need to call it (and in fact you shouldn't; for example, it can contain backwards compatibility checking.)

Appcompat: v1.6.0-alpha05

June 15, 2022

androidx.appcompat:appcompat:1.6.0-alpha05 and androidx.appcompat:appcompat-resources:1.6.0-alpha05 are released. Version 1.6.0-alpha05 was developed in a private pre-release branch and has no public commits.

API Changes

  • Nullability updates to align with finalized API surface in Tiramisu Beta 3 SDK
  • minCompileSdk is now 33 to align with Tiramisu Beta 3 SDK

AppSearch: v1.1.0-alpha01

June 15, 2022

androidx.appsearch:appsearch-*:1.1.0-alpha01 is released. Version 1.1.0-alpha01 was developed in a private pre-release branch and has no public commits.

API Changes

  • All methods returning ListenableFuture have been renamed to have the Async suffix. For example, getSchema has been renamed to getSchemaAsync. The previous versions have been deprecated and will be removed in a future release.

New Features

  • First release of appsearch-builtin-types. This project contains some builtin types based on schema.org which clients may find convenient to use instead of defining their own types for common objects. More types will be added in future releases.
  • Ability to use ShortcutAdapter to convert an AppSearch Document into a ShortcutInfoCompat. This gives clients a way to share AppSearch documents to Google using the core-google-shortcuts library
  • Ability to use inheritance with @Document classes. Fields cannot be replaced or modified, but new fields can be added by extending a class annotated with @Document.
  • New Observer API which allows clients to register for notifications when types they have access to have changed or when documents of those types are added, modified or removed. IMPORTANT: The current implementation delivers notifications only when your app is running. There is currently no way to inspect changes that have occurred while your app was stopped. Accordingly you should not rely on this API for completeness.
  • Property parser API which allows you to fully handle and inspect property paths returned by MatchInfo#getPropertyPath.
  • Global getById and global getSchema API for retrieving documents and schemas from other apps which have granted you visibility.
  • Ability to retrieve visibility information in getSchema for data you have access to
  • Ability to grant visibility to apps holding a certain Android permission (restricted to a narrow set of allowlisted permissions)
  • Support isFoo()-style getters for boolean fields in the annotation processor, in addition to the previous supported style hasFoo()
  • Support for new features guarded behind @RequiresFeature. Use AppSearchSession#getFeatures to determine what the current backend supports.
  • Remove the ~13k token limit on individual documents
  • Allow matching on non-ascii+non-alphanumeric characters, such as emojis

Bug Fixes

  • Fix bug that would fail SetSchema when overriding a nested incompatible type.
  • Fixes to fully support @AutoValue-annotated classes being used as AppSearch @Document classes
  • Fixes for some crashes related to repeated lists of Document classes and other issues
  • Fix for bug that would crash prefix search under certain circumstances
  • Fix minor bug in GetStorageInfo that would return incorrect values when encountering IO failures
  • Fix BUSADDERR issues when reading a document
  • Fix logcat corruption caused by printing unformatted fingerprint
  • Fix NPE caused by IO failures
  • Fix memory leak in GetSchemaType, Get, Delete, DeleteByNamespace and DeleteBySchemaType

Benchmark: v1.1.0

June 15, 2022

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

  • This version is identical to androidx.benchmark:benchmark-*:1.1.0-rc03.

Important changes since 1.0.0

Compose Animation: v1.2.0-rc01

June 15, 2022

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

API Changes

  • Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)

Compose Compiler: v1.2.0-rc01

June 15, 2022

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

Compose Foundation: v1.2.0-rc01

June 15, 2022

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

API Changes

  • An experimental OverscrollEffect has been introduced to allow for custom overscroll effects, alongside the Modifier.scrollable overloads that accept it.
  • Experimental LocalOverScrollConfiguration has been moved from foundation.gesture to foundation package and renamed to LocalOverscrollConfiguration (If19fb, b/204650733)
  • Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)
  • Introduced an experimental api checkScrollableContainerConstraints() which allows to check that we do not nest scrollable containers. You can use it when create your own scrollable lazy layouts via LazyLayout. (Id6fab, b/233352497)
  • Removed deprecated LazyVerticalGrid from androidx.compose.foundation.lazy package. The new stable api is located in androidx.compose.foundation.lazy.grid (I73c76, b/225192009)

Compose Material: v1.2.0-rc01

June 15, 2022

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

API Changes

  • Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)

Bug Fixes

  • Updates badge with leading icon tab to affix badge to the label instead of the icon. (I90993)

Compose Runtime: v1.2.0-rc01

June 15, 2022

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

API Changes

  • Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)

Compose UI: v1.2.0-rc01

June 15, 2022

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

API Changes

  • Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)
  • Added higher-order functions to KeyInjectionScope for injecting key presses while other keys are held down or toggled on. These functions include withKeysDown, withKeysToggled etc. Also added properties for checking if a particular meta key is down, for example, isCtrlDown to check if either control key is depressed. Refer to KeyInjectionScope for documentation on each function. (I9f6cd, b/229831515)
  • An experimental OverscrollEffect has been introduced to allow for custom overscroll effects, alongside the Modifier.scrollable overloads that accept it.
  • Experimental LocalOverScrollConfiguration has been moved from foundation.gesture to foundation package and renamed to LocalOverscrollConfiguration (If19fb, b/204650733)
  • Rename runComposeUiTestWithoutActivity {} to runEmptyComposeUiTest {}, which aligns it with createEmptyComposeRule() (I6fed7)

Core and Core-ktx: v1.9.0-alpha05

June 15, 2022

androidx.core:core:1.9.0-alpha05 and androidx.core:core-ktx:1.9.0-alpha05 are released. Version 1.9.0-alpha05 was developed in a private pre-release branch and has no public commits.

API Changes

  • Nullability updates to align with finalized API surface in Tiramisu Beta 3 SDK
  • minCompileSdk is now 33 to align with Tiramisu Beta 3 SDK

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

June 15, 2022

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

New Features

  • Introducing a public UWB_CONFIG_ID_1

API Changes

  • Distance of RangingResultPosition is now nullable

Customview Poolingcontainer: v1.0.0-rc01

June 15, 2022

androidx.customview:customview-poolingcontainer:1.0.0-rc01 is released. Version 1.0.0-rc01 contains these commits.

  • This version is identical to androidx.customview:customview-poolingcontainer:1.0.0-beta02.

Games-Activity: v1.2.0

June 15, 2022

androidx.games:games-activity:1.2.0 is released. Version 1.2.0 contains these commits.

Important changes since 1.1.0

  • Allow derived classes of GameActivity to handle native library loading.
  • Always load the native library in GameActivity.onCreate.
  • Fallback to loading library with name "main" if no other library found.

Games Frame Pacing 1.10: v1.10.1

June 15, 2022

androidx.games:games-frame-pacing:1.10.1 is released. Version 1.10.1 contains these commits.

Bug Fixes

  • Fix for swappy not building with ndk <23 and >17.
  • Exposed API to retrieve the refresh rates supported by the display.

Games Performance Tuner 1.6: v1.6.0

June 15, 2022

androidx.games:games-performance-tuner:1.6.0 is released. Version 1.6.0 contains these commits.

Important changes since 1.5.0

  • Fixed getpid returning 0 while trying to get memory telemetry.
  • Stopped StopLoadingGroup from executing without an active loading group.

Lifecycle: v2.5.0-rc02

June 15, 2022

androidx.lifecycle:lifecycle-*:2.5.0-rc02 is released. Version 2.5.0-rc02 contains these commits.

Bug Fixes

  • ViewModelProvider will no longer crash when mixing previous versions of compileOnly Lifecycle dependencies with versions 2.5+. (I81a66, b/230454566)

Navigation: v2.5.0-rc02

June 15, 2022

androidx.navigation:navigation-*:2.5.0-rc02 is released. Version 2.5.0-rc02 contains these commits.

Bug Fixes

  • Fixed a crash caused by fast switching between bottom destinations when using the Navigation Compose NavHost. (I3979a, b/234054916)
  • Navigation SafeArgs will no longer crash when using an applicationIdSuffix and namespace with either no applicationId present, or when the applicationId and namespace differ. (I754b1, b/233119646)
  • NavArgument now has a custom toString() function to show the internal values of the argument. (I900a8)

ProfileInstaller: v1.2.0-rc01

June 15, 2022

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

  • This version is identical to androidx.profileinstaller:profileinstaller:1.2.0-beta03.

Wear Compose: v1.0.0-rc01

June 15, 2022

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

API Changes

  • Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)

Bug Fixes

  • We have removed the explicit call to fillMaxWidth() on list header as it is not needed and can result in problems if a ScalinglazyColumn has a mixture of ListHeader() and Chip() components as the width will tend to grow/shrink as ListHeader items are scrolled in/out of view. (I37144, b/235074035)
  • We have fixed a bug in the ScalingLazyColumn that could result in the list items not drawing correctly until scrolled if the 0th list item was large enough (including padding) (Ic6159, b/234328517)
  • We have made a small adjustment in the ScalingLazyColumn easing as items reach the edge of the screen to match UX spec updates. Old values CubicBezierEasing(0.25f, 0.00f, 0.75f, 1.00f) -> new values CubicBezierEasing(0.3f, 0f, 0.7f, 1f). To keep the old behavior you can override the scalingParams of ScalingLazyColumn (Ie375c)
  • We have added padding to the CompactChip in order to ensure that its tap target size is at least 48.dp high to meet the Material accessibility guidelines. This might impact any layouts you have using CompactChips as they will be taking up additional space. (I3d57c)

Wear Watchface: v1.1.0

June 15, 2022

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

Important changes since 1.0.0

Improved Editing:

  • We added support for hierarchical schemas, which allows a hierarchy of styles to be scribed by editor UIs. You can now specify separate icons for use by on watch face and companion editors.
  • There is opt-in support for multiple instances of a watch face, each instance has a unique ID available across all API surfaces.
  • You can now specify human readable names for ComplicationSlots for use in editors.
  • Experimental support for styling “flavors”, a curated selection of styles which will be visible from the companion editor.
  • When editing two instances of the watchface are loaded, it’s now possible for watchface instances to share resources, saving memory
  • When picking a complication in the on watch face editor, the current provider is now preselected.

Improved Complications:

  • You can now specify the ComplicationType for the primary and secondary data sources, giving developers more flexibility for the out of box experience.
  • We added ComplicationDataTimeline which provides a sequence of time-gated data to be delivered to the watch face which can be cached and updated automatically. For example, today's weather forecast at various times or multiple upcoming calendar events.
  • The ComponentName of the complication provider is part of the ComplicationData.
  • Complications are now cached which provides a better experience when switching between watch faces.

Other changes:

  • The UserStyleSchema and ComplicationSlots can now be defined in XML. This simplifies watch face construction and allows for faster metadata queries from the system.
  • Watch faces can now influence the colors used for rendering the system overlay.