API Changes
- Integrated the new
EDGE_NONEandframeTimeMillisfrom Android 16 Beta03 into theBackEventCompatprovided byOnBackPressedCallback’shandleOnBackStartedandhandleOnBackProgressedfunctions.
Dependency Updates
- Activity is now compiled with API 36. I510e8 b/301910674
Bug Fixes
- Fixed Gradle Project Isolation incompatibilities in the Benchmark Baseline Gradle Plugin. b/404523257
API Changes
- Increased default timeout for
TraceProcessorserver load and querying to 120 seconds (from 60/30 previously), and made both configurable with one timeout parameter. Ifec87
Bug Fixes
- Fixed a few issues that would occur when benchmarking or capturing profiles of an app without
profileinstaller, and it's includedBroadcastReciever. This only affects runs on rooted devices. Ied308
New Features
- Introduced a new authentication entry point
registerForAuthenticationResult()API to replace theandroidx.biometric:biometric-ktxmodule andandroidx.BiometricPrompt. This new API is modeled after the Activity Result API, and it provides seamless compatibility with both Kotlin and Java development.
API Changes
- Rename
ERROR_MORE_OPTIONS_BUTTONtoERROR_CONTENT_VIEW_MORE_OPTIONS_BUTTONI71d07 - Add
@Deprecatedannotation forIdentityCredentialto keep consistent with the framework. I6ac90 b/140252778 b/217942278 b/251211046 b/239955609 - [1/3] Remove biometric.auth and kotlin library, which will be redesigned. I2f67c
- [2/3] Add
AuthenticationRequestas authentication input andAuthenticationResultas authentication result type. There are two kinds ofAuthenticationRequest, with builders. I50fd9BiometricRequestfor biometric authentication with differentStrengthand optionalFallback.CredentialRequestfor device credential only authentication.
- [3/3] Add new activity-result-pattern APIs for biometric module. Specifically, add a registration API called
registerForAuthenticationResult(), which registers theAuthenticationResultCallbackand the optionalonAuthenticationFailedCallback, and results aAuthenticationResultLauncherto start authentication with all input. I2b06e
Bug Fixes
- This library now uses JSpecify nullness annotations, which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage:
-Xjspecify-annotations=strict(this is the default starting with version 2.1.0 of the Kotlin compiler). Ib49b4 b/326456246 - Fixed an issue of being unable to instantiate fragment
androidx.biometric.FingerprintDialogFragment. I51c4a b/181805603 - Fixed an issue where
BiometricPromptis not dismissed when the device’s home button is pressed. I8c393 I0ca8c b/149770989 - Fixed error code inconsistencies for disabling biometric app auth on API 34/35. Ice99d b/386918213
- Apply forcing strong biometrics on older devices to combined authenticatiors too. Ibb853 I5cfb3 b/257670132
Bug Fixes
- Fixed preview freeze issue when using
ImageAnalysiswith another stream that usesTEMPLATE_RECORDon Samsung Galaxy M55. Ic1a6a b/395822788
API Changes
- Update capitalization for composable properties in default objects for button and toggle button. Add methods in
ToggleButtonDefaultsandButtonDefaultsfor recommended content padding, shapes, icon size, icon spacing, and text style depending on container height. Iea69e - Removed deprecated experimental functions and constants from the
FloatingToolbar. I8f339 - Elevation components now share a common interface and have public constructors and properties. Ibb172
- Adding
animateWidthmodifier inButtonGroupScopethat will need to be used with button group's children to correctly animate the children. Ia3bb6
Bug Fixes
- Fixed Floating Toolbar padding to ensure visual balance during collapse, and improved flexibility for larger content. I06c00
Bug Fixes
- Fixed an issue where focused views embedded in the Compose hierarchy would cause re-entrant composition when the focused view was removed from a lazylist. 765562
API Changes
- An overload for
ViewDragHelper#smoothSlideViewTohas been introduced, which accepts duration and interpolator parameters for animation speed control.
Bug Fixes
- Replace the default storage from
OkioStoragetoFileStorageto improve reliability by reducingCorruptionException. I71181 b/346197747
New Features
- Added
datastore-guavamodule to expose APIs friendly to Java and GuavaListenableFutureusers viaGuavaDataStore. Iadd5e0 DataStoreusage duringDirectBootmode is now supported. To create a datastore to be used during direct boot mode it must be created within the Device Protected storage. This can be achieved by the following newDataStoreAPIs:createInDeviceProtectedStorage()inDataStoreFactoryanddeviceProtectedDataStore()inDataStoreDelegate. Ib90e56
API Changes
- Added
PreferencesFileSerializerthat implementsandroidx.datastore.core.Serializerinterface for use withFileStorage. I4c71f3
Bug Fixes
- Resolved
FileNotFoundExceptionissue inOkioStorageat startup by adding a second attempt to read data in the case of a race condition. I43b3fb b/337870543 - Defined the default constructor for
ReplaceFileCorruptionHandlerfor common code usage. I795b05 b/358138957
New Features
Bug Fixes
- Fix a bug in
GameActivityin whichgetLocaleScript,getLocaleCountryandgetLocaleVariantwere reporting the locale language instead of the requested value 1198bb0 - Fix a bug in
GameActivitywhich caused us to misreport software keyboard open-close events. a63ecca - Fix a bug in
GameTextInputwith multibyte emoji handling 9d54c68
Bug Fixes
- Fix for full-screen flickers while drawing on certain devices with API<33.
New Features
- The
navigation-testingmodule now supports on desktop, linux, macOS and iOS in addition to android. I2b770 b/398265336 NavTypeis now supported on desktop, linux, macOS and iOS in addition to android. I297d8
New Features
- SDK activity launchers can now be created for lifecycle-unaware activities, i.e. activities that don’t implement the
LifecycleOwnerinterface. These launchers need to be manually disposed of by the caller.
API Changes
- Added
LocalUnmanagedSdkActivityLauncherandcreateUnmanagedSdkActivityLauncher, a launcher class for lifecycle-unaware activities and a method to create such launchers. - Renamed
LocalSdkActivityLaunchertoLocalManagedSdkActivityLauncherto highlight the distinction between this and lifecycle-unaware type of launchers.
New Features
API Changes
- Deprecated
SandboxedSdkProviderCompat.getView()with removal in next release. Please migrate toandroidx.privacysandbox.tools 1.0.0-alpha13before next release. - Dropped support for 1.0-alpha13 libraries (both App and SDK should use more recent versions to work with counterpart libraries from this release)
Bug Fixes
- Migrated
AppOwnedInterfacesto local implementation on API33 devices.
New Features
- Set the default Z-ordering of
SandboxedSdkViewandSandboxedSdkUito “below”, indicating that the provider’s surface is now placed below the client’s window. Added support for the UI provider to receiveMotionEventsin this mode after being received by the client window. - Added a
signalOptionsfield to theSessionObserverFactoryinterface. This can be used to define a set of String options which will be used to determine which signals are collected for the associatedSessionObserver. The initial set of signals is defined inSandboxedUiAdapterSignalOptions. If no signal options are set, onlySessionObserver.onSessionOpened()andSessionObserver.onSessionClosed()will be called.
API Changes
- Renamed
SessionConstantstoSessionDatainSandboxedUiAdapter.openSession().
Known Issues
- When the SDK is loaded in the SDK Runtime and the Z-order of
SandboxedSdkVieworSandboxedSdkUiis “above”, the gesture is exclusively received by the provider window and not transferred to the client window anymore.
New Features
- Added support for the
SessionDataparameter inopenSession, which replacesSessionConstants. - Removed the generation of
SandboxedSdkProviderCompat.getView(), which is now deprecated.
Bug Fixes
- No longer throw
InterruptedExceptionwhen a thread is interrupted during the execution of Room blocking APIs, including blocking DAO functions b/400584611. - Re-implement Room’s connection pool in an attempt to alleviate
SQLException: Error code: 5, message: Timed out attempting to acquire a reader connection.and similar issues b/380088809.
Bug Fixes
- Revert a binary breaking incompatible change that incorrectly removed
SupportSQLiteCompatAPIs used by other libraries such as Room b/402796648.
API Changes
- Improve
SwipeToRevealdefault implementation ofgestureInclusionto only ignore gestures if the state of the component is Covered. I7e3d6 - For
SwipeToReveal, madebidirectionalGestureInclusiona val instead of a function and added@FloatRangetoedgeZoneFractionparam ingestureInclusion. Ica7c3
Bug Fixes
- Change
SwipeToRevealbidirectionalGestureInclusionto return an object instead of a class. I29597 - Disabled use of haptics when running tests under
RoboElectric. I58bd1 - Update
SwipeToRevealpaddings between content and action buttons, and also the padding between the icon and text of the action buttons. Ic46cb
API Changes
AlertDialogtop padding is now reduced by default when an icon is provided - this makes best use of the screen size available. Ief06cPagerScaffoldDefaults.FadeOutAnimationhas been renamed toPagerScaffoldDefaults.FadeOutAnimationSpec. The page parameter onAnimatedPagehas been renamed topageIndex. I701f2- Updated naming for
TransformingLazyColumn’sSurfaceTransformation-applyTransformationsplit intoapplyContainerTransformationandapplyContentTransformation, and renamedcreateBackgroundPaintertocreateContainerPainter. Further naming updates toTransformationSpecandResponsiveTransformationSpec. I1c534 - The
AppScaffold backgroundColorhas been renamed tocontainerColor. I4e63f
Bug Fixes
- Fixed an issue in
FadingExpandingLabelwhere the text did not always expand correctly. I0e773 ArcLargehas been reduced from 20sp to 18sp, and letter spacings onArcLargeandArcSmallhave been updated.ConfirmationDialog/OpenOnPhoneDialognow use the defaultArcLargeinstead of overriding it to 18sp. Id39a8- Updated the heading animation for
DatePickerandTimePickerbased, so that the fade-out and fade-in animation act as one Spring animation. I68963 - Optimized
PagerScaffoldby avoiding the reading ofcurrentPageOffsetFractionin theAnimatedPagecomposable. I433ef - All type scales have been updated to have proportional numerals by default, because that is seen as the most frequent use case and defaulting to tabular resulted in too much spacing between certain number pairings.
TimePickerandDatePickercontinue to applyFontFeatureSetting=tnumfor tabular numerals. I88929 - Corrected the initial RSB input focus for
TimePickerandDatePicker. I1c773 - Updated the default text on
OpenOnPhoneDialogto "Check your phone". I00a3f - Updated weights for
ArcLargeandArcMediumfrom 600 to 599 to workaround an issue where weight 600 is treated as bold I2a51d - Update
SwipeToRevealpaddings between content and action buttons, and also the padding between the icon and text of the action buttons. Ic46cb
New Features
- The wear watchface APIs (watchface, watchface-client, watchface-client-guava, watchface-complications-rendering, watchface-data, watchface-editor, watchface-editor-guava, and watchface-style) have been depreciated in favor of the Wear Watchface Format, and will eventually be removed from AndroidX. The complication APIs are not deprecated and will remain. Ice960
- The complication APIs are now able to communicate with
WearSDKdirectly, which is more efficient due to fewer IPC hops.