2022-10-05@06PM
Activity: v1.7.0-alpha01
October 5, 2022
androidx.activity:activity:1.7.0-alpha01, androidx.activity:activity-compose:1.7.0-alpha01, and androidx.activity:activity-ktx:1.7.0-alpha01 are released. Version 1.7.0-alpha01 contains these commits.
FullyDrawnReporter APIs
ComponentActivity now provides a FullyDrawnReporter instance that allows multiple components to report when they are ready for interaction. ComponentActivity will wait for all components to complete before calling reportFullyDrawn() on your behalf. These APIs take care of the timing requirements for you and do not need to be called as part of an onDraw call.
These APIs are encouraged to enable:
- Signaling the Android Runtime when startup completes, to ensure all of the code run during a multi-frame startup sequence is included and prioritized for background compilation.
- Signaling Macrobenchmark and Play Vitals when your application should be considered fully drawn for startup metrics, so you can track performance.
Two Activity Compose APIs have been added to make it more convenient to use the FullyDrawnReporter from individual composables:
ReportDrawnWhentakes a predicate (i.e.,list.count > 0) to indicate when your composable is ready for interaction.ReportDrawnAftertakes a suspending method that, when it completes, indicates that you are ready for interaction.
Appcompat: v1.7.0-alpha01
October 5, 2022
androidx.appcompat:appcompat:1.7.0-alpha01 and androidx.appcompat:appcompat-resources:1.7.0-alpha01 are released. Version 1.7.0-alpha01 contains these commits.
Bug Fixes
AppCompatActivitynow sets theViewTreeOnBackPressedDispatcherOwnerso that it is possible to retrieve the dispatcher from the view. (I1a115, b/235416503)Locale.getDefault()now returns the system locale after a cold start (I6a94b)LinearLayoutCompatnow preserves margin layout params (Id2af4)
Asynclayoutinflater: v1.1.0-alpha01
October 5, 2022
androidx.asynclayoutinflater:asynclayoutinflater:1.1.0-alpha01 and androidx.asynclayoutinflater:asynclayoutinflater-appcompat:1.1.0-alpha01 are released. Version 1.1.0-alpha01 contains these commits.
New Features
- Allows configuring a
AsyncLayoutFactorywhen initialzingAsyncLayoutInflater. For AppCompat context, this can be provided throughAsyncAppCompatFactorywhich initializes AppCompat views correctly. - The inflate API accepts an executor on which
OnInflateFinishedListenercallback can be triggered.
Benchmark: v1.2.0-alpha05
October 5, 2022
androidx.benchmark:benchmark-*:1.2.0-alpha05 is released. Version 1.2.0-alpha05 contains these commits.
Bug Fixes
- Fix frame breakdown in Studio system trace viewer for benchmark captured traces (I3f3ae, b/239677443)
- Correct
FrameTimingMetricto listFrameOverrunas requiring API 31 instead of 29 (I716dd, b/220702554) - Set iteration in
BaselineProfileRule, and throw clearly if target package not installed (was already done for MacrobenchmarkRule). (Ic09a3, b/227991471)
Compose Animation: v1.3.0-rc01
October 5, 2022
androidx.compose.animation:animation:1.3.0-rc01, androidx.compose.animation:animation-core:1.3.0-rc01, and androidx.compose.animation:animation-graphics:1.3.0-rc01 are released. Version 1.3.0-rc01 contains these commits.
Compose Foundation: v1.3.0-rc01
October 5, 2022
androidx.compose.foundation:foundation:1.3.0-rc01 and androidx.compose.foundation:foundation-layout:1.3.0-rc01 are released. Version 1.3.0-rc01 contains these commits.
API Changes
- Introduced
lowVelocityAnimationSpecused by the approach step when there's not enough fling velocity to decay. (Iaeb27) - Added new experimental API Hyphens to support automatic hyphenation in Text (Iaa869)
Compose Material: v1.3.0-rc01
October 5, 2022
androidx.compose.material:material-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
Compose Material 3: v1.0.0-rc01
October 5, 2022
androidx.compose.material3:material3:1.0.0-rc01 and androidx.compose.material3:material3-window-size-class:1.0.0-rc01 are released. Version 1.0.0-rc01 contains these commits.
API Changes
- Added slot param for supporting text to text field API (Iaac0d, b/227146125)
Compose Runtime: v1.3.0-rc01
October 5, 2022
androidx.compose.runtime:runtime-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
Bug Fixes
- Fixed
ArrayIndexOutOfBoundsExceptioncoming from the slot table (b/249076084)
Compose UI: v1.3.0-rc01
October 5, 2022
androidx.compose.ui:ui-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
API Changes
- Added new experimental API Hyphens to support automatic hyphenation in Text (Iaa869)
Bug Fixes
DeviceFontFamilyNamefonts will not configurewghtanditalvariation settings by default, instead using platform setting for loadedTypeface. (Ia7a6d, b/246989332)- Fixed
LazyColumnmemory leak -onModifierLocalsUpdatedwas not being called with the default value when modifiers were reused (b/230168389)
Core Google Shortcuts: v1.1.0-rc01
October 5, 2022
androidx.core:core-google-shortcuts:1.1.0-rc01 is released. Version 1.1.0-rc01 contains these commits.
New Features
- Migrated from using
com.google.firebase:firebase-appindexingto the newcom.google.android.gms:play-services-appindexlibrary. Note that this version of the library is not compatible withcom.google.firebase:firebase-appindexing. Developers should avoid using both libraries to avoid build errors.
Core Remote Views: v1.0.0-beta03
October 5, 2022
androidx.core:core-remoteviews:1.0.0-beta03 is released. Version 1.0.0-beta03 contains these commits.
New Features
- No new features were added.
Exifinterface: v1.3.4
October 5, 2022
androidx.exifinterface:exifinterface:1.3.4 is released. Version 1.3.4 contains these commits.
Bug Fixes
- Remove support for saving attributes to DNG files. The support added in 1.3.3 was incomplete and produced corrupted files.
Fragment: v1.6.0-alpha03
October 5, 2022
androidx.fragment:fragment:1.6.0-alpha03, androidx.fragment:fragment-ktx:1.6.0-alpha03, and androidx.fragment:fragment-testing:1.6.0-alpha03 are released. Version 1.6.0-alpha03 contains these commits.
API Changes
- Classes extending
DialogFragmentwill now be required to call super in theironDismiss()overrides. (I14798, b/238928865)
Bug Fixes
- Fixed regressions caused by the integration of the new provider callback interfaces (
OnConfigurationChangedProvider,OnMultiWindowModeChangedProvider,OnTrimMemoryProvider,OnPictureInPictureModeChangedProvider) to ensure that fragments always get the proper callbacks. (I9b380,I34581, (I8dfe6, b/242570955),If9d6b,Id0096,I690b3,I2cba2)
Glance: v1.0.0-alpha05
October 5, 2022
androidx.glance:glance:1.0.0-alpha05, androidx.glance:glance-appwidget:1.0.0-alpha05, and androidx.glance:glance-wear-tiles:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.
New Features
- Adds
requestPinGlanceAppWidgettoGlanceAppWidgetManager, allowing apps to prompt a user to add their Glance based widget to their home screen. (Ic6e47) - Adds
ACTION_DEBUG_UPDATEtoGlanceAppWidgetReceiverto allow developers to force their widget to update from adb on rooted devices and emulators. (I94ae1)
API Changes
- Remove header action buttons in Glance templates to simplify use case. (Ie4387)
- Refactored Single Entity Template to reuse the Block subsystem design. (Iecd2c)
- Refactored Glance List Template to use
Text/Image/ActionBlock design. (If0cc1) - Add priority number range for
TextBlockandImageBlock. (I73100)
Bug Fixes
- Removed Material3 dependency. (I28d1c)
- Moves toward a more consistent system for adding margins and spacing in glance template layouts. (I29773)
- Fixes malformed Proguard rule that was blocking minified releases from building.
Health Connect: v1.0.0-alpha06
October 5, 2022
androidx.health.connect:connect-client:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits.
Bug Fixes
- Improves service connection lifecycle. (If2bd5)
- Fix an NPE crash bug when exception raised in service connection. (I13546)
JavascriptEngine: v1.0.0-alpha02
October 5, 2022
androidx.javascriptengine:javascriptengine:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
New Features
- Add
JavaScriptSandbox#isSupportedfor checking whether the system supports JavaScript sandboxes.
API Changes
- Throw
SandboxUnsupportedExceptionwhenJavaScriptSandboxcannot be created due to lack of system support. (I0dcd6)
Navigation: v2.6.0-alpha02
October 5, 2022
androidx.navigation:navigation-*:2.6.0-alpha02 is released. Version 2.6.0-alpha02 contains these commits.
Behavior Changes
- When passing the ID of a navigation graph to
AppBarConfiguration(such as via aMenu),NavigationUInow only considers the start destination of that navigation graph as a top level destination, rather than incorrectly marking every destination within the graph as a top level destination. The behavior of passing the ID of an individual destination is unchanged. This same functionality is available to your own code via the newisTopLevelDestinationfunction onAppBarConfiguration. (Ie936e, b/238496771)
Bug Fixes
- The
navigation:navigation-fragmentcomponent now depends on Fragment version1.5.2. (I00ba4) - The selected menu item will no longer be updated when navigating to a
FloatingWindowdestination such as a dialog. (I4cde8, b/240308330)
Room: v2.5.0-beta01
October 5, 2022
androidx.room:room-*:2.5.0-beta01 is released. Version 2.5.0-beta01 contains these commits.
API Changes
- Restrict the minimum version that supports
@Upsertto be API 16. This is due to the inability to identity a primary key constraint conflict in older APIs. (I5f67f, b/243039555)
Bug Fixes
- Fixed an issue where shadow tables where incorrectly exported to the schema
.jsonfiles, corrupting them. (I4f83b, b/246751839)
ShareTarget: v1.2.0
October 5, 2022
androidx.sharetarget:sharetarget:1.2.0 is released. Version 1.2.0 contains these commits.
Major changes since 1.1.0
- Fix required explicit value for
android:exportedattribute for Android 12 (aosp/1742473)
Sqlite: v2.3.0-beta01
October 5, 2022
androidx.sqlite:sqlite:2.3.0-beta01, androidx.sqlite:sqlite-framework:2.3.0-beta01, and androidx.sqlite:sqlite-ktx:2.3.0-beta01 are released. Version 2.3.0-beta01 contains these commits.
API Changes
- All of android.sqlite sources have been converted from Java to Kotlin. b/240707042
- One notable change of the conversion is that the following getter functions have become properties:
- In
SupportSQLiteDatabase: attachedDbsisDatabaseIntegrityOkisDbLockedByCurrentThreadisOpenisReadOnlyisWriteAheadLoggingEnabledmaximumSizepageSizepathversion- In
SupportSQLiteOpenHelper: databaseNamereadableDatabasewritableDatabase
- In
Tracing: v1.2.0-alpha01
October 5, 2022
androidx.tracing:tracing:1.2.0-alpha01 and androidx.tracing:tracing-ktx:1.2.0-alpha01 are released. Version 1.2.0-alpha01 contains these commits.
New Features
- Add
trace()andtraceAsync()variants with lazy string and cookie computation. Also now correctly skipsTrace.endifTrace.beginthrows. (I31421, b/175233952, b/247066503)
Tracing Perfetto: v1.0.0-alpha05
October 5, 2022
androidx.tracing:tracing-perfetto:1.0.0-alpha05, androidx.tracing:tracing-perfetto-binary:1.0.0-alpha05, and androidx.tracing:tracing-perfetto-common:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.
tv: v1.0.0-alpha01
October 5, 2022
androidx.tv:tv-foundation:1.0.0-alpha01 and androidx.tv:tv-material:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.
New Features
- Adding modifier
scrollableWithPivotto allow non-lazy scrolling containers such as Row, Column, Grid to have the scrolling container scroll the content so that the item-in-focus remains at the same position on the TV screen. - Adding composables
TvLazyRow,TvLazyColumn,TvLazyHorizontalGrid,TvLazyVerticalGridto have the scrolling container scroll the content so that the item-in-focus remains at the same position on the TV screen. - Adding Featured Carousel composable for TV that allows the user to create an auto-scrolling banner carousel.
- Adding Immersive List composable for TV that allows the user to create an Immersive Row/Column/Grid that changes the background based on the list-item in focus.
Wear Compose: v1.1.0-alpha07
October 5, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha07, androidx.wear.compose:compose-material:1.1.0-alpha07, and androidx.wear.compose:compose-navigation:1.1.0-alpha07 are released. Version 1.1.0-alpha07 contains these commits.
New Features
- We have added experimental placeholder support. This has three distinct visual effects designed to work together. Firstly a placeholder background brush effect used in containers such as Chip and Cards to draw over the normal background when waiting for content to load. Secondly a modifier (
Modifier.placeholder()) to draw a stadium shaped placeholder widget over the top of content that is being loaded. Thirdly a modifier gradient/shimmer effect (Modifier.placeholderShimmer()) that is drawn over the top of the other effects to indicate to users that we are waiting for data to load. All of these effects are designed to be coordinated and shimmer and wipe-off in an orchestrated fashion. (I3c339)
API Changes
- Added support for
fontWeight,fontFamily,fontStyleandfontSynthesisinCurvedTextStyle, usable oncurvedTextandbasicCurvedText. Those parameter can be used to specify the font and style to use on the curved text.(Iaa1a8),(I72759) - Updated
Modifier.scrollAway's offset parameter to Dp for consistency withModifier.offset(previously it was in pixels). Also, refactored as aLayoutModifierfor efficiency. (I9f94b) - As part of the new toggle controls API, we have renamed
RadioButton’s circleColortoringColor. (I28fa9) - We have added animated
Checkbox,SwitchandRadioButtontoggle controls for use withToggleChipandSplitToggleChip. These can be used instead of the static icons provided byToggleChipDefaults(switchIcon,checkboxIconandradioIcon). (I8a8c4)
Wear Watchface: v1.2.0-alpha03
October 5, 2022
androidx.wear.watchface:watchface-*:1.2.0-alpha03 is released. Version 1.2.0-alpha03 contains these commits.
New Features
- No new features, but we have fixed a couple of watch face editor bugs.
API Changes
- Deprecated
UserStyleSchema.userStyleSettingsasrootUserStyleSettingsbecome non-experimental (Ie96e3) - Move
rootUserStyleSettingsout of experimental (I8d6b3) - We've marked
WatchFaceColorsas experimental because it is not supported by all systems (I6d75d) - Expose
DisconnectReasonsin the public API to make it work withIntDef. (I791f8)
Bug Fixes
- Close any open on watch editor if
SysUIdies. IfSysUIdies and the on watch face editor doesn't close, the watch face could be left in an inconsistent state because the system relies onSysUIto persist any user style changes.(ba762a - Fix a memory leak in
ComplicationDataSourceInfoRetriever, where a kotlin coroutine continuation was acting as a gc root and retaining the editor activity.(33ee06)
WorkManager: v2.8.0-beta01
October 5, 2022
androidx.work:work-*:2.8.0-beta01 is released. Version 2.8.0-beta01 contains these commits.
Bug Fixes
- Fixed an issue with the greedy scheduler that would prevent workers from running immediately when under load. (I9686b, b/248111307)