API Changes
- Add
MediaRouterAPIs to support device suggestions I34cf1 b/438200509 - Add methods for permission-based route visibility I8f814 b/395174487
- Added a new constructor for
MediaRouteDiscoveryRequestwhich accepts a new parameter along with the existing params to indicate whether the scanning should happen even with screen off. I987c8 b/451842800
Bug Fixes
- Change the default
minSdkfrom API 21 to API 23. Ibdfca b/380448311 b/435705964 b/435705223
External Contribution
- Replace most PNG assets with vector drawables.
Bug Fixes
- The Photo and Video
ActivityResultContractsnow will correctly launch when being used on devices with the latest URI security fixes. I61201 b/433708587
- Updated to depend upon UiAutomator 2.4 beta.
API Changes
- Set
CustomContentAction#fromBundleto be visible from tests Iaa6a1
Bug Fixes
- Fixed
ImageCaptureOUTPUT_FORMAT_RAW_JPEG in-memory captureIllegalArgumentExceptionissue. Id4eec b/479990902 - Migrated to AndroidX Media3 muxer. This fixed 1: video corruption during unexpected interruptions or app termination and 2: crashes when saving videos to proxy file descriptors. I23b63 b/433649708 b/264812009 b/475750115
Bug Fixes
- Fixed the crash caused by a corner case where the shared content node is detached before the shared transition root was ever placed. 121310
API Changes
- Introduced
isNestedDraggablesTouchConflictFixEnabledto resolve nested draggable conflicts. We will favor vertical drags over horizontal drags more because UX-wise there's more freedom and uncertainty when a user performs a vertical gesture vs. a horizontal gesture. I273c7 b/252334353 b/269627294 b/363198504 b/442390269 b/419580124 - Adds support for trackpad gestures and conversion from trackpad input events to mouse. With this change, trackpad pointer events that control a cursor like on tablets or laptops will generally be reported as mouse pointers. Pan and scale gestures will also be reported with additional information available in the pointer event changes, with a new
PointerEventType.PanandPointerEventType.Scaleindicating that these values will be set Id071a b/315527861 b/459831570 - Introduce
isDelayPressesUsingGestureConsumptionEnabled. When this flag is enabled, containers with drag gesture will delay press. This includes a behavior change for containers based offModifier.draggablewhich didn't delay press previously. I53f24 b/203141462 - Removed the flag
isDetectTapGesturesImmediateCoroutineDispatchEnabledand deprecated flagDetectTapGesturesEnableNewDispatchingBehaviorI9bba3
Bug Fixes
- Fixed an
IndexOutOfBoundsExceptioninBasicTextFieldwhen using ``OutputTransformation and deleting text. I20ee1 - Changed
GridTrackSize.Autobehavior. It now sizes tracks frommin-contentup tomax-content. Ifa22e b/477748472
External Contribution
- Add support for
NumPadmovement keys I1ff12
Workaround
- Added
isAnchoredDraggableComponentsStrictOffsetCheckEnabled. This flag controls whetherBottomSheetScaffold,ModalBottomSheet,SwipeToDismissBoxandWideNavigationrail strictly require their internal offsets to be initialized. When disabled, the components won't place their content until the offset is initialized. This flag can help temporarily work around a bug where these components throw an exception due to the offset not being initialized. I36870 b/477038695 b/478210200 b/471818801 b/475249572 b/475598146
API Changes
- Add
isTextButtonContentPaddingFixEnabledthat when true makesTextButtonhave correct paddings specs. Ib986e - Added
indicatorPaddingparam forWideNavigationRailItem. I3d5dc - Add
contentPaddingandhorizontalArrangementparameters toSuggestionChipandElevatedSuggestionChip. AddhorizontalArrangementandContentPaddingdefaults toSuggestionChipDefaults. CreateChipArrangementclass. Ida874 b/304853782 - Update the selectable menu items to contain a parameter for supporting text. Deprecate the previous APIs that didn't include the supporting text parameter. Also add the recommended default icon sizes for the leading and trailing icons. I89e4b b/417731599
- Updated the Snackbar layout to improve multi-line text alignment. To minimize UI disruption, the
isSnackbarStylingFixEnabledflag has been introduced to assist with migration. Please enable this flag manually in your application, it will be removed in a future release. I37d63 b/322866101 - Fixed a bug in
BottomSheetScaffold,ModalBottomSheet,SwipeToDismissBoxandWideNavigationRailwhere the anchors were not recalculated in some cases. This fix is behind a feature flag,ComposeMaterial3Flags#isAnchoredDraggableComponentsInvalidationFixEnabled. I9acb1 b/478210200 - Add content padding param to the
WideNavigationRailandModalWideNavigationRailso that the default paddings are customizable. I49106
Bug Fixes
- Setting
BottomSheetScaffold sheetPeekHeightto 0 disablespartiallyExpandedanchor.PartiallyExpandedanchor is preserved in its first layout pass to allow for layout calculation. Ia33a4 b/465158677 SheetState#targetValueprefers it's current anchor if the current offset is valid. This prevents initialValue from immediately updating. Ied2c4 b/477279704- Fix
WideNavigationRailItem's icon not being vertically centered if item height changes. Ib8c83
API Changes
- Material scene strategies support custom pane animations. I65e80
- Material scene strategies support metadata for setting the preferred width and height of a pane when displayed in an adaptive scaffold. If0c2a
- Material scene strategies have new parameters to support pane expansion. Iea29b b/437981137
API Changes
ComposeRuntimeFlags.isMovingNestedMovableContentEnabled, a runtime feature flag, has been removed. I3ee62 b/455588848- Converted
HostDefaultKeyfrom anopen classto aninterface. This allows keys to implement multiple lookup mechanisms (such asViewTreeHostDefaultKey) without being restricted by single-class inheritance, improving extensibility for custom hosting environments. I917a2 HostDefaultProviderandLocalHostDefaultProviderare nowpublic, allowing custom hosting environments to define values for platform-specific locals. I5bdbe
Bug Fixes
- Eliminated the possibility of deadlocking when running two
snapshotFlows simultaneously on two threads. Ib4339 - Fixed an issue in the link table that could cause tooling to omit composables in the hierarchy and incorrectly link subcompositions I7178e
External Contribution
- Fixed Lint false positive when using a unary operator to modify the value in a produceState block I1c7c9
API Changes
AndroidComposeUiFlags.isSharedWindowInfoEnabledmoves theWindowInfoinformation toComposeViewContext. Disabling the flag leavesWindowInfocontrolled byAndroidComposeViewI3b364- Common structures within
ComposeViewwill be moved to the sharedComposeViewContext. This is the first change that moves theCoroutineContexttoComposeViewContext. WhenAndroidComposeUiFlags.isSharedComposeViewContextEnabledis true, values are automatically shared. When false, they are not shared. I9364d b/461566955 - Adds support for trackpad gestures and conversion from trackpad input events to mouse. With this change, trackpad pointer events that control a cursor like on tablets or laptops will generally be reported as mouse pointers, which improves behavior around pointer slop, scrolling, and hovering. Pan and scale gestures will also be reported with additional information available in the pointer event changes, with a new PointerEventType.Pan and PointerEventType.Scale indicating that these values will be set Id071a b/315527861 b/459831570
Bug Fixes
- Send
CONTENT_CHANGE_TYPE_CHECKEDfor Toggleable property change. I6ac64 b/476894689 b/474538004 b/475754416
External Contribution
androidx.compose.ui.graphics.NativePainttypealias is deprecated, useandroid.graphics.Paintdirectly instead I6303c b/477394763- Replace
Paint.asFrameworkPaint()toPaint.nativePaintextension to avoid exposing platform type intocommonMainsourceset viatypealiasI6303c b/477394763 - Add support for
NumPadmovement keys I1ff12
API Changes
- Remove the
onViewBoundsChangedAPI Ie56d0 b/475328144 - Add
BasicPictureInPictureandVideoPlaybackPictureInPictureclasses for typical PiP usages I7f989 b/475328144
Bug Fixes
- Add
ViewBoundsTrackerclass to continuously track the view bounds for settingsourceRectHintinPictureInPictureParamsCompatId203a b/474454111
New Features
- Added
BasicPictureInPictureandVideoPlaybackPictureInPictureto streamline standard implementations. The newVideoPlaybackPictureInPictureclass allows the library to handle view-bounds tracking automatically, ensuring smoother visual transitions.
API Changes
- Remove the
onViewBoundsChangedAPI Ie56d0 b/475328144 - Add
BasicPictureInPictureandVideoPlaybackPictureInPictureclasses for typical PiP usages I7f989 b/475328144
Bug Fixes
- Add
ViewBoundsTrackerclass to continuously track the view bounds for settingsourceRectHintinPictureInPictureParamsCompat. Id203a b/474454111
New Features
- Opt-out of Premium Network Slicing: Introduced a new capability,
CAPABILITY_OPT_OUT_OF_PREMIUM_NETWORK, inCallsManager. This allows VoIP applications to signal that they wish to opt-out of the system's default behavior of requesting premium network slices for voice and video calls. By default, the system may automatically request a premium network slice to improve call quality. This capability can be passed duringregisterAppWithTelecom. I2dfdb - Control Microphone Mute Capability: Added APIs to allow VoIP apps to inform remote surfaces (like Android Auto, wearables) whether the user should be able to control the microphone state. This is useful in scenarios where the user is restricted from changing their mute state, such as being in a moderated meeting, joining as a passive viewer, or using Companion Mode. I55acf
API Changes
- Added
CallsManager.CAPABILITY_OPT_OUT_OF_PREMIUM_NETWORK: Use this flag withregisterAppWithTelecom(int)to prevent the system from automatically requesting premium network capabilities.kotlin val callsManager = CallsManager(context) // Register with Telecom, opting out of premium network requests callsManager.registerAppWithTelecom(CallsManager.CAPABILITY_OPT_OUT_OF_PREMIUM_NETWORK) onCanUserUpdateSilenceis now an optional Ibb0c2- Add APIs to inform surfaces on whether the mic should be shown or not I55acf
Bug Fixes
- Fixed a
NullPointerExceptioninJetpackConnectionServicecaused by a race condition when accessing pending connection requests. This was resolved by switching to aCopyOnWriteArrayListfor thread-safe iterations. I24306 - Corrected an issue in the Meeting Summary extension where a literal string "null" was emitted instead of a true
nullvalue for the current speaker. Idae9a
API Changes
- Add support for Interaction Events to
GlanceWearWidget. Ia4e28 b/469808447
API Changes
- Add an overloaded version of
VerticalListAPI with the slot for a title. Ic3d44 - Updated Glimmer Text
autoSizeparameter ordering for consistency with material3. Ic24bd b/477669012
Dependency Update
Navigation3now depends onNavigationEvent1.0.2. This fixes anIllegalStateExceptioncaused by usingNavDisplayduringAndroidStudioPreviews. Id7212 b/477149762
New Features
- Navigation3 now provides a new type-safe metadata DSL. The DSL uses a new
MetadataKeyinterface that allows for defining the key and value types that they wish to provide to the metadata map. This also added newNavMetadataKeys forNavDisplaytransitions so that they can be used with the newmetadataDSL to add transitions toNavDisplay. Ic10ef Ic049c b/476213928
API Changes
- The
OverlaySceneinterface has a newonRemovedsuspending callback. This callback is invoked after a key associated with the scene is removed from the backstack, but before it leaves composition. This allows exit animations called withinonRemovedto complete before the overlay scene is removed from composition. I29a72 b/440558061 SceneStrategyhas separated the decoration function into a newSceneDecoratorStrategy. This new interface is what is should be used to decorate scenes. There are new APIs forNavDisplayandrememberSceneStateto allow the addition ofSceneDecoratorStrategies. If9385 b/477669607 b/477670333
Bug Fixes
- Fixed an error where passing a
SharedTransitionLayoutinto either theNavDisplayorrememberSceneStateand using anyOverlayScenewould cause a crash because usingSharedTransitionLayoutonly works withNavEntriesthat are rendered as part of theAnimatedContentandOverlaySceneare rendered in their own windows separately. I1bb76 b/478664101
Dependency Update
- From
Navigation31.0.1:Navigation3now depends onNavigationEvent1.0.2. This fixes anIllegalStateExceptioncaused by usingNavDisplayduringAndroidStudioPreviews. Id7212 b/477149762
Dependency Update
- Updated paging-guava’s guava dependency from version 31.1 to 32.0.1.
New Features
- Introduced
EditablePdfViewerFragment, which extends the standardPdfViewerFragmentto provide PDF editing capabilities, including annotations and form-filling. - Annotations: Leverages the
androidx.inklibrary to provide comprehensive PDF annotation support. A dedicated toolbar, triggered by the editFloatingActionButton, grants access to specialized tools including:- Pen: Enables freehand writing and drawing directly on the document. Users can customize the pen stroke with adjustable thickness and a broad color palette.
- Highlighter: Supports both free-form and snap-to-text highlighting, available in multiple colors.
- Eraser: Precisely removes specific annotations.
- Undo and Redo: Provides built-in capabilities to seamlessly undo or redo most recent changes.
- Form Filling: Support for clicking on and modifying form fields such as text inputs, drop-downs, checkboxes and radio buttons.
- The
EditablePdfViewerFragmentsupports inline form-filling capabilities providing a seamless user experience. This feature is controlled via theisFormFillingEnabledAPI inPdfView. EditablePdfDocument: A new interface extendingPdfDocumentfor managing and applying form data edits.- The
PdfViewercomposable supports interaction with form fields, controllable via theisFormFillingEnabledparameter.
- The
- Saving Changes:
PdfWriteHandleallows for committing edited content to a specified file. - Image Selection: Added support for selecting images on long-press within PDF documents. This feature is enabled via the
isImageSelectionEnabledproperty in bothPdfViewand thePdfViewercomposable. Resulting data is exposed through theImageSelectionmodel inOnSelectionChangedListener. - Two-Page Layout: Added a side-by-side layout mode for large-screen devices, configurable using the
pagesPerRowproperty inPdfViewand thePdfViewercomposable.
API Changes
- Introduce Image Selection API in Jetpack PDF Library Iee0b9 b/470897750
- Make Form filling processing layer APIs public. Iec39c b/474260451
- Add
renderParamsparameter toopenDocumentAPI inSandboxedPdfLoaderIf9344 b/438269273 - Add form filling presentation layer APIs I829c5 b/449869703
- Added
@MainThreadannotation on the callback methods ofOnFirstContentLoadListenerandOnSelectionChangedListenerI4cf10 b/466965940 - Marked
ApplyInProgressExceptionconstructor internal, preventing external instantiation I5cc66 b/465414484 - Added
@MainThreadannotation on the callback methods of listeners inPdfViewIe7201 b/429407597 - Add APIs for native editing capabilities through
EditablePdfViewerFragment. Ifae6c b/462049364 - Add
FirstContentLoadAPI toPdfViewandPdfViewerIcf63d b/461666545 - [2Page] Add Two-Page Layout API to
PdfViewerLibrary I8d7f1 b/452517650
Bug Fixes
- Fix for exception due to Page already closed before fetching bitmap b/475255729
New Features
- Enable using the
RemoteApplierby default, which prevents using non-Remote Composable functions when creating a Remote UI. This can be disabled by changingisRemoteApplierEnabledinRemoteComposeCreationComposeFlags. 67a405f - Add Glyph spacing for bitmap fonts 0852657
- Rotate with pivot in
RemoteCanvas9a292b3 - Add
RemoteSpacer12beb72 - Avoid
java.timedependency, allowing theminSdkof the creation libraries to be lowered to 23 59e30d0 FlowLayout7efef02
Bug Fixes
- Fix evaluation for non global
ColorExpressionand computed String. c08d0bd
External Contribution
androidx.compose.ui.graphics.NativePainttypealias is deprecated, useandroid.graphics.Paintdirectly instead I6303c b/477394763- Replace
Paint.asFrameworkPaint()toPaint.nativePaintextension to avoid exposing platform type intocommonMainsourceset viatypealiasI6303c b/477394763
New Features
- Available SPL: Introduced new APIs that allow the device to query trusted update providers—such as OEM updaters or Google Play System Updates—to determine if a more recent security patch is available.
- Supplemental Security Patches: The
areCvesPatched()API was updated to accommodate the Android Security Bulletin's new Risk Based Update System (RBUS) release structure. This enables applications to verify if specific vulnerabilities have been addressed through supplemental OEM patches, even when the device's official Security Patch Level (SPL) date remains unchanged.
API Changes
- Added
queryAllAvailableUpdatesAPI toSecurityPatchState. This API identifies every trusted update provider and retrieves the list of available updates they offer. Iede1f - Added
fetchAvailableSecurityPatchLevelAPI toSecurityPatchState. This API aggregates results and returns the latest availableSecurityPatchLevel. Ib7bcf - Moved the
UpdateInfoclass from thesecurity-state-providermodule to thesecurity-statemodule. I23ea2
New Features
- Bound Service Architecture: Replaced
UpdateInfoProvider(ContentProvider) withUpdateInfoService(Bound Service). This improves performance by avoiding application startup penalties. - Telemetry & Observability: The new service includes built-in hooks (
onRequestCompleted,onClientConnected) for monitoring request latency, lock contention, and caller attribution.
API Changes
- Added
UpdateInfoService: Abstract base class for implementing update providers. Handles IPC, concurrency (double-checked locking), and caching. Ib0fe0 - Added Telemetry Classes:
UpdateCheckTelemetryandUpdateFetchOutcome. I9d852 - Moved the
UpdateInfoclass from thesecurity-state-providermodule to thesecurity-state module. I23ea2
API Changes
- Make state-less commands singletons. I3394c b/429173157
- Update the
RecorderCommandsAPI. Ie09e8 b/429173157 - Simplify the
RecorderCommandsAPI to have a well defined lifecycle. I30f89 b/444305673
API Changes
- Renamed
Modifier.responsiveVerticalPaddingtoModifier.minimumVerticalContentPadding, with padding parameters as Dp, instead of theResponsiveVerticalPaddinginterface. Moved recommended defaults fromResponsiveVerticalPaddingDefaultsinto component specific defaults objects such asButtonDefaults,CardDefaultsand so on Icaab2 b/426154225 - Added
WearComposeFoundationFlags.isTransformingLazyColumnClickableThresholdEnabledto control new functionality introduced forTransformingLazyColumn, which now ignores clicks beyond a 20dp threshold at the top and bottom of the layout, to prevent accidental taps where the item is only partially visible. Also, updated the change to only intercept edge-item clicks on events that are within the touch slop, to avoid ignoring drag gestures. I1ba28 b/480910891 rememberAmbientModeManagernow usesLocalActivityin its implementation to obtain the current Activity, rather than taking the Activity as a parameter Idf114 b/473603258- Changed
AmbientModeto be non-exhaustive for extensibility I92cc3 b/473603258 - Updated
rememberSwipeDismissableSceneStrategyStateto remove theswipeToDismissBoxStateparameter, as that is an implementation detail for up to API 35 only I5907c b/476105162 - [TLC] Added
Modifier.responsiveVerticalPaddingtoTransformingLazyColumn, enabling automatic content padding adjustments to align with Wear OS Material 3 design guidelines. Ia7e73 b/426154225
Bug Fixes
- Updated
TransformingLazyColumnprefetching condition so that urgency is calculated based on the viewport edges without padding I48d85 b/476420552 Pickernow supports seamless transparency over custom backgrounds like gradients or images, by passingColor.Unspecifiedas the Picker’sgradientColor. ForTimePickerandDatePicker, this effect can be achieved by locally overridingMaterialTheme.colorScheme.backgroundtoColor.Unspecified. Icc476 b/458429791 b/458429791- Introduced a 20dp clickability threshold for
TransformingLazyColumnitems at the top and bottom of the screen, to prevent accidental taps when items are largely hidden. I2c9cb b/443285887 - Improved reduced motion handling in
OpenOnPhoneDialog. Ib1d12 b/48558283
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.- This significantly simplifies development by removing the need for manual resource mapping in the
onTileResourcesRequestand overriding that method. - This significantly improves Tiles loading time by removing the need for two binder calls as only the
onTileResourcesRequestmethod can be implemented. - All
ImageAPIs now support this concept by providing new methods that acceptProtoLayoutScoperesponsible for this.
- This significantly simplifies development by removing the need for manual resource mapping in the
Material3 Scope & Resources Auto-Registration: Added
materialScopeWithResourcesto support the Material3MaterialScopeconcept with the Inline Image Resources. This scope handles automatic resource registration and includes new helper methods for images (backgroundImage,avatarImage, andicon) to streamline components usage.Simplified code snippet:
materialScopeWithResources( context = context, deviceConfiguration = deviceParameters, protoLayoutScope = protoLayoutScope) { primaryLayout( // layout setup here iconContent = { **icon**( **imageResource**( **androidImageResource**(R.drawable.myIcon)))}) //… }
PendingIntent support: Added support for
PendingIntentfor Tiles. ThePendingIntentclickables accept fallback actions (LoadActionorLaunchAction). This ensures that if theProtoLayoutRenderer is an older version that doesn't supportPendingIntent, a valid fallback action is automatically used.Many Kotlin DSL Improvements:
- Added specialized Kotlin helpers for
Imageand allImageResourcestypes to improve the developer experience for Kotlin users. - Added helpers for container types such as
Box,Row,Column, etc. to adhere more with modern Android development. - Added a new Kotlin
Transformationmodifier and helper methods for fade in animation.
- Added specialized Kotlin helpers for
Customizing Lottie animation: Added API in
AndroidLottieResourceByResIdto allow customizing Lottie animation via properties and added concrete support and API for creating property to theme a slot based on slot ID with the specified color.Ambient Mode Awareness: Added a new Platform event source,
isInAmbientMode, allowing layouts to react and update expressions based on whether the device is in ambient mode.
API Changes
- Material3 Image Helpers: Deprecated existing Material3 image helpers in favor of new overloads that utilize
ProtoLayoutScopeand the new Inlined Resource handling. - MaterialScope Updates: The
protoLayoutScopefield withinMaterialScopeisNonNullfor easier usage when created viamaterialScopeWithResources. A newhasProtoLayoutScopefunction has been added to check for its presence. TheMaterialScopealso exposes the public field forContext. - Semantics heading is available as an API in
LayoutModifier. - Arc direction support The
ARC_DIRECTION_*consts are now exposed as public for use inArc/ArcLine/ArcText/DashedArcLineelements.
Bug Fixes
- Resource Comparison: Optimized performance by implementing improved
hashandequalsmethods for comparing resource types. - Apply default content description to the single slot textButton.
- Fix calculations for adjusting max lines in the renderer side.
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.- This significantly improves Tiles loading time by removing the need for two binder calls as only the
onTileResourcesRequestmethod can be implemented. - When using image resources directly in the layout, there is no longer a need to manually override
onTileResourcesRequestor specify resources inTilePreviewData.
- This significantly improves Tiles loading time by removing the need for two binder calls as only the
Material3TileService: Introduced a new, Kotlin-friendly service for creating tiles. It simplifies development by providing a single
suspendfunction to return both tile layout and resources. It automatically manages theMaterialScopeandProtoLayoutScopefor better resource handling and performance improvements on faster Tiles loading.- Simplified code snippet:
class MyTileService : Material3TileService() { override suspend fun **MaterialScope.tileResponse**( requestParams: RequestBuilders.TileRequest ): TileBuilders.Tile = tile( timeline = timeline(timelineEntry( primaryLayout( // layout setup here iconContent = { **icon**( **imageResource**( **androidImageResource**(R.drawable.myIcon)))}) //… ))) }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.
API Changes
- Increased Compile SDK: To support the new
Material3TileServiceand advanced resource handling, thecompileSdkversion requirement has been increased to 35. - Minimum SDK Update: The default
minSdkfor the library has been moved from API 21 to API 23. - Optional Resource Overrides: Overriding
onTileResourcesRequestis now optional when using the newProtoLayoutScopeAPIs. - Schema Metadata: Added metadata keys for major/minor Tiles Renderer schema versions as XML tags for better platform compatibility tracking.
Bug Fixes
- ANR Prevention: Moved the unbinding logic during Tile update requests to a background thread to prevent "Application Not Responding" (ANR) errors.
- Version Awareness: The internal
ProtoLayoutScopeincludes theProtoLayout Renderer’sVersionInfo, allowing for better backward compatibility checks.
New Features
- Builder Pattern: Introduced static Builder classes for all descriptor and state objects (e.g.,
GPUDeviceDescriptor.Builder,GPURenderPipelineDescriptor.Builder) to simplify object construction and improve Java interoperability. - Expanded Test Suite: Added more tests, including for the new color conversion extensions, to improve library stability.
- Documentation: Substantially improved KDoc and Javadoc throughout the library, providing clearer definitions for API types and flags.
API Changes
- Constructor Updates: Public constructors for descriptor classes have been updated to support the Builder pattern; many overloaded constructors were removed to streamline the API.
Dawn Update: Updated the internal Dawn source commit to dc741dd to stay synchronized with the upstream WebGPU implementation.
Important Note: The documentation provided in this library release has been generated utilizing Google Gemini and may contain errors.
Bug Fixes
- Fixed incorrect default value for mask in
GPUMultisampleStateI41e86f0b b/379441904
New Features
- Adds
Page#getUrl()which returns the Url associated with the Page object I0a5d7 b/465339942 - Add
WebViewBuilder.applyToAPI for applying builder configurations to pre-constructed WebViews Iae133 b/463288296