2024-03-06
Browser: v1.8.0
March 6, 2024
androidx.browser:browser:1.8.0 is released. Version 1.8.0 contains these commits.
Important changes since 1.7.0
- Added
CustomTabsIntent.Builder#setInitialActivityWidthPxwhich allows developers to specify the initial launch width of a Custom Tab. (I443f6) - Added
CustomTabsIntent.Builder#setActivitySideSheetPositionwhich allows developers to specify the Custom Tab’s position when acting as a side sheet. (I443f6) - Added
CustomTabsIntent.Builder#setActivitySideSheetDecorationTypewhich allows developers to specify the Custom Tab’s decoration type when it is acting as a side sheet. (I443f6) - Added
CustomTabsIntent.Builder#setActivitySideSheetRoundedCornersPositionwhich allows developers to specify the position of the rounded corners when the Custom Tab is acting as a side sheet. (I443f6) - Added
CustomTabsIntent.Builder#setActivitySideSheetMaximizationEnabledwhich allows developers to enable or disable the maximization button when the Custom Tab is acting as a side sheet. (Ie3564) - Added
onActivityLayoutcallback method to interfaceCustomTabsCallbackto let developers know the coordinates of the area occupied by the Custom Tab and the state in which it is being displayed. This will be called when the Custom Tab is first displayed on the screen and each time the occupied area changes. (I443f6) - Added
onWarmupCompletedcallback method to interfaceCustomTabsCallbackto let developers know whenCustomTabsClient#warmupfinisheswarming up the browser process. (I107cf) - Added the session id to extras in
CustomTabsSession#setEngagementSignalsCallbackandCustomTabsSession#isEngagementSignalsApiAvailable. (Iba7f1) - Added experimental support for Minimized Custom Tabs APIs. (I67f2d)
CameraX: v1.3.2
March 6, 2024
androidx.camera:camera-*:1.3.2 is released. Version 1.3.2 contains these commits.
Bug Fixes
- Fixed a JPEG metadata issue on Samsung A24 devices. CameraX now saves images accurately, and the
ImageProxy.toBitmap()function returns correct Bitmap objects. (I8d6eb, b/309005680) - Removed the 9280x6944 resolution option on Redmi Note 9 Pro devices due to issues. (Ia23da)
Compose Animation: v1.6.3
March 6, 2024
androidx.compose.animation:animation-*:1.6.3 is released. Version 1.6.3 contains these commits.
Compose Animation: v1.7.0-alpha04
March 6, 2024
androidx.compose.animation:animation-*:1.7.0-alpha04 is released. Version 1.7.0-alpha04 contains these commits.
API Changes
- New API
Path.reverse()to reverse a path's direction (I36348)
Compose Foundation: v1.6.3
March 6, 2024
androidx.compose.foundation:foundation-*:1.6.3 is released. Version 1.6.3 contains these commits.
Compose Foundation: v1.7.0-alpha04
March 6, 2024
androidx.compose.foundation:foundation-*:1.7.0-alpha04 is released. Version 1.7.0-alpha04 contains these commits.
API Changes
- Support stylus handwriting feature on devices after Android U. (I002e4)
- Added
hintLocalestoKeyboardOptionsto provideTextFieldswith the ability to hint IMEs with specific locales to preset a preferred language. (Id18c2) - Removed the Experimental
BasicTextField2andBasicSecureTextFieldoverloads that tookvalue: StringandonValueChange: () -> Stringparameters. (I568b4) - Add an optional
applySemanticsfunction toInputTransformationto influence the semantics of theBasicTextField2that it's applied to. (I74a2f, b/170648072) - In this CL we are adding the
GetScrollViewportLengthsemantic action so we can pipe up information about the components being scrolled in compose to the a11y system. This CL also applies the usage of said property in Foundation Scrollable Lists. (Ic5fa2) BasicTextField2is renamed toBasicTextField. (Ie5713)FocusRequester.createRefsis now stable (I4d92c, b/261436820)- Introduced
DelegatableNode.scrollIntoView()to allow modifier nodes to makescrollIntoViewrequests directly. (I2b3b7, b/299939840) - Introduced
DelegatableNode.requireView()to allow modifier nodes to get the current AndroidViewwithout reading a composition local. (I40768) - Introducing contextual layout information within Contextual Flow Row Scope and Contextual Flow Column Scope, featuring line index, position, and constraints on maximum width and height to stay in specified position. Items exceeding maximum width/height may flow to the next line or be omitted based on overflow settings. (Id13f8, b/292114798)
Bug Fixes
- Fixed a bug where in certain conditions toggling
enabledorreadOnlyattributes ofTextFieldwould cause a crash. (Iae17b)
Compose Material: v1.6.3
March 6, 2024
androidx.compose.material:material-*:1.6.3 is released. Version 1.6.3 contains these commits.
Bug Fixes
- Fix regression in
ExposedDropdownMenuto make it focusable again. (c0e0ed, b/323694447)
Compose Material: v1.7.0-alpha04
March 6, 2024
androidx.compose.material:material-*:1.7.0-alpha04 is released. Version 1.7.0-alpha04 contains these commits.
New Features
- Added a new
androidx.compose.material:material-navigationartifact that adds support for bottom sheets as destinations when using Navigation Compose. This replaces the Accompanist Navigation Material library. (d65d57, b/180247978)
Compose Material 3: v1.2.1
March 6, 2024
androidx.compose.material3:material3-*:1.2.1 is released. Version 1.2.1 contains these commits.
Bug Fixes
- Make the Slider states stable again. Making
State.onValueChangeFinisheda val again. WrappingonValueChangeFinishedin arememberUpdatedState. (Ie8fd0, b/322269951) - Removing
@Stablefrom the states ofSlidersince we're changingstate.onValueChangeFinishedto avar. (I82ba1, b/322269951) - Fix
NavigationBarcustom colors to copy from defaults. (80a779, b/326894020) - Fix regression in
ExposedDropdownMenuto make it focusable again (3fcec1, b/323694447) - Fix button color caching issue (3e5bbcb/327371655)
Compose Material3: v1.3.0-alpha02
March 6, 2024
androidx.compose.material3:material3-*:1.3.0-alpha02 is released. Version 1.3.0-alpha02 contains these commits.
API Changes
- Making the slider states stable again. Making
State.onValueChangeFinisheda val again. WrappingonValueChangeFinishedin arememberUpdatedState. (I82ab2, b/322269951) - The Navigation components now use the new
SurfaceContainerroles.DrawerDefaultsnow provides distinctstandardContainerColorandmodalContainerColorattributes.DrawerDefaults.ModalDrawerElevationis now0.dp. (I7fbac) - Removing
@Stablefrom the states ofSlidersince we're changingstate.onValueChangeFinishedto avar. (Ied34a, b/322269951) ModalBottomSheetandStandardBottomSheetanimation spec is now aTweenSpec, updated from a spring animation. This resolves an issue with a visible overshoot. DeprecatedSheetStateconstructors without density have now been removed. (I7babc, b/285847707)
Bug Fixes
SurfaceContainervariants are now used by components. Components which formally calculated color with Surface andTonalElevationnow useSurfaceContainerroles by default, which are not affected by tonal elevation. (b/304584161)- Fixed bug that caused
ElevatedFilterChip's unselected, disabled container color to be black. (I400e6, b/322407043) - Fix indeterminate progress indicator when the progress is 0 (Id6582)
- Fixed an issue with
SliderandRangeSlideron RTL layout (Iab0e1) - Adding
SliderRangeTolerancefor the slider range calculation since Float rounding can be inaccurate. (Ic918a, b/324934900) - Ensure that the
DatePickerDialogdisplays its buttons when nesting aDateRangePickeror when displaying any type of date picker on small screens with larger fonts. (Ie4758, b/325107799, b/277768544) Menunow leverages theSurfaceContainerrole for container color.MenuDefaults.TonalElevationis now0.dp. (I135b7)TextFieldnow leverages theSurfaceContainerHighestrole for container color. (I4dced)- Elevated chips now leverage the
SurfaceContainerLowrole (I7cd2f) DatePickercontainer color is nowSurfaceContainerHigh.DatePickerDefaults.TonalElevationis now0.dp. (Ida753)- Updates Bottom Sheets container color and drag handle color. (I72a0a)
RichTooltipcontainer color is nowSurfaceContainer. (Ia8b45)SearchBarcontainer color is nowSurfaceContainerHighest.SearchBarDefaults.TonalElevationis now0.dp. (I88604)- Updates switch disabled and unselected tracks/icons to leverage the
SurfaceContainerHighestcolor role. (I7687a) AlertDialogcontainer color is nowSurfaceContainerHigh. (Ie0433)BottomAppBarcontainer color is nowSurfaceContainer.TopAppBaronScrollcolor is nowSurfaceContainer. (I41630)ElevatedCardcontainer color is nowSurfaceContainerLow.FilledCard’s container color ofSurfaceContainerHighest. (I35141)ElevatedButtoncontainer color is nowSurfaceContainerLow.FilledIconButton’s when unselected now have a container color ofSurfaceContainerHighest. (I792c9)- Updates
TimePickercontainer color and clock dial color role toSurfaceContainerHighest. (I43b93)
Compose Material3 Adaptive Navigation Suite: v1.0.0-alpha05
March 6, 2024
androidx.compose.material3:material3-adaptive-navigation-suite:1.0.0-alpha05, androidx.compose.material3:material3-adaptive-navigation-suite-android:1.0.0-alpha05, and androidx.compose.material3:material3-adaptive-navigation-suite-desktop:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.
API Changes
- Make
NavigationSuiteItemColorsconstructor public. (Ica83a, b/324886877)
Compose Material3 Adaptive: v1.0.0-alpha08
March 6, 2024
androidx.compose.material3.adaptive:adaptive-*:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits.
New Features
- Implement delayed sliding in when switching panes. (I1a38e)
API Changes
- Removed the
ThreePaneScaffoldStateinterface. (I63f23)
Compose Runtime: v1.6.3
March 6, 2024
androidx.compose.runtime:runtime-*:1.6.3 is released. Version 1.6.3 contains these commits.
Compose Runtime: v1.7.0-alpha04
March 6, 2024
androidx.compose.runtime:runtime-*:1.7.0-alpha04 is released. Version 1.7.0-alpha04 contains these commits.
Performance Improvements
- Call
Snapshot.currentonce per derived state evaluation (ee7daf) - Read
currentRecordonce per observation in composition (b882b2) - Remove accidental iterator allocation in
snapshotFlow(231e56) - Enable
nonSkippingGroupOptimizationfor compose libraries. This causes the generated code for all non-restartable composable functions in androidx to be more efficient. In the future we plan to enable this by default. I(acbc08)
Compose UI: v1.6.3
March 6, 2024
androidx.compose.ui:ui-*:1.6.3 is released. Version 1.6.3 contains these commits.
Compose UI: v1.7.0-alpha04
March 6, 2024
androidx.compose.ui:ui-*:1.7.0-alpha04 is released. Version 1.7.0-alpha04 contains these commits.
API Changes
- Support stylus handwriting feature on devices after Android U. (I002e4)
- In this CL we are adding the
GetScrollViewportLengthsemantic action so we can pipe up information about the components being scrolled in compose to the a11y system. This CL also applies the usage of said property in Foundation Scrollable Lists. (Ic5fa2) FocusRequester.createRefsis now stable (I4d92c, b/261436820)- Introduced
DelegatableNode.requireView()to allow modifier nodes to get the current AndroidViewwithout reading a composition local. (I40768) - New API
Path.reverse()to reverse a path's direction (I36348) - Added
hintLocalestoKeyboardOptionsto provideTextFieldswith the ability to hint IMEs with specific locales to preset a preferred language. - Expose
platformLocaleproperty fromLocalethat returns the underlying platform object, e.g.java.util.Locale. (I921c6)
credentials: v1.2.1
March 6, 2024
androidx.credentials:credentials:1.2.1 and androidx.credentials:credentials-play-services-auth:1.2.1 are released. Version 1.2.1 contains these commits.
Bug Fixes
- Provided fallback solution when platform credential manager is not available. (b/310701473)
DataStore: v1.1.0-beta02
March 6, 2024
androidx.datastore:datastore-*:1.1.0-beta02 is released. Version 1.1.0-beta02 contains these commits.
Bug Fixes
- Performance improvement on
DataStoreonly collects update notifications when it is observed. (b/267792241)- Note that this change might trigger
UncompletedCoroutinesErrorin your tests if you are using the Coroutines testing library. Make sure you pass theTestScope.backgroundScopewhen initializingDataStorein your tests to avoid this issue.
- Note that this change might trigger
- Fixed the issue of nested
updateDatacalls on the same instance would deadlock. (b/241760537) - Made
DataStoreno longer throwIOExceptionsif it fails to deleteSharedPreferencesduring migration. (b/195553816) - Fixed the issue where file rename fails during
updateDatain non-Android JVM environments. (b/203087070) - Fixed the issue where
CorruptionExceptionis not handled afterDataStoreinitialization. (b/289582516)
Games-Activity: v3.0.0
March 6, 2024
androidx.games:games-activity:3.0.0 and androidx.games:games-text-input:3.0.0 are released. Version 3.0.0 contains these commits.
Major features of 3.0.0
GameTextInputhas been reworked to be ready to use in games.- Some interfaces in both libraries have been changed with respect to version 2.0.0.
Bug Fixes
- Fixed compatibility issues with old NDKs
- Fixed Windows build problems
Graphics Path: v1.0.0
March 6, 2024
androidx.graphics:graphics-path:1.0.0 is released.
Mediarouter: v1.7.0-rc01
March 6, 2024
androidx.mediarouter:mediarouter:1.7.0-rc01 and androidx.mediarouter:mediarouter-testing:1.7.0-rc01 are released. Version 1.7.0-rc01 contains these commits.
Navigation: v2.8.0-alpha04
March 6, 2024
androidx.navigation:navigation-*:2.8.0-alpha04 is released. Version 2.8.0-alpha04 contains these commits.
New Features
- You can now specify the
SizeTranformfor your transitions in Navigation Compose by defining them as part of the initialization for thecomposableand/ornavigationfunctions. (I91062, b/296912651)
Bug Fixes
- Fixed an issue where
NavHostin Compose Navigation failed to properly show the transition when using System Back without a gesture. (Iceeae, b/325998468)
Paging: v3.3.0-alpha04
March 6, 2024
androidx.paging:paging-*:3.3.0-alpha04 is released. Version 3.3.0-alpha04 contains these commits.
Bug Fixes
- Fixed minor documentation errors related to the addition of Kotlin multiplatform compatibility. (aosp/2950785)
privacysandbox sdkruntime: v1.0.0-alpha13
March 6, 2024
androidx.privacysandbox.sdkruntime:sdkruntime-client:1.0.0-alpha13, androidx.privacysandbox.sdkruntime:sdkruntime-core:1.0.0-alpha13, and androidx.privacysandbox.sdkruntime:sdkruntime-provider:1.0.0-alpha13 are released. Version 1.0.0-alpha13 contains these commits.
New Features
Backcompatsupport for SDK-SDK loading (SdkSandboxControllerCompat#loadSdk) - now SDKs loaded locally (in Application process) could load other SDKs
Security-App-Authenticator-Testing: v1.0.0-beta01
March 6, 2024
androidx.security:security-app-authenticator:1.0.0-beta01 and androidx.security:security-app-authenticator-testing:1.0.0-beta01 are released. Version 1.0.0-beta01 contains these commits.
Wear Compose: v1.4.0-alpha04
March 6, 2024
androidx.wear.compose:compose-*:1.4.0-alpha04 is released. Version 1.4.0-alpha04 contains these commits.
API Changes
- We have added a new overload for
ToggleChipandSplitToggleChipthat takes aselectionControlparameter instead of thetoggleControlparameter. This should be used with theRadioButtoncontrol in order to provide selectable semantics instead of toggleable semantics for accessibility (I1d6d9) - We have updated parameter names for the new
selectionControloverload fromonSelectedtoonSelectforToggleChipandSplitToggleChip(I1a971)
Wear Compose Material3: v1.0.0-alpha19
March 6, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha19 is released. Version 1.0.0-alpha19 contains these commits.
API Changes
- We have added
TimeTextto the Wear Compose Material3 library. This component shows the current time (and additional status) at the top of the screen. The new, concise Material3 API avoids duplication between linear and curved content. (I4d7c3) - We have updated parameter names from
onSelectedtoonSelectforRadioButton. (I1a971) - Tokenize
RadioButtonandSplitRadioButtonand also refactor the existing methods to reduce the amount ofCompositionLocallookup by adding cached instances of colors, and making methods ofRadioButtonColorsandSplitRadioButtonColorsinternal. (I02b33)
wear protolayout: v1.2.0-alpha01
March 6, 2024
androidx.wear.protolayout:protolayout-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
ProtoLayout Arcelements now have the option to addArcDirection(Clockwise,CounterclockwiseorNormal) to it. Adding this behavior toArc,ArcLineorArcTextwill fix their behavior on RTL layouts. (I90699)EdgeContentLayouthas been updated with a newsetResponsiveContentInsetEnabledsetter to achieve better alignment with the UX guidelines, consistency in Tiles by having primary label at the fixed place on top and responsive inset for labels. (I60175)- We have added
PrimaryLayout.setResponsiveContentInsetEnabledthat adds responsive inset to the primary label, secondary label and bottom chip in this layout, to avoid that content going off the screen edge. (I0c457) - Adds method to remove outer margins from
CircularProgressIndicatorso it can be used as a smaller component. (I55c06)
API Changes
- Tiles renderer now excludes font padding on all text elements by default, without an option to include it. (I3e300)
Bug Fixes
- Fixed Text alignment issue when ellipsize, letter spacing and center align are all used on Text. (I716c7)
- Add a workaround for a skia arc drawing issue. (I08f09)
- Fix
ArcLinedrawing direction for RTL layouts. (I6c141)
Wear Tiles: v1.4.0-alpha01
March 6, 2024
androidx.wear.tiles:tiles-*:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.
WindowManager: v1.3.0-alpha03
March 6, 2024
androidx.window:window-*:1.3.0-alpha03 is released. Version 1.3.0-alpha03 contains these commits.
API Changes
- Split
WindowSizeClassUtilinto more focused methods. (Ie9292) - Restore
WindowSizeClass#compute(I21355, b/324293374)
Bug Fixes
- Fixes crash where the context provided wasn't being unwrapped correctly. (94d10ce , b/318787482)