Skip to content

2022-10-05@06PM

Choose a tag to compare

@github-actions github-actions released this 10 Oct 19:40
· 184 commits to main since this release
12e9d73

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:

  • ReportDrawnWhen takes a predicate (i.e., list.count > 0) to indicate when your composable is ready for interaction.
  • ReportDrawnAfter takes 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

  • AppCompatActivity now sets the ViewTreeOnBackPressedDispatcherOwner so 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)
  • LinearLayoutCompat now 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 AsyncLayoutFactory when initialzing AsyncLayoutInflater. For AppCompat context, this can be provided through AsyncAppCompatFactory which initializes AppCompat views correctly.
  • The inflate API accepts an executor on which OnInflateFinishedListener callback 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 FrameTimingMetric to list FrameOverrun as 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 lowVelocityAnimationSpec used 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

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 ArrayIndexOutOfBoundsException coming 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

  • DeviceFontFamilyName fonts will not configure wght and ital variation settings by default, instead using platform setting for loaded Typeface. (Ia7a6d, b/246989332)
  • Fixed LazyColumn memory leak - onModifierLocalsUpdated was 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-appindexing to the new com.google.android.gms:play-services-appindex library. Note that this version of the library is not compatible with com.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 DialogFragment will now be required to call super in their onDismiss() 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 requestPinGlanceAppWidget to GlanceAppWidgetManager, allowing apps to prompt a user to add their Glance based widget to their home screen. (Ic6e47)
  • Adds ACTION_DEBUG_UPDATE to GlanceAppWidgetReceiver to 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 useText/Image/Action Block design. (If0cc1)
  • Add priority number range for TextBlock and ImageBlock. (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#isSupported for checking whether the system supports JavaScript sandboxes.

API Changes

  • Throw SandboxUnsupportedException when JavaScriptSandbox cannot 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 a Menu), NavigationUI now 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 new isTopLevelDestination function on AppBarConfiguration. (Ie936e, b/238496771)

Bug Fixes

  • The navigation:navigation-fragment component now depends on Fragment version 1.5.2. (I00ba4)
  • The selected menu item will no longer be updated when navigating to a FloatingWindow destination 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 @Upsert to 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 .json files, 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:exported attribute 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:
    • attachedDbs
    • isDatabaseIntegrityOk
    • isDbLockedByCurrentThread
    • isOpen
    • isReadOnly
    • isWriteAheadLoggingEnabled
    • maximumSize
    • pageSize
    • path
    • version
    • In SupportSQLiteOpenHelper:
    • databaseName
    • readableDatabase
    • writableDatabase
Note: You may experience source incompatibility issues due to the library conversion to Kotlin. If your code is in Kotlin and is using certain APIs, then updating to this new version might require changes in your code. Specifically if you had implementations with overrides with any of the getter functions mentioned above then you need to override them as property getters and not functions.

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() and traceAsync() variants with lazy string and cookie computation. Also now correctly skips Trace.end if Trace.begin throws. (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 scrollableWithPivot to 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, TvLazyVerticalGrid to 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, fontStyle and fontSynthesis in CurvedTextStyle, usable on curvedText and basicCurvedText. 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 with Modifier.offset (previously it was in pixels). Also, refactored as a LayoutModifier for efficiency. (I9f94b)
  • As part of the new toggle controls API, we have renamed RadioButton’s circleColor to ringColor. (I28fa9)
  • We have added animated Checkbox, Switch and RadioButton toggle controls for use with ToggleChip and SplitToggleChip. These can be used instead of the static icons provided by ToggleChipDefaults (switchIcon, checkboxIcon and radioIcon). (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.userStyleSettings as rootUserStyleSettings become non-experimental (Ie96e3)
  • Move rootUserStyleSettings out of experimental (I8d6b3)
  • We've marked WatchFaceColors as experimental because it is not supported by all systems (I6d75d)
  • Expose DisconnectReasons in the public API to make it work withIntDef. (I791f8)

Bug Fixes

  • Close any open on watch editor if SysUI dies. If SysUI dies and the on watch face editor doesn't close, the watch face could be left in an inconsistent state because the system relies on SysUI to 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)