2023-08-09
Annotation: v1.7.0-beta01
August 9, 2023
androidx.annotation:annotation-*:1.7.0-beta01 is released. Version 1.7.0-beta01 contains these commits.
New Features
- Stabilized APIs for release
Benchmark: v1.2.0-beta03
August 9, 2023
androidx.benchmark:benchmark-*:1.2.0-beta03 is released. Version 1.2.0-beta03 contains these commits.
API Changes
- Added argument to filter
TraceSectionMetricto only the target package, on by default (Ia219b, b/292208786)
Bug Fixes
- Renamed
fullTracing.enableinstrumentation argument toperfettoSdkTracing.enablefor consistency with artifact name, and other references.fullTracing.enablewill continue to work as a fallback. (I7cc00) - Benchmark library internal tracepoints (including microbenchmark loop/phase tracing) will now show up in Studio system trace viewer, and nest under the correct process in Perfetto. (I6b2e7, b/293510459)
- Removed macrobenchmark NOT-PROFILEABLE error on API 31+, and skip profileable check on eng/userdebug rooted devices. (I2abac, b/291722507)
- When using Dex Layout Optimizations, startup profile rules are also now considered as baseline profile rules. (aosp/2684246, b/293889189)
Browser: v1.6.0
August 9, 2023
androidx.browser:browser:1.6.0 is released with no changes since 1.6.0-rc01. Version 1.6.0 contains these commits.
Car App: v1.4.0-beta01
August 9, 2023
androidx.car.app:app-*:1.4.0-beta01 is released. Version 1.4.0-beta01 contains these commits. - Note: Next release will be moving from 1.4 to 1.7, to align naming to the CarApi level to be released (e.g. CarApi 7 => 1.7)
New Features
- Instrument Cluster map rendering for Navigation apps
- New TabTemplate for improved app layout / usability
- Support for Adaptive task limits
- Secondary actions on list elements
API Changes
- See alpha02
Collection: v1.3.0-beta01
August 9, 2023
androidx.collection:collection-*:1.3.0-beta01 is released. Version 1.3.0-beta01 contains these commits.
Compose Animation: v1.5.0
August 9, 2023
androidx.compose.animation:animation-*:1.5.0 is released. Version 1.5.0 contains these commits.
Compose Animation: v1.6.0-alpha03
August 9, 2023
androidx.compose.animation:animation-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.
API Changes
- New type of enter/exit transition that scales the content based on the size of the animating container during enter & exit animation.
LookaheadScopeComposable fun and interface are now stable. (Ifb2ce)
Compose Foundation: v1.5.0
August 9, 2023
androidx.compose.foundation:foundation-*:1.5.0 is released. Version 1.5.0 contains these commits.
Important changes since 1.4.0
- Many foundational modifiers, including
Modifier.clickable,Modifier.draggable,Modifier.scrollable, layout modifier and more have been migrated toModifier.NodeAPI, reducing the overhead on the initial composition. - Improvements in Pagers stability. Many bugs have been addressed.
pageCountparameters now lives inPagerStateinstead of the Pager itself
Compose Foundation: v1.6.0-alpha03
August 9, 2023
androidx.compose.foundation:foundation-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.
API Changes
- Overload of
LazyLayoutadded, it accepts a lambda ofLazyLayoutItemProvider, not a plain object as it was before. The previous overload is deprecated. (I42a5a) - Added support for configuring
privateImeOptions(Idb772)
Bug Fixes
- Fixed text fields showing keyboard and being editable when
readOnlyis true. Also fixed the keyboard not showing whenreadOnlyis changed from true to false while focused. (I34a19, b/246909589)
Compose Material: v1.5.0
August 9, 2023
androidx.compose.material:material-*:1.5.0 is released. Version 1.5.0 contains these commits.
Important changes since 1.4.0
API Changes
- Incorporated changes in the Swipeable1 APIs in
BottomSheetScaffold.BottomSheetState'sconfirmStateChangeparam has been renamed toconfirmValueChange.progressis now exposed as a float value.animateToandsnapToare internal. Useexpand()andcollapse()instead.directionandoverflowhave been removed.offsethas been replaced withrequireOffset(). I323b4 - Mark the
snapTofunction in Drawer as non-experimental API. (Ib9c18, b/261425368) - Added a track color parameter for circular progress indicators, and a stroke cap parameter for both circular and linear progress indicators. (Ie668c, b/216325962, b/222964817)
- Renamed
ModalBottomSheetState,ModalBottomSheetState.SaverandrememberModalBottomSheetState'sconfirmStateChangetoconfirmValueChange. (Ib48d1) - Add
Modifier.minimumInteractiveComponentSize. It can be used to reserve at least 48.dp in size to disambiguate touch interactions if the element would measure smaller. (I33f58, b/258495559) - Incorporated changes in the Swipeable APIs in
ModalBottomSheetLayout.ModalBottomSheetState's animateTo does not take ananimationSpecparameter anymore and the offset exposed is now nullable. UserequireOffsetto require the offset. (Ia2e79) - Adding
@JvmDefaultWithCompatibilityannotation (I8f206) - Incorporated changes in the Swipeable APIs in
ModalDrawer. DrawerState'sanimateTohas been replaced by the open and close methods and the offset is now nullable. UserequireOffsetto require the offset. (I3de9e) - Updated Drawers and Sheets to correctly delay presses in case gestures can become scroll events.
- Added
minLinesparameter into material and material3 Text,TextFieldandOutlinedTextFieldwhich allows setting the minimum height of the component in terms of number of lines (I4af1d)
Bug Fixes
- Fixes an issue where
pullRefreshwas not consuming velocity, causing overscroll to show. Also changed the API signature of theonReleaselambda inModifier.pullRefreshto return a Float for consumed velocity (I7db65, b/266874741) BottomSheetState,ModalBottomSheetStateandBottomDrawerStatenow expose a progress property indicating the progress between the current (settled) anchor and the closest anchor in the swipe direction. (I1b317, b/271169225, b/276375124, b/276776071, b/270066861)- Fixed the
AlertDialogdismiss action to appear below the confirm action when the actions stacked over each other to fit into the dialog's width. This fix aligns the implementation with the Material Design spec. (I029de, b/235454277) BottomSheetScaffoldwill not participate in nested scroll anymore whengesturesEnabledis set to false. (I634f3, b/215403277)- Fixed a bug where
BottomSheetScaffoldwould crash when provided with empty content for slots. (Ib24a5, b/235588730) - Fixes
PullRefreshIndicatorintercepting clicks/pointer events. (2494256, b/271777421) - Fixed an issue where
ModalBottomSheetLayoutwould crash in an edge case on orientation change. Layout animations (e.g.Modifier.animateContentSize) in/on the sheet content now work smoothly. (I2f981, b/266780234)
Compose Material: v1.6.0-alpha03
August 9, 2023
androidx.compose.material:material-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.
API Changes
- Material2 components now have a separate API to pass
windowInsetsto support edge-to-edge functionality in android. Unlike material3 components, material2 components do not support insets by default and the value should be passed manually. Refer to the corresponding samples for guidance. (I655e8)
Compose Material 3: v1.2.0-alpha05
August 9, 2023
androidx.compose.material3:material3-*:1.2.0-alpha05 is released. Version 1.2.0-alpha05 contains these commits.
API Changes
- Updates to the Checkbox and
TriStateCheckboxcolors. TheCheckboxDefaults.colors()disabledUncheckedColornow only affects the border of the checkbox. Special cases that require you to set the internal box color when disabled and unchecked requires a custom constructed instance of aCheckboxColorswith the desired color values. (I77d17, b/291943198)
Compose Runtime: v1.5.0
August 9, 2023
androidx.compose.runtime:runtime-*:1.5.0 is released. Version 1.5.0 contains these commits.
API Changes
- Removed allocations in recomposition, color animations, and
AndroidComposeView. (Ib2bfa) - Added a
@StateFactoryMarkerannotation, to mark functions that create states and must be wrapped in aremembercall. (I64550) - Add primitive versions of State and
MutableState(fb3d89) - Added
Snapshot.isApplyObserverNotificationPending(I672a5) - Added primitive versions of the
StateAPI, allowing Int, Long, Float, and Double values to be tracked inStateobjects without incurring penalties for autoboxing. Use the new factory methodsmutableIntState(Int),mutableFloatStateOf(Float), etc in order to use these. (I48e43)
Bug Fixes
- Skip recomposition of subcompositions that will be removed. (Ieeb99, b/254645321)
- Don't retain snapshot reference in
ComposerImpl(0206f7) - Don’t apply composition twice (f5791b)
- Ensure invalidation for non-initialized derived state values (aa2a92)
- Call
onEndChangesduring composition dispose. (62cc8c) - Fix moving content into a sub-composition (4beb41)
- Fix potential deadlocks (c1a425 and 8edce0)
- The recomposer created for an Android window will now only block calls to
withFrameNanosinstead of all composition when it receives an ON_STOP notification. This means windows associated with stopped activites will continue to recompose for data changes but the animations, or any other caller ofwithFrameNanos, will block. (Id9e7f, b/240975572) - Execute deactivation callbacks for
LayoutNodebefore disposing effects 3784073 - Fix changed flags for restarted lambdas ea81df9
- Fix live edit regression for Composable with nodes 73fd4d8
- ON_STOP should pause the frame clock broadcasts instead of composition ae276f1
- Invalidate
SnapshotStateObserverscopes for unchanged derived states 84d9b1c - Fix potential dead-lock when disposing compositions 28761fc
- Fix moving content into a sub-composition 92d4156
- Fix changed flags for restarted lambdas (8a03e9)
- Execute deactivation callbacks for
LayoutNodebefore disposing effects (8b0fa4) - Fix
endToMarker()when ending node groups. (d71d980) - Use current
SlotWritergroup for check on deactivation (a0b518b) - Remove the
fillinSlotTable.moveSlotGapTo()and move it to close (81f9935) - Fix missing invalidations while movable content is moving (1d7c024)
- Fix immediate invalidations for moved movable content (8676618)
Performance Improvements
- Avoid calculating
readableHashinDerivedStateif snapshot wasn't modified. (307102) - Reduced allocations (I65c09, d7ea77, 727974, and 445808 )
- Quick cancellation of compose
CoroutineScopes(a55362 and bd382f) - Overwrite records of state objects with inaccessible state records (c986960)
- Use composer of the correct scope when realizing groups (9a5e5b6)
- Use
IdentityArraySetto store snapshot invalidations (7f60cca) - Reduce allocations for snapshot observations (5bc535f)
Compose Runtime: v1.6.0-alpha03
August 9, 2023
androidx.compose.runtime:runtime-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.
Bug Fixes
- Fix new
CompositionLocalProvideroptimization (3118e88) - Correct how movable content nodes are disassembled. (5e3d59b)
Compose UI: v1.5.0
August 9, 2023
androidx.compose.ui:ui-*:1.5.0 is released. Version 1.5.0 contains these commits.
Compose UI: v1.6.0-alpha03
August 9, 2023
androidx.compose.ui:ui-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.
API Changes
- New type of enter/exit transition that scales the content based on the size of the animating container during enter & exit animation.
LookaheadScopeComposable fun and interface are now stable. (Ifb2ce) - Added support for configuring
privateImeOptions(Idb772)
Bug Fixes
PopupPositionProvider.calculatePositionwill now automatically update the popup's position when state read in the calculation is changed. (I676a1, b/292257547)- Fixed text fields showing keyboard and being editable when
readOnlyis true. Also fixed the keyboard not showing whenreadOnlyis changed from true to false while focused. (I34a19, b/246909589) - Expanded application of global assertions in UI testing. (I1f90d)
Concurrent: v1.2.0-alpha02
August 9, 2023
androidx.concurrent:concurrent-futures:1.2.0-alpha02 and androidx.concurrent:concurrent-futures-ktx:1.2.0-alpha02 are released. Version 1.2.0-alpha02 contains these commits.
API Changes
- Added
SuspendToFutureAdapterfor writing suspend-ListenableFuturebridges (Ia8a66)
Constraintlayout: v2.2.0-alpha12
August 9, 2023
androidx.constraintlayout:constraintlayout:2.2.0-alpha12 is released. Version 2.2.0-alpha12 contains these commits.
ConstraintLayout-compose, and ConstraintLayout-Core 1.1: v1.1.0-alpha12
August 9, 2023
androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha12, androidx.constraintlayout:constraintlayout-compose-android:1.1.0-alpha12, and androidx.constraintlayout:constraintlayout-core:1.1.0-alpha12 are released. Version 1.1.0-alpha12 contains these commits.
API Changes
- Added
LayoutScopeMarkerto Transition DSL. (If54ce)
Core and Core-ktx: v1.12.0-rc01
August 9, 2023
androidx.core:core:1.12.0-rc01, androidx.core:core-ktx:1.12.0-rc01, and androidx.core:core-testing:1.12.0-rc01 are released with no major changes. Version 1.12.0-rc01 contains these commits.
Emoji2: v1.4.0
August 9, 2023
androidx.emoji2:emoji2-*:1.4.0 is released. Version 1.4.0 contains these commits.
Important changes since 1.3.0
- Introduced emoji picker library. Checkout the developer doc for more details.
Fragment: v1.7.0-alpha02
August 9, 2023
androidx.fragment:fragment-*:1.7.0-alpha02 is released. Version 1.7.0-alpha02 contains these commits.
Bug Fixes
- When using Fragments with Predictive Back Gestures from API 34, if you are using a transition system that does not support seeking (
Animations,Transitions) or no transitions at all, Fragments will now wait until the gesture is complete before executing the back action. (I8100c)
Health Services Client: v1.1.0-alpha01
August 9, 2023
androidx.health:health-services-client:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.
New Features
ExerciseEventAPIs have been added alongside the first concrete event:GolfShotEvent. TheExerciseEventprimitives enable developers to query support for and request to be notified when the watch detects something has occurred.GolfShotEventas an example enables developers to be notified when the user takes a golf shot in addition to receiving the swing type recognized.
API Changes
- Enable WHS SDK clients to use
GolfShotEventfunctionalities. (I76b03)
Bug Fixes
- Instead of aggressively throwing exceptions on seeing unknown exercise event capabilities, filter it out from the list. (I06afc)
Hilt-Common Hilt-Compiler Hilt-Work: v1.1.0-alpha01
August 9, 2023
androidx.hilt:hilt-common:1.1.0-alpha01, androidx.hilt:hilt-compiler:1.1.0-alpha01, and androidx.hilt:hilt-work:1.1.0-alpha01 are released. Version 1.1.0-alpha01 contains these commits.
New Features
- Add KSP support to
androidx.hilt. Note that this is to prepare for Hilt’s KSP support. In order to use the KSP version of androidx.hilt, the main Hilt support has to be released.
Mediarouter: v1.6.0-beta01
August 9, 2023
androidx.mediarouter:mediarouter:1.6.0-beta01 and androidx.mediarouter:mediarouter-testing:1.6.0-beta01 are released. Version 1.6.0-beta01 contains these commits.
API Changes
- Fix support for Android U platform APIs. (Ie9117, b/289269026)
Bug Fixes
- Fix translations in
MediaRouteChooserDialog. (d39a7f)
Navigation: v2.7.0
August 9, 2023
androidx.navigation:navigation-*:2.7.0 is released. Version 2.7.0 contains these commits.
Important changes since 2.6.0
Animations from Accompanist
Now that AnimatedContent is stable, we were able to move the code from Accompanist Navigation Animation back into Navigation Compose itself.
This means all of the support for setting custom transitions that existed in AnimatedNavHost is directly supported in NavHost.
No additional changes will be made to Accompanist Navigation Animation and we’ll be formally deprecating it soon, along with guidance on how to migrate back to Navigation Compose itself, but it'll be the inverse of the migration guide with no other API changes required if you're already using the latest Accompanist alpha (0.31.2-alpha). (b/197140101)
Bug Fixes
- NavHost in Navigation Compose now correctly intercepts system back calls even after the Activity has been STOPPED and RESUMED. (Icb6de, b/279118447)
Dependency Updates
- Navigation now depends on Compose
1.5.0up from1.1.0.
privacysandbox ads: v1.1.0-alpha01
August 9, 2023
androidx.privacysandbox.ads:ads-adservices:1.1.0-alpha01 and androidx.privacysandbox.ads:ads-adservices-java:1.1.0-alpha01 are released. Version 1.1.0-alpha01 contains these commits.
API Changes
- Introduce
registerSourcelist (Iae92f) - Removed usages of experimental
isAtLeastU()API (Ie9117, b/289269026)
Bug Fixes
- Merge experimental and public API files (I15da3, b/278769092)
privacysandbox plugins: v1.0.0-alpha02
August 9, 2023
androidx.privacysandbox.plugins:plugins-privacysandbox-library:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
New Features
Updates applied privacy sandbox libraries versions:
- privacysandbox tools libraries 1.0.0-alpha04
- privacysandbox sdkruntime libraries 1.0.0-alpha06
- coroutine libraries 1.6.4
Bug Fixes
- Update Privacy Sandbox tool versions to alpha-04. (I5b9fa)
privacysandbox sdkruntime: v1.0.0-alpha08
August 9, 2023
androidx.privacysandbox.sdkruntime:sdkruntime-client:1.0.0-alpha08 and androidx.privacysandbox.sdkruntime:sdkruntime-core:1.0.0-alpha08 are released. Version 1.0.0-alpha08 contains these commits.
Bug Fixes
- Fix
SharedPreferencesmigration fails when target contextSharedPreferencesdidn't exist.
privacysandbox-tools: v1.0.0-alpha05
August 9, 2023
androidx.privacysandbox.tools:tools-*:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
New Features
- Generated
SandboxedUiAdaptersnow have the newwindowInputTokenset. This makes this release compatible withandroidx.privacysandbox.ui:ui-core:1.0.0-alpha05.
privacysandbox ui: v1.0.0-alpha05
August 9, 2023
androidx.privacysandbox.ui:ui-client:1.0.0-alpha05, androidx.privacysandbox.ui:ui-core:1.0.0-alpha05, and androidx.privacysandbox.ui:ui-provider:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.
New Features
- Added logic to transfer touch focus to host on scroll and fling gestures originating from
SandboxedSdkView. This allows the client’s scrollable container hosting provider UI to respond correctly to scrolls and flings.
API Changes
- Added
windowInputTokenparameter toSandboxedUiAdapter(Ief578)
Bug Fixes
- Set session state to Active after the first draw (I36f3f)
- Fix layout issue with
SandboxedSdkView. (I09cb8) - Added logic to transfer touch focus to host. (I33b54)
- Add
windowInputTokenparameter toSandboxedUiAdapter. This is necessary to ensure that theSurfaceControlViewHost's token is correctly associated with the host of the embedded hierarchy. (Ief578) - Run
notifyResizedinside the main thread. (I62440) - Fix crash in the
Session.close()flow. (I5392e)
Room: v2.6.0-alpha03
August 9, 2023
androidx.room:room-*:2.6.0-alpha03 is released. Version 2.6.0-alpha03 contains these commits.
New Features
API Changes
- A new type annotation called
@MapColumnhas been created to replace@MapInfo, which is now deprecated. For each column name (keyColumnName,valueColumnName, or both) provided in a@MapInfoannotation, you will need to declare a@MapColumnannotation with just thecolumnNameand use the annotation on the specific type argument that is being referenced (the key or value of the Map) in the return type of the DAO function. This is because the@MapColumnannotation is used directly on the type argument within the return type of a DAO function, instead of on the function itself like@MapInfo. For more information, please refer to the@MapColumndocumentation. (Ib0305, b/203008711) - Updated API files to annotate compatibility suppression (I8e87a, b/287516207)
Bug Fixes
- Fixed potential memory leak vulnerability in
QueryInterceptorStatement. (I193d1) - Fixed incorrect behavior in the
QueryInterceptorDatabase execSQL()function. (Iefdc8)
Sqlite: v2.4.0-alpha03
August 9, 2023
androidx.sqlite:sqlite:2.4.0-alpha03, androidx.sqlite:sqlite-framework:2.4.0-alpha03, and androidx.sqlite:sqlite-ktx:2.4.0-alpha03 are released. Version 2.4.0-alpha03 contains these commits.
Wear: v1.3.0
August 9, 2023
androidx.wear:wear:1.3.0 is released with no changes since 1.3.0-rc01. Version 1.3.0 contains these commits.
Important changes since 1.2.0
- Migrate
AmbientModeSupportto useLifecycleObserver. DeprecateAmbientModeSupportin favor of the new lifecycle-aware classes. - Update
ConfirmationOverlaywith new icons/layout, fonts and font metrics SwipeDismissTransitionHelperupdated to use a background drawable instead of a 2ndViewto correct errors when using theFragmentContainerViewSwipeDismissFrameLayoutanimation updated to be consistent with the Wear platform and Wear Compose implementations.SwipeDismissFrameLayoutbug fix to avoid accidental dismissing of fragments with a vertical flingArcLayoutnow supports expansion weights which operate in a similar way to regular Layout weights.- Support
layoutDirectiononArcLayout
Wear Compose: v1.3.0-alpha03
August 9, 2023
androidx.wear.compose:compose-*:1.3.0-alpha03 is released. Version 1.3.0-alpha03 contains these commits.
API Changes
- We have added two new composables in Material for implementing
SwipeToRevealwith Cards and Chips. These composables follow the recommended UX guidance on the component and make it easier for developers to implementSwipeToRevealwith the existing components in Wear Material. (I7ec65) - We have turned on the
FloatRangeannotations as API constraints, which were previously stated in comments. (Icb401)
Bug Fixes
- We have moved the initial scrolling logic of
ScalingLazyColumninsideonGloballyPositioned(). (Ic90f1) - We are now using
drawWithCacheinPositionIndicator,ProgressIndicator, andSelectionControlsto optimize stroke allocations. (I5f225, b/288234617) - We have fixed checkbox tick visibility in disabled states. (Ib25bf)
- We have updated
Placeholderto allow resetting to show the placeholder if the content is no longer in the ready state. (Ibd820) - We have made some fixes to flaky
Placeholdertests (Idb560)
Wear Compose Material3: v1.0.0-alpha09
August 9, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha09 is released. Version 1.0.0-alpha09 contains these commits.
New Features
- We have added
ToggleButtonfor material3 (I6bed6)
API Changes
- We have turned on the
FloatRangeannotation as API constraints , which were previously stated in comments. (Icb401) - We have updated the typography for Wear Material3 to adhere to the latest Material3 guidelines. (I1bad6)
Bug Fixes
- We have updated the colors for
Button,IconButtonandTextButtonin line with Material3 design. (Ib2495) - We have fixed checkbox tick visibility in disabled states. (Ib25bf)
Wear Compose: v1.2.0
August 9, 2023
androidx.wear.compose:compose-*:1.2.0 is released. Version 1.2.0 contains these commits.
Important changes since 1.1.0
- Stable release of Compose for Wear OS 1.2.0 (read more)
- For a list of the key changes in Wear Compose 1.2, see the release notes for (Compose for Wear OS 1.2 Beta01)
wear protolayout: v1.0.0
August 9, 2023
androidx.wear.protolayout:protolayout-*:1.0.0 is released. Version 1.0.0 contains these commits.
Major features of 1.0.0
ProtoLayout library introduces APIs for creating layouts and expressions that can be used across different Wear OS surfaces. For example Tiles library uses these APIs to support platform data binding (for faster tile data updates) and animations.
Wear Tiles: v1.2.0
August 9, 2023
androidx.wear.tiles:tiles-*:1.2.0 is released. Version 1.2.0 contains these commits.
Important changes since 1.1.0
- Stable release of Wear Tiles 1.2.0 (read more)
- Tiles 1.2 adds support for binding layout elements to platform data (for faster updates) and animation. For migration instructions see the release notes for (1.2.0-rc01)
Webkit: v1.8.0-rc01
August 9, 2023
androidx.webkit:webkit:1.8.0-rc01 is released with no changes since 1.8.0-beta01. Version 1.8.0-rc01 contains these commits.