2022-06-14
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
minCompileSdkis now 33 to align with Tiramisu Beta 3 SDK
Bug Fixes
- Fixed crash on older devices when doing SDK extension check for the
PickVisualMediaActivityResultContractso that it should now work withACTION_OPEN_DOCUMENTon 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
@RestrictTohas been migrated to Kotlin sources and now supports@fileusage 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
minCompileSdkis 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
ListenableFuturehave been renamed to have the Async suffix. For example,getSchemahas been renamed togetSchemaAsync. 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
ShortcutAdapterto convert anAppSearchDocument into aShortcutInfoCompat. This gives clients a way to shareAppSearchdocuments to Google using the core-google-shortcuts library - Ability to use inheritance with
@Documentclasses. 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
getByIdand globalgetSchemaAPI for retrieving documents and schemas from other apps which have granted you visibility. - Ability to retrieve visibility information in
getSchemafor 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 stylehasFoo() - Support for new features guarded behind
@RequiresFeature. UseAppSearchSession#getFeaturesto 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
SetSchemawhen overriding a nested incompatible type. - Fixes to fully support
@AutoValue-annotated classes being used as AppSearch@Documentclasses - 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
GetStorageInfothat would return incorrect values when encountering IO failures - Fix
BUSADDERRissues 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,DeleteByNamespaceandDeleteBySchemaType
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
Support for Jetpack Macrobenchmarks, which allows you to measure whole-app interactions like startup and scrolling, provides the ability to capture traces & measure trace sections.
Support for Baseline Profiles
CompilationMode.Partialto measure the effectiveness of Baseline Profiles.@BaselineProfileRuleto automatically generate Baseline profiles for a given critical user journey.
Support for Allocation metrics & profiling during Microbenchmark runs.
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
OverscrollEffecthas been introduced to allow for custom overscroll effects, alongside theModifier.scrollableoverloads that accept it. - Experimental
LocalOverScrollConfigurationhas been moved fromfoundation.gestureto foundation package and renamed toLocalOverscrollConfiguration(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 viaLazyLayout. (Id6fab, b/233352497) - Removed deprecated
LazyVerticalGridfromandroidx.compose.foundation.lazypackage. The new stable api is located inandroidx.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
KeyInjectionScopefor injecting key presses while other keys are held down or toggled on. These functions includewithKeysDown,withKeysToggledetc. Also added properties for checking if a particular meta key is down, for example,isCtrlDownto check if either control key is depressed. Refer toKeyInjectionScopefor documentation on each function. (I9f6cd, b/229831515) - An experimental
OverscrollEffecthas been introduced to allow for custom overscroll effects, alongside theModifier.scrollableoverloads that accept it. - Experimental
LocalOverScrollConfigurationhas been moved fromfoundation.gestureto foundation package and renamed toLocalOverscrollConfiguration(If19fb, b/204650733) - Rename
runComposeUiTestWithoutActivity {}torunEmptyComposeUiTest {}, which aligns it withcreateEmptyComposeRule()(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
minCompileSdkis 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
RangingResultPositionis 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
ViewModelProviderwill 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 SafeArgswill no longer crash when using anapplicationIdSuffixand namespace with either noapplicationIdpresent, or when theapplicationIdand namespace differ. (I754b1, b/233119646)NavArgumentnow has a customtoString()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 aScalinglazyColumnhas a mixture ofListHeader()andChip()components as the width will tend to grow/shrink asListHeaderitems are scrolled in/out of view. (I37144, b/235074035) - We have fixed a bug in the
ScalingLazyColumnthat 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
ScalingLazyColumneasing as items reach the edge of the screen to match UX spec updates. Old valuesCubicBezierEasing(0.25f, 0.00f, 0.75f, 1.00f)-> new valuesCubicBezierEasing(0.3f, 0f, 0.7f, 1f). To keep the old behavior you can override thescalingParamsofScalingLazyColumn(Ie375c) - We have added padding to the
CompactChipin 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 usingCompactChipsas 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
ComplicationSlotsfor 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
ComplicationTypefor the primary and secondary data sources, giving developers more flexibility for the out of box experience. - We added
ComplicationDataTimelinewhich 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
ComponentNameof the complication provider is part of theComplicationData. - Complications are now cached which provides a better experience when switching between watch faces.
Other changes:
- The
UserStyleSchemaandComplicationSlotscan 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.