API Changes
- Disable and hide delete propagation API Ia4073 b/384947619
- Change
setSchemaTypeWipeoutAccountPropertyPathsto take set. If442c b/470398298 - Support visibility for
Process#isPccUidI2ee69 b/463863587 - Hides some unintentionally exposed constructors in
AppSearchbuilt-in types I98583 b/463386955 - Adds
AppSearchSchema#fromDocumentClasswhich returns the generated schema for a @Document-annotated class I599ad b/458101236 - Add
setSchemaTypeWipeoutAccountPropertyPathstoGetSchemaResponseI8f6d4 b/413089233 - Add set wipe out account API in
SetSchemaRequest. Id5a47 b/413089233 - Added a builder class to create built-in-type Account I29d07 b/429110646
- Add
AppSearchdelete propagation API I57f89 b/384947619 - Adds a shared interface for
GlobalSearchSessionandEnterpriseGlobalSearchSessionIf2a70 b/422241546 - Clean
ExperimentalAppSearchApifrom Blob API I610e8 b/273591938 - Adds a builtin Nickname type I8aba0
- Adds an Action Accumulator API I3f778 b/395157195
- Moves get indexable nested properties to new feature I4cf95 b/407815165
- Removing obsolete
@RequiresApi(21)annotations Ic4792 - Add new built-in type account Iadad6 b/422079057
- Add
AppSearchResult#RESULT_UNAVAILABLEresult error code I48411 b/407815165 b/404210068 b/415387509 b/419875333 b/417461575 b/415031127 b/357835538 - Adds an Action Accumulator API I97818 b/395157195
- Add new
AppSearchResultcodeRESULT_ABORTEDI6c375 b/409070736 - Amended Event to requires API O. I4433b b/399728815
- Added new
AppSearchbuiltin schemaSportsEventI0dea6 b/399728815 - Added new
AppSearchbuiltin schemaSportsTeamI073cd b/399728815 - Added new
AppSearchbuiltin schemaSportsOrganizationI5729c b/399728815 - Added new
AppSearchbuiltin schemaOrganizationI4bb2d b/399728815 - Added new
AppSearchbuiltin schemaEventIfd646 b/399728815 - Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed Idb6b5 b/344563182
- Make
WebPageextendable I622f7 b/399220908 - Add source field to
WebPageIc4d7b b/399220908 - Change
TextMatchInfo's constructor params Ie29c3 b/403591188 b/395128139
Bug Fixes
- Moves libraries to use Java 11 target. This means produced bytecode will be Java 11 (class file version 55) and might require desugaring to use the library If4c2a b/457821470
SearchFeaturesandRankingFeatures. I54b7d b/387291182- Use new delete propagation flag If21ae b/384947619
- Adds more detailed internal logging I10604 b/448872333
- Adds back
allowoptimizationto proguard keep rule forAppSarchDocumentClassMapI0bd88 b/440484133 - Fixes a bug in optimized builds where references to
AppSearchdocument classes could be replaced by unrelated classes due to horizontal class merging I93f20 b/440484133 - Add
ISOLATED_STORAGEfeature Ifb963
API Changes
- Changed
Config.augmentedObjectCategoriesfrom a List to a Set. I25a64 b/487376359 - The types
androidx.xr.arcore.Eyeandandroidx.xr.arcore.Hand. I42438 b/449032900 - Added
Session.createoverload to allow passing an Android Context for resource-scoping. I7d3fe b/415805990 b/477386334 - Changes
FakeRuntimeAnchor.ANCHOR_RESOURCE_LIMITtoFakeRuntimeAnchor.anchorResourceLimit. I90841 b/431992235 - Making
TiltGestureAPI experimental as it may be changed or removed in the future. To use this api, opt in to@ExperimentalGesturesApiIc9858 - Added ability to set categories for
AugmentedObjecttracking in the Config I1f6e4 b/480220930
Bug Fixes
- Fixed Chrome's build by updating META-INF/services/ file with actual location of
PerceptionRuntimeFactory. I7a801 b/481288291
Bug Fixes
- Updated
ArtMetricto account for top-level packages, especially important when using AGP/R8 9.1+, or-repackageclassesglobal option. Previously,ArtMetricwould fail to detect these classloads in itsartClassLoad...measurements. If8a35 b/487402058
New Features - Added a new instrumentation argument androidx.benchmark.requireLockedClocks that allows enabling a check for whether the CPU clocks are locked for rooted devices. Id82e8 b/468039042
New Features
- Multiple Fallback Options Support Ib078e b/349218025
- Starting with Android 36.1 (Baklava), biometric prompt now supports up to four custom fallback options instead of a single negative button. Developers can provide multiple custom fallback options with associated icons (on supported Android versions) via
AuthenticationRequest.Biometric.Fallback. Clicks on these options are now delivered viaAuthenticationResult.CustomFallbackSelectedinstead of an error code.
API Changes
- Remove
JvmSyntheticfromAuthenticationRequest. Ia2dcb b/434257610 - Add
KeyAgreementsupport toBiometricPrompt.CryptoObject. I73029 b/400115331 - Update
registerForAuthenticationResult()to useComponentActivityinsteadFragmentActivityfor broader compatibility. Id5db6 b/349213716
Bug Fixes
Important changes since 1.5.0:
1. Migrated to a High-Performance, Unified Camera Stack
- CameraX now uses
CameraPipe—the same modern, high-performance stack powering the Pixel camera. This transition streamlines architectural efficiency and provides a scalable foundation for bringing advanced computational photography features to the developer ecosystem.
2. Media3 Muxer Integration
- CameraX now integrates the Media3 Muxer by default within the VideoCapture API. This migration provides several benefits:
- Enhanced Performance: More efficient video processing and muxing.
- Crash Resilience: Improved protection against video file corruption, ensuring that data is preserved even if the application crashes during recording.
3. Feature Group improvement
- Feature Group API now supports Video Stabilization and 4K recording.
GroupableFeaturesincludesVIDEO_STABILIZATION,UHD_RECORDINGto allow apps to enable them together with other features.CameraEffectandImageAnalysisinSessionConfigis supported when the feature group is enabled.
4. Stabilized SessionConfig API
SessionConfighas graduated from experimental to a fully stable public API includingSessionConfigandHighSpeedVideoSessionConfig. CameraX Extensions can now be implemented with a newExtensionSessionConfigAP. A newisSessionConfigSupportedAPI is introduced, allowing developers to query whether a specific combination of use cases and features (such as HDR, stabilization, specific resolutions, CameraX Extensions or slow motion) is supported by the device before binding to the lifecycle.
Bug Fixes
- Fixed a crash that occurs on certain Android 17 (API 37) devices or higher. When these devices expose new dynamic range profiles (e.g., STANDARD_SMPTE_2094_50(ID 8192)) that were unknown to CameraX version 1.5.1 and earlier, the library previously failed to handle these IDs appropriately, resulting in a
NullPointerExceptionorIllegalArgumentExceptionduringProcessCameraProvider.bindToLifecycle(). This fix allows CameraX to gracefully ignore unrecognized dynamic range profiles, preventing the crash and maintaining forward compatibility. Please update your CameraX dependency to version 1.5.2 or 1.6.0 (or higher) to avoid this issue on devices exposing these new profiles. For more details, see issue 519796838. Ibd7b5 - The feature group API now provides consistent results when
PREVIEW_STABILIZATIONis used withVideoCapture. This corrects a bug that caused inconsistent results when a Preview use case was not also active. Ifed82 b/449913903 - Fixed an issue where unsupported preferred features were incorrectly made available. Features are now correctly filtered when their required use cases are not met. I38db8 b/449532342
- Fixed glitchy video result on Samsung Galaxy S6. I612d9 b/235127608
- Fixed an issue where
CameraInfo#isFeatureGroupSupportedcould incorrectly return true forPREVIEW_STABILIZATIONif theSessionConfigin the query was already configured with other features. I2c355c b/437816469 - Excluded problematic YUV format output sizes from Samsung Z Fold 4 device. The received images have distortion issue when using those output sizes. I776bf b/460322307
- Fixed a device-specific issue on Samsung A53 where image capture with torch enabled would fail sometimes if
VideoCaptureuse case is bound. I0f183 b/458197367 - Fixes an issue on some devices where using the flash with the ultra-wide camera may result in underexposed images. Ib7530 b/444590340
- Updated the
ExifInterfacedependency to include a fix for parsing JPEGs with0xFFpadding, which resolves image capture failures on devices where the JPEG encoder adds fill bytes before markers. I0eb49
Important changes since 1.5.0:
- Exposed the default viewfinder
ImplementationModevia the newViewfinderDefaults.implementationModepublic API. This is now used as the default for bothViewfinderViewand theViewfindercomposable. Ic3f52
Bug Fixes
SeekableTransitionStatenow properly handles off-thread state changes. Previously, if the state was modified off the UI thread usingSnapshot.withMutableSnapshot(), the transition incorrectly tried to handle the update off of the UI thread.0aba38- Validate duration in
InfiniteRepeatableSpecto prevent 0-duration cycles 151b6d - Respect
visibilityThresholdin customAnimationSpecforanimateFloatAsState3a1cdc - Fixed the corner case interruption handling when a child exit animation finishes while the parent transition is still running in
AnimatedContent. ad9b4f
Bug Fixes
ComposeFoundationFlags.isPausableCompositionInPrefetchEnabledis disabled by default to address stability concerns. I73960 b/482223006 b/488433633
API Changes
- Added flag
isReverseLayoutNestedScrollConnectionInPagerFixEnabledto control the rollout of this fix. I07404 b/399800244 - Introduce
isSkipItemPlacementAnimationFixEnabledto control the rollout of this feature. Id665d b/455884472 b/352584409 b/410487464 b/372509998 - Added
MinMax(min: Dp, max: Fr)toGridTrackSize. This allows developers to explicitly define the minimum bounds of a flexible track. UsingMinMax(0.dp, 1.fr)successfully bypasses intrinsic measurement queries, making it safe to placeSubcomposeLayoutcomponents likeLazyColumnandLazyRowinside flexible grid tracks without crashing. Ieb8c2 b/483822148
Bug Fixes
- Fixed a bug in
FlexBoxwhere items shrank incorrectly when hitting their minimum intrinsic sizes. Items now correctly share unconsumed shrink space to siblings. Additionally,FlexBoxwill no longer artificially clamp items on main axis; if items cannot shrink enough to fit the container, they will now visually overflow the main axis. UseModifier.clipToBounds()if clipping is desired. Ief751 b/480797591 - Prevent keep around from accessing illegal indices. I19121 b/485626636
- Fixed an issue in Grid where gaps between implicitly created rows or columns were omitted from the container's total size calculation, which resulted in clipped content. Ib9df8 b/480372415
ClipboardandClipboardManagernow request the system service on the first method call If0016 b/487947860- Fixed an issue in
RowwithArrangement.spacedByin RTL where overflowing items would result in incorrect layout and spacing. I44e53 b/476006478
New Features
- Promote
Typographyconstructors and attrs, Added aTypographyconstructor that accepts a defaultFontFamilyto be applied to allTextStylesin the scale. I3f6f1 b/236358112 - Promote experimental APIs for sliders to stable. I5efb3 b/304811984
API Changes
isAnchoredDraggableComponentsAnchorRecoveryEnabledfeature flag introduced for draggable components experiencing ambiguous target errors. Components includeModalBottomSheet,BottomSheetScaffold,SwipeToDismissBoxandWideNavigationRailI5b0e5 b/487941042 b/478210200 b/477038695- Added
DropdownMenuItemTrailingLabeldefault function and pointer optimized UI paddings for segmented menus I28977 b/485937388 - Added paddings for dialogs for when
ComposeMaterial3Flags.isPrecisionPointerComponentSizingEnabledis true, and addedAlertDialogDefaults.IconSizefor the icon. Ib9652 b/485932651 - Optimized
BasicTextField's internal min size calculations. These are controlled byComposeFoundationFlags#isBasicTextFieldMinSizeOptimizationEnabled, should you need to disable them. I70ade - Updated parameter order in
SearchBarDefaults.InputFieldto maintain source code compatibility. I20e3b b/486964336 - Remove deprecated
FilterChipandAssistChipapi that have a horizontalSpacing parameter Iec623 b/483762893 - The
isAtTopparameter inTopAppBarDefaults.pinnedScrollBehaviorandTopAppBarDefaults.enterAlwaysScrollBehaviorhas been renamed toisAtStartIf7323 b/405129274
Bug Fixes
BottomSheetcomponents now respectMaterialTheme.motionSchemeduring nested scroll and drag gestures. I5fe22 b/452071842 b/384959324- Fixed icon-label padding being applied when the item has a
selectedLeadingIconthat is not currently displayed Iba820
Bug Fixes
- Fix "Cannot disable reuse from root if it was caused by other groups" crash in pausable composition I474b5 b/488433633
- Fix "Apply is called on deactivated node" crash in pausable composition I880c0 b/484300733
Bug Fixes
- Fixes an issue in WASM where identity hash codes would always return 0 I9d70c
- Fixes an issue where a parent derived state might fail to invalidate correctly when the dependencies of a nested derived state change Ia7981 b/481750019
- Fixes an issue in the
LinkTablethat can cause invalid writes after disposing a composition. I5c97a - Fixes an issue in the
LinkTablethat can cause invalid writes when the table resizes during a copy operation Ie7edf - Fixes an issue in the
LinkTablethat incorrectly updates the stored value of a node I58a4a - The
LinkTablenow initializes to a smaller capacity, which prevents OOM errors when creating many subcompositions on devices with smaller heap sizes I112b9
API Changes
- Rename
PreviewWrapperAPI for consistency I62659 b/490085948 ComposeViewContextallows aComposeViewto compose without being attached to the view hierarchy. UseAbstractComposeView.createComposition(composeViewContext)to start composing without theComposeViewbeing attached. I46e6f- Added
delayMillisto trackpad test APIs forpanEndandscaleEndIf80fe
Bug Fixes
ClipboardandClipboardManagernow request the system service on the first method call If0016 b/487947860- Focus will be restored correctly inside lazy containers where focus nodes and groups are being reused I18d36 b/481564275
- Popup with
clippingEnabled = falsenow correctly uses the full window bounds to display edge-to-edge I206408 b/327017902
Bug Fixes
- Fixed an issue on older Android versions where incoming or upgraded video calls would sometimes incorrectly route audio to the earpiece. The library now enforces a switch to the speaker if this misrouting is detected. I0fc797 I29fd22
- Removed A2DP Bluetooth devices from the list of available endpoints shown in the pre-call screen, as these devices are not supported for voice communication by the Android platform Telecom framework. This aligns the available devices with platform behavior. I98b729
- Skipped running call extensions logic for managed calls to prevent potential crashes or unexpected behavior. I177905
New Features
- Define the operations for Wear Widgets profile inline.
API Changes
- We have renamed
CONTAINER_TYPE_FULLSCREENtoCONTAINER_TYPE_TILE_COMPATto better differentiate fullscreen compatibility widget. This includes reverting of mapping previouslyFULLSCREENtype toLARGEin Widget params.
API Changes
- Adjusted the default values for primary, positive, negative, and surface. Added a new color axis called "background". I6bb6c b/481671956
- Added a
ComponentSpacingValuessubsystem inGlimmerThemethat provides values for use across components for paddings and other spacing elements. ExistingPascalCasespacing and padding constants in component Defaults objects (e.g.,ContentPadding,ItemSpacing) have been renamed tocamelCaseand converted to Composable properties. I96e30 b/491166461 - Move
onClickto the last position in parameter list to be used as trailing lambda. Don't consumeIndirectPointerEvent(s)if no applicable lambda is provided I9343e b/486965466 - Renamed Depth and related entities to
DepthEffect. The layer properties ofDepthEffectare made public. Ie26d2 b/485632564
New Features
- Introduce new fields to
ExerciseSessionRecordandExerciseSegmentto support richer exercise tracking I3c176
API Changes
- Add
HealthConnectClient#getChanges(changeLogsToken, pageSize)to set a soft limit for the number of change logs returned I6837d - Enable support for activity intensity for Health Connect APK 8c7923c
- Defer record validation checks to platform on Android U+ 7682d18
Bug Fixes
- Fix aggregation for activity intensity and mindfulness 0b312833
- The library version now requires the KGP version to be at least 2.2.0 I39f21 b/477205839
New Features
- Add message ports API to provide symmetric, flexible, and low-overhead communication with JavaScript isolates. This allows strings and
ArrayBuffersto be sent and received without embedding them inside evaluations or named data blobs. I04bc0 b/490128971
API Changes
- Add the
SpatialGltfModelAPI and theSpatialGltfModelAnimationAPIs to render glTFs and control animations. ChangedSpatialGltfModelStateto beAutoCloseable, it will now need to be closed to free its resources. I11fde b/466065486 b/481379924. However, theSpatialGltfModelAPI is marked as restricted for this release pending additional testing. Ibf003 b/466090694 - Added a deprecated empty overload for
SubspaceModifier.rotate. Idceb6 - Renamed
SpatialSmoothFeatheringEffectfunction tospatialSmoothFeatheringEffectand moved it to a draw module. UpdatedSpatialExternalSurfacedefault feathering value to null, which mimics the old ZeroFeatheringEffect functionality. I5fdaa b/460426800 - Removed
onPointSourceParamsAvailable. A different audio spatialization API will be available in the near future. I86507 b/458513439 - Added RTL behavior for offset subspace modifiers. Also added
absoluteOffsetto ignore layout direction. I30e4b b/474409165
API Changes
- Removed
unscaledGravityAlignedActivitySpaceflag fromSession.create.ActivitySpaceis always unscaled and gravity-aligned now. If6f11 b/458173423 - Removed deprecated
setMaterialOverrideandclearMaterialOverridefunctions fromGltfModelEntitywhich are now called on the individualGltfModelNode. I2e5d2 - Added
transformPixelCoordinatesToLocalPositionandtransformNormalizedCoordinatesToLocalPositiontoPanelEntityand removed equivalent experimental methods that used to return poses instead ofVector3positions. Ib6960 b/460123106 b/458333591 - Added
GltfAnimationAPIs for controlling glTF animations inSceneCore. I2c172 b/466065486 b/465819070 b/465818617 - Renamed
ScenePose.activitySpacePosetoScenePose.poseInActivitySpaceI8f175 b/427822261 - Added Scenecore Projected Runtime Implementation I9c4ab b/476440158
- When resizing the main panel entity, it may reposition itself to the
ActivitySpaceorigin. There is no workaround other than manually or programmatically repositioning the panel back to its original location. This bug will be fixed in a future release. b/489427007. - In some cases, the affordance for
MovableComponentmay not appear forSurfaceEntityand other non-Panel entity types. Explicitly settingMovableComponent.sizewill cause the affordance to appear. This bug will be fixed in a future release b/490983469.
API Changes
- Make
parentKeyan optional parameter inViewModelStoreProviderconstructors, defaulting tonull, and move it afterparentStoreorparentOwner. This simplifies instantiation when a shared scope key is not needed. I66b67 ViewModelStoreNavEntryDecoratornow accepts aViewModelStoreOwnerinstead of aViewModelStore. This allows Navigation3 to propagate the parent's defaultCreationExtrasandViewModelProvider.Factoryto nested ViewModels, ensuring support for application-level dependencies. Ia6018 b/434651920- Isolate
ViewModelStoreProviderstate using a unique key. This prevents sibling providers from unintentionally clearing each other's ViewModels during disposal. I59c0b b/434651920 - Add
ViewModelProvider.get<VM>(key: String)extension function. This enables developers to more cleanly retrieve ViewModels using a customkeywith Kotlin reified type parameters, removing the need to explicitly pass the class type. Ic1f59 - Add
defaultArgssupport toViewModelStoreProviderto allow initializing ViewModels with defaultSavedStatevalues. I1e933 b/434651920 b/165642391 - Deprecate
removeViewModelStoreOnPopand the associatedViewModelStoreNavEntryDecoratorDefaults. This API was a workaround for configuration changes, which are now handled internally. All decorator state, including ViewModels, must now be cleared at the same time on pop. To keep decorator state around outside of when that back stack is passed to a NavDisplay, use therememberDecoratedNavEntriesAPI. I852d9
Bug Fixes
- Add
toString()toCreationExtras.Keyto display the class name. I5de52
API Changes
- Changed Orbiter to use either an
OrbiterAnchorPoint+VolumeOffsetor anOrbiterPoseProviderinstead ofposition,offset,offsetType,alignment, and elevation. Also removed theshouldRenderInNonSpatialparameter. If the developer does not want the orbiter to render in non-spatial they should wrap the orbiter in an if statement and check theSpatialCapabilities. I9fbb3 b/462428503
Use the 1.10.0 stable version.
Bug Fixes
NavDisplaynow ensures that entries that are displayed underneath overlays have theirLifecyclecapped atSTARTED. This ensures APIs likedropUnlessResumedcontinue to work when using dialogs. If209f b/483966071- Fixed an issue in
NavDisplaywhere navigating back and forth between the same screens and interrupting the animations between the two could cause the z-order of the screens to be incorrect. I4d491 b/459419800
New Features
EditablePdfViewerFragmentnow supports rendering and erasing highlight annotations added from other apps. Ic46e4
API Changes
- Updating
EditablePdfDocumentto interface I94f75 b/483065130
New Features
API Changes
- Expose
RemoteSpaceras public API I1a540 - Make
RemoteBrushapplyToand typeface API public I87ce9 b/493249631 - Omit alignment and placement parameters from
drawTextOnCircleI7fd16 b/446824085 - Expose semantics modifier functions Ice73b
- Expose
RemoteImageVectorandpainterRemoteVectorIf8f38 b/446824085 - Expose
RemoteTimeDefaultsas a public API inremote-creation-composeIddc74 b/446824085 - Make
RemoteArrangement.spacedBymethods public I36e86 - Expose more
RemoteDrawScopeAPI I1dde7 - Expose
RemotePaintertypes in API I1ec8e - Expose
RemoteBrushAPI I4b074 - Minimal public API for
RemoteCanvasI00853 b/446824085 - Expose RC semantics Modifiers I8b175 b/446824085
- Expose
RemoteFloat.asRemoteDp()I28b36 b/446824085 - Expose
RemoteFloatoperations I85fb5 b/446824085 RemoteArrangement.CenterHorizontallywas removed and is replaced byRemoteArrangement.Center. I2f907 b/471212869 b/471153933- Change
RemoteBoxalignment to accept a singleRemoteAlignment. I0bfbf b/471212869
New Features
- FTS5 Support: Added FTS5 support to Room via the
@Fts5annotation. This includes new constants for FTS5 tokenizers (TOKENIZER_ASCIIandTOKENIZER_TRIGRAM) and an enum for the 'detail' FTS option (FULL,COLUMN, andNONE). I90934 b/146824830 - Room Paging Targets: Added
js,wasmJs,tvOS, andwatchOStargets toroom3-paging. Icffd3 b/432783733
API Changes
- Multi-platform
clearAllTables(): CommonizedclearAllTables(), making it available across all platforms. It has also been converted into asuspendfunction. I434ae b/322846465 - Destructive Migration: Added a default parameter value to
dropAllTablesin thefallbackToDestructiveMigrationAPIs. Ica88b b/438041176 Experimental API Changes:
Moved
@ExperimentalRoomApitoroom-commonto allow annotation-based APIs to be marked as experimental.Added an experimental
RoomWarningto suppress the requirement for@ConstructedByin a Room database declaration. In this case,DatabaseConstructorwill not be generated, and a factory implementation must be provided viaDatabaseBuilder. If5443
Bug Fixes
- Paging Source: Updated
PagingSourceDaoReturnTypeConverterto correctly indicate that its convert function is intended for READ queries. I3b067 b/139872302
API Changes
- Updated the client-side
SecurityPatchStateto support the new secure session model when communicating with update providers. This architectural change fortifies the client against IPC race conditions, preventing crashes and connection errors that could occur during coroutine timeouts or unexpected service disconnections. I2cf65
Bug Fixes
- Updated the client-side discovery logic to enforce a stricter security boundary when identifying trusted update providers.
SecurityPatchStatenow explicitly verifies that hosts hold theandroid.permission.READ_PRIVILEGED_PHONE_STATEpermission. This prevents potential spoofing by unprivileged third-party apps preloaded on the system partition, guaranteeing the provider is a legitimate system component. I3464b
API Changes
- Refactored
UpdateInfoServiceto use a secure session model for client interactions. This update enhances security and improves telemetry accuracy by:- Identity Validation: Enforcing strict validation of a client's package name and UID when a session is opened to prevent identity spoofing.
- Session Management: Introducing a dedicated, per-client session interface to safely handle update queries and manage concurrent teardown requests.
- Automatic Cleanup: Automatically detecting when a client application crashes or terminates unexpectedly, ensuring resources are freed and disconnection telemetry is reliably triggered. I2cf65
Bug Fixes
- Fix missing symbols issue on iOS when using the
NativeSQLiteDriverand dynamically linking to IOS's SQLite library b/434324365.
New Features
VerticalTextLayoutnow supports the horizontal layout, to display special spans in Japanese such as Ruby and Emphasis (Boten).
API Changes
RubySpanandEmphasisSpannow inherit ReplacementSpan for supporting them for horizontal text I38db6 b/447239659 b/447224892
API Changes
- Make
AbstractTraceDriverreally abstract, and move thePerfettoimplementation into thetracing-wiremodule. Ie2f59 - Give more descriptive names to base implementations to avoid using the wrong one. For developers previously extending
androidx.tracing.Trace{Sink|Driver}they will now need to switch to usingAbstractTrace{Sink|Driver}. I9b46d
Important changes since 1.5.0:
- Introduced Wear Compose Navigation3 library, which integrates with the Navigation 3 library’s
NavDisplayandSceneStrategycomponents, adding Wear-specific swipe-to-dismiss logic using our newSwipeDismissableSceneStrategy. - Added
TransformingLazyColumnsupport forreverseLayout, snapping usingTransformingLazyColumnDefaults.snapFlingBehaviorandModifier.minimumVerticalContentPadding, which allows defining a preferred content padding for items in the list when they are at the top or bottom edges. - Added new overloads for
AlertDialogwhich use aTransformingLazyColumnfor consistency with scrolling in other Material3 screens. - Improved curved text rendering, particularly for cursive fonts, with the introduction of text-warping via the new
CurvedTextStyleparameterwarpOffset, which is turned on by default for API 34 onwards. - Added
LocalAmbientModeManager, a newCompositionLocalthat supports defining different UI and behavior for interactive and ambient modes. - For a more complete list of the features introduced in version 1.6.0, see the beta01 release notes
Important changes since 1.3.0:
- For full details of changes since 1.3.0, see the 1.4.0-beta01 release notes.
New features
- The 1.4.0-beta01 release of Wear ProtoLayout indicates that this release of the library is feature-complete and the API is locked (except where marked as experimental). Wear ProtoLayout 1.4 includes the following new functionalities and APIs:
- Inlined Image Resources and performance improvements: Introduced an improved resource handling concept where
ImageResourcecan be directly inlined within the layout itself. - Material3TileService: Introduced a new, Kotlin-friendly service for creating tiles. It simplifies development by providing a single suspend function to return both tile layout and resources. It automatically manages the
MaterialScopeandProtoLayoutScopefor better resource handling and performance improvements on faster Tiles loading. - Tile Previews Update: Tooling for Tile Previews has been updated to support the new
ProtoLayoutScopeautomatic resource handling, ensuring previews reflect inlined resources correctly without extra configuration. - Many Kotlin DSL Improvements: Added specialized Kotlin helpers for
Tileand all other APIs needed to build a tile (such asTimeline) to improve the developer experience for Kotlin users. - Dynamic Service Switching: Introduced
METADATA_GROUP_KEY, allowing developers to group multipleTileServiceinstances in the manifest. This enables dynamic switching between different services that represent the same tile on new OS versions. - Tile ID in Updates: Developers can now specify a particular tileId in update requests, allowing for more granular control over which tile instances are refreshed.
- Increased Compile SDK: To support the new
Material3TileServiceand advanced resource handling, thecompileSdkversion requirement has been increased to 35. - ANR Prevention: Moved the unbinding logic during Tile update requests to a background thread to prevent "Application Not Responding" (ANR) errors.
- Proper RequiresPermission annotation for heart rate data: Starting from API 36, calling
PlatformHealthSources.heartRateBpmorPlatformHealthSources.heartRateAccuracyneedsandroid.health.connect.HealthPermissions.READ_HEART_RATEpermission to be granted to the calling App.
- Inlined Image Resources and performance improvements: Introduced an improved resource handling concept where
API Changes
- Expose
RemoteTextButtonpublic APIs. I169e3 b/492476015 - Expose
RemoteIconButtonpublic APIs. Id7c71 b/492476015 - Expose
RemoteButtonGrouppublic APIs. Ibfc22 b/492476015 - Expose
RemoteButton,RemoteCompactButton,RemoteButtonDefaultsandRemoteButtonColorsas public APIs I3bcdd b/492476015 - Expose
RemoteIconas a public API I0cc79 b/492476015 - Expose
RemoteTextas public APIs I8a11a b/492476015 - Expose
RemoteFloat.asRemoteDp()I28b36 b/446824085
Important changes since 1.5.0:
For full details of changes since 1.5.0, see the 1.6.0-beta01 release notes.
New features
The 1.6.0-beta01 release of Wear Tiles indicates that this release of the library is feature-complete and the API is locked (except where marked as experimental). Wear Tiles 1.6 includes the following new functionalities and APIs:
- Inlined Resource Handling and performance improvements: Tiles now support automatic resource collection through
ProtoLayoutScope. - Material3TileService: Introduced a new, Kotlin-friendly service for creating tiles. It simplifies development by providing a single suspend function to return both tile layout and resources. It automatically manages the
MaterialScopeandProtoLayoutScopefor better resource handling and performance improvements on faster Tiles loading. - Tile Previews Update: Tooling for Tile Previews has been updated to support the new
ProtoLayoutScopeautomatic resource handling, ensuring previews reflect inlined resources correctly without extra configuration. - Many Kotlin DSL Improvements: Added specialized Kotlin helpers for
Tileand all other APIs needed to build a tile (such asTimeline) to improve the developer experience for Kotlin users. - Dynamic Service Switching: Introduced
METADATA_GROUP_KEY, allowing developers to group multipleTileServiceinstances in the manifest. This enables dynamic switching between different services that represent the same tile on new OS versions. - Tile ID in Updates: Developers can now specify a particular
tileIdin update requests, allowing for more granular control over which tile instances are refreshed. - Increased Compile SDK: To support the new
Material3TileServiceand advanced resource handling, thecompileSdkversion requirement has been increased to 35. - ANR Prevention: Moved the unbinding logic during Tile update requests to a background thread to prevent "Application Not Responding" (ANR) errors.
- Updates the Guava dependency version to resolve security vulnerability CVE-2023-2976.
API Changes
- Added
CINNAMON_BUN(SDK 37) inWearApiVersionHelper. Id1ee0 b/487264133
API Changes
- The
startUpWebViewAPI and related async startup configuration APIs inProcessGlobalConfigandWebViewStartUpConfighave been graduated from experimental to stable.
WebView startup can be a time-consuming process, so these APIs allow applications to trigger WebView startup at the right time, ensuring that portions of WebView startup which are able to run in the background will do so, improving the responsiveness of the first WebView usage.
These APIs were previously released as experimental, and can now be used without an@OptInannotation. The previous version ofstartUpWebViewhas been deprecated, and users of that API should migrate to the new version, which takes aWebViewOutcomeReceiverto facilitate failure callbacks. Iebb60 I56bf7 - Navigation APIs no longer require the use of
@OptInannotations.
This coversWebViewCompat#addNavigationListener, as well as theNavigationListenerinterface, and the Navigation and Page classes. Note that theNavigationandPagetypes are now classes instead of interfaces.
These APIs should now be feature checked using the newWebViewFeature#NAVIGATION_LISTENERfeature constant. I410c8 b/474625648 b/448580228 b/479792864 b/432696062 b/474625648 - Removes the experimental annotation from
WebViewCompat#saveState. This API is similar toWebView#saveState, but allows the developer to specify a maximum size for the state, and whether forward history entries should be included. Ie3fe1 b/389076708 Profile#setSpeculativeLoadingConfigis deprecated. UseProfile#setMaxPrerenders,PrefetchCache#setMaxPrefetches,PrefetchCache#setPrefetchTtlSecondsinstead. I9f0f7 I9b977 b/466301565
Bug Fixes
- Fix additional issues with network calls failing from background even when network constraint are met Ic7f73 b/445324855
- Handle security exception in
NetworkStateTracker. I4b7ca b/480123154 - Fixed an issue where periodic
WorkRequests that fail due to an uncaught exception would not be rescheduled. Ia6b92 b/443879071
API Changes
- Added a new
create(activity: Activity)method to theProjectedActivityCompatIf4773 b/479214966
API Changes
- Changed
Config.augmentedObjectCategoriesfrom a List to a Set, I25a64 b/487376359 - Removed
unscaledGravityAlignedActivitySpaceflag fromSession.create.ActivitySpaceis always unscaled and gravity-aligned now. If6f11 b/458173423 - Added
Session.createoverload to allow passing an Android Context for resource-scoping. I7d3fe b/415805990 b/477386334 - Added
JvmOverloadstoFloatSize2d.to3d,Matrix3.copy, andMatrix4.copyI69586 b/481371562 - Added ability to set categories for
AugmentedObjecttracking in the Config I1f6e4 b/480220930 - Added
xr:runtime:runtime-interfacesmodule. I52ac6 b/461561664