2022-09-21
Activity: v1.6.0
September 21, 2022
androidx.activity:activity:1.6.0, androidx.activity:activity-compose:1.6.0, and androidx.activity:activity-ktx:1.6.0 are released. Version 1.6.0 contains these commits.
Important changes since 1.5.0
- Added
ActivityResultContracts.PickVisualMediaandActivityResultContracts.PickMultipleVisualMediafor providing a backward compatible contract that usesMediaStore.ACTION_PICK_IMAGESwhen the Photo Picker is available andIntent.ACTION_OPEN_DOCUMENTwhen it is not available. - Integrated the
OnBackInvokedCallbackin Android 13 into theOnBackPressedDispatchersprovided byComponentActivityandComponentDialog. This ensures that all APIs built onOnBackPressedDispatcherwork when enabling a predictive back gesture.
Annotation: v1.5.0
September 21, 2022
androidx.annotation:annotation:1.5.0 is released. Version 1.5.0 contains these commits.
Important changes since 1.4.0
- Annotation library has been fully migrated to Kotlin sources, resulting in support for Kotlin-specific target use sites and other Kotlin-compatible annotation features.
Benchmark: v1.2.0-alpha04
September 21, 2022
androidx.benchmark:benchmark-*:1.2.0-alpha04 is released. Version 1.2.0-alpha04 contains these commits.
New Features
Add support for
dryRunMode.enableinstrumentation argument to macrobenchmark (already available in micro) for faster local development, and validating app automation (e.g. in presubmit). This overrides iterations to 1, skips compilation, suppresses all configuration errors, and disables measurement .json file output. (Ib51b4, b/175149857)On Gradle command line:
./gradlew macrobenchmark:cC -P android.testInstrumentationRunnerArguments.androidx.benchmark.dryRunMode.enable=trueIn build.gradle:
android { defaultConfig { testInstrumentationRunnerArgument 'androidx.benchmark.dryRunMode.enable', 'true' } }
Bug Fixes
- Fixed
StartupTimingMetricto no longer require measured Activities to be launched throughMacrobenchmarkScope.startActivityAndWait(). This means the metric can pick up launches from e.g. notifications,Context.startActivity(), in-app Activity based navigation, or shell commands. (Ia2de6, b/245414235) - Fix bug where
startActivityAndWaitwould timeout trying to wait for launch completion on emulators by reducing strictness of frame detection. (Ibe2c6, b/244594339, b/228946895)
Biometric: v1.2.0-alpha05
September 21, 2022
androidx.biometric:biometric:1.2.0-alpha05 and androidx.biometric:biometric-ktx:1.2.0-alpha05 are released. Version 1.2.0-alpha05 contains these commits.
API Changes
- Added
CryptoObjectsupport forandroid.security.identity.PresentationSessionin Android 13. (Ife54b, b/197965513)
Bug Fixes
- Removed unnecessary resource variants to reduce library size. (I3601e, b/220178553)
- Fixed issue for
BiometricPrompthosted in non-activity contexts. (Ife255)
CameraX: v1.2.0-beta02
September 21, 2022
androidx.camera:camera-*:1.2.0-beta02 is released. Version 1.2.0-beta02 contains these commits.
API Changes
- Add API level requirement for
setOutputImageRotationEnabled(I26e3e, b/240993561)
Bug Fixes
- Disabled the workaround to flip the AF region horizontally of front cameras on Samsung Android T since the issue was fixed. (I05f69)
- Fixed the black preview issue that happens when
BOKEHextension is enabled on some Samsung devices and user switches the cameras. (If6168)
Compose Animation: v1.3.0-beta03
September 21, 2022
androidx.compose.animation:animation:1.3.0-beta03, androidx.compose.animation:animation-core:1.3.0-beta03, and androidx.compose.animation:animation-graphics:1.3.0-beta03 are released. Version 1.3.0-beta03 contains these commits.
- No changes since 1.3.0-beta02.
Compose Foundation: v1.3.0-beta03
September 21, 2022
androidx.compose.foundation:foundation:1.3.0-beta03 and androidx.compose.foundation:foundation-layout:1.3.0-beta03 are released. Version 1.3.0-beta03 contains these commits.
API Changes
- Add options to customize line breaking in Text. (I86907)
BringIntoViewResponders are now able to get the most up-to-date bounds of a request while processing it. (If86a5, b/241591211)- Introduce support for spacings between items to experimental
Staggered Grid(I10b82) - Introduce content padding to experimental
Staggered Grid(I342ea) - Changed
size:IntSizeargument withconstraints: ConstraintsinTextMeasurer.measuremethod to support minimum width constraints. (I37530, b/242707525) - Added
Modifier.withConsumedWindowInsets()to get consumedWindowInsetsfor use outsidewindowInsetsPadding. - Added
MutableWindowInsetsto allow easily changingWindowInsetswithout recomposition. (I7fd28, b/237019262, b/243119659)
Compose Material: v1.3.0-beta03
September 21, 2022
androidx.compose.material:material-*:1.3.0-beta03 is released. Version 1.3.0-beta03 contains these commits.
API Changes
- Add a Pull-To-Refresh component to Compose (I29168)
Compose Material 3: v1.0.0-beta03
September 21, 2022
androidx.compose.material3:material3:1.0.0-beta03 and androidx.compose.material3:material3-window-size-class:1.0.0-beta03 are released. Version 1.0.0-beta03 contains these commits.
API Changes
ExposedDropdownMenuDefaultsnow exposes a padding value for menu items. (I34ee1)ExposedDropdownMenuBoxScopenow has aModifier.menuAnchor()modifier that should be passed to the text field for proper a11y behavior. (I27fa3)- Adding two overloaded methods for the current Slider API to allow users to pass in a thumb or track to populate the slider. (I21c00)
Bug Fixes
- Updated dark theme color mapping for On Error Container to tone 90 (Ic5612)
- Fix to allow setting a transparent background for small Material 3 top app bars. (I645e2, b/245575782)
Compose Runtime: v1.3.0-beta03
September 21, 2022
androidx.compose.runtime:runtime-*:1.3.0-beta03 is released. Version 1.3.0-beta03 contains these commits.
Behavior Breaking Change
- The parameter to
rememberandrememberCoroutineScopewhere changed to becrossinline. This will report an error for early returns instead of allowing an early return which will cause a later internal error to be reported. - This change can potentially lead to new compiler errors to be reported requiring non-local returns to be removed from the lambdas passed to these functions. (Ibea62)
Compose UI: v1.3.0-beta03
September 21, 2022
androidx.compose.ui:ui-*:1.3.0-beta03 is released. Version 1.3.0-beta03 contains these commits.
API Changes
- Add options to customize line breaking in Text. (I86907)
- Changed
size:IntSizeargument withconstraints: ConstraintsinTextMeasurer.measuremethod to support minimum width constraints. (I37530, b/242707525)
Bug Fixes
- AndroidX Activity's
BackHandlerAPI now works within aDialogcomposable. (I35342)
Core Google Shortcuts: v1.1.0-beta01
September 21, 2022
androidx.core:core-google-shortcuts:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.
New Features
- Removed unused dependency. No new features.
Customview: v1.2.0-alpha02
September 21, 2022
androidx.customview:customview:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.
API Changes
- Added
@NonNullannotations to thecreate()methods ofViewDragHelper. (I93a01, b/236474222)
Drawerlayout: v1.2.0-alpha01
September 21, 2022
androidx.drawerlayout:drawerlayout:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
- Integrate new
OnBackPressedInvokedAPIs for Android 13 (0c84661)
Bug Fixes
- Ensure
open()andclose()work programmatically when drawer is locked (ae09f6e)
Fragment: v1.5.3
September 21, 2022
androidx.fragment:fragment:1.5.3, androidx.fragment:fragment-ktx:1.5.3, and androidx.fragment:fragment-testing:1.5.3 are released. Version 1.5.3 contains these commits.
Bug Fixes
- Fixed an error that caused fragments on the back stack to get
onMultiWindowModeChanged(),onPictureInPictureModeChanged(),onLowMemory(), andonConfigurationChanged()callbacks. (I34581, I8dfe6, b/242570955) - Nested child fragments will no longer receive multiple
onMultiWindowModeChanged(),onPictureInPictureModeChanged(),onLowMemory(), oronConfigurationChanged()callbacks. (I690b3, Id0096, If9d6b, I2cba2)
Health Connect: v1.0.0-alpha05
September 21, 2022
androidx.health.connect:connect-client:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
API Changes
- Renamed
Metadata.uid->Metadata.idand used the terminologyrecordIdconsistently throughout related CRUD APIs. (I3d1d2) - Made
PermissionController.createRequestPermissionActivityContracta static method instead of an instance method. Renamed toPermissionController.createRequestPermissionResultContract. (Icd2fe) - Added
BloodGlucoseunit type forBloodGlucoseRecord(I97678) - Rename
MenstruationRecord->MenstruationFlowRecord. (I3b88e)
Bug Fixes
- Fix unintended behavior not propagating foreground stats from client process. (Ifb44c)
Recyclerview: v1.3.0-rc01
September 21, 2022
androidx.recyclerview:recyclerview:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
- No changes since last release
Tracing Perfetto: v1.0.0-alpha04
September 21, 2022
androidx.tracing:tracing-perfetto:1.0.0-alpha04, androidx.tracing:tracing-perfetto-binary:1.0.0-alpha04, and androidx.tracing:tracing-perfetto-common:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits.
Wear Compose: v1.1.0-alpha06
September 21, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha06, androidx.wear.compose:compose-material:1.1.0-alpha06, and androidx.wear.compose:compose-navigation:1.1.0-alpha06 are released. Version 1.1.0-alpha06 contains these commits.
New Features
- We have added
Modifier.scrollAway, which scrolls an item vertically in/out of view, based on scroll state (with overloads to work withColumn,LazyColumnandScalingLazyColumn).ScrollAwayis typically used to scroll aTimeTextout of view as the user starts to scroll a list of items upwards. (I61766)
Bug Fixes
- The
PositionIndicatornow is positioned and sized so that it only takes the space needed. This is useful, for example, if semantic information is added to it, talkback now gets the correct bounds of thePositionIndicatoron screen. (Ie6106, b/244409133)
Wear Watchface: v1.2.0-alpha02
September 21, 2022
androidx.wear.watchface:watchface-*:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.
New Features
Some watch faces have configuration outside of the
UserStylethat affects it visually, (e.g. selecting a background photo). We’ve addedRenderer.sendPreviewImageNeedsUpdateRequestwhich allows the watch face to request an updated preview image. Note this requires a corresponding system up date to work.We’ve also added an API for watch faces to expose their colors to the system which may choose its color palette based on this. Note that this has been made experimental in a follow on patch.
Just about every type of
ComplicationDatanow supportsSmallImages.
API Changes
- Wallpaper manager can sometimes detach from an engine and make another. We've added a
DisconnectReasonint def and extendedClientDisconnectListenerwith a new method which includes aDisconnectReason, allowing the listener to observe engine detaches. (I45cce) - Added two optional parameters
nameResourceIdandscreenReaderResourceIdtoComplicationSlotOverlayconstructor (I157e8) - We've added a guava wrapper for the new overload of
getOrCreateInteractiveWatchFaceClientwith aPreviewImageUpdateRequestedListener. (Ic31f0) - We've added
Renderer.sendPreviewImageNeedsUpdateRequestwhich is useful for watch faces that have state outside of theUserStyleSchemawhich affects the way they look (e.g. a watch face with a selectable background image). On the client side we've addedPreviewImageUpdateRequestedListeneras an optional parameter togetOrCreateInteractiveWatchFaceClientto observe these requests. (Iff44a) - We've simplified the API for exposing
WatchFaceColors, now there's a simple property calledwatchFaceColorson the Renderer which the watch face can set, this should be updated as necessary in response to any style changes. Instead of usingWallpaperManagerto observe color changes, we've addedOnWatchFaceColorsListenertoInteractiveWatchFaceClient. (I490bc) - We've added a
WatchFaceColorsclass which holds the three most prominent watch face colors and added open methodswatchfaceColors¬ifyWatchFaceColorsChangedto the Renderer, these allow the system to obtain the colors of the watch face viaWallpaperManager.getWallpaperColors. (I3d611) ShortTextComplicationData,RangedValueComplicationData,NoPermissionComplicationData(and experimentalDiscreteRangedValueComplicationData,GoalProgressComplicationDataandWeightedElementsComplicationData) now all supportSmallImages. If a watch face chooses to render a complication with multiple colors, it now has the option to use a multi-coloredSmallImagewhere previously it would have had to use a monochromatic image. (I257df)- Refactor
PreviewImageUpdateRequestedListenerto be aConsumer<>instead (Ia875d) - Replace custom Single Abstract Method (SAM) type
OnWatchfaceColorsListenerwith generic Java SAM type (Consumer) (I0c489) - We've deprecated the old
getOrCreateInteractiveWatchFaceClientandlistenableGetOrCreateInteractiveWatchFaceClientmethods that don't specify aPreviewImageUpdateRequestedListener. (Iec502)
Bug Fixes
DisconnectReason.BINDER_DIEDhas been renamed toDisconnectReason.ENGINE_DIED. (I4eb0e)