Skip to content

2023-08-22@10PM

Choose a tag to compare

@github-actions github-actions released this 23 Aug 18:37
· 127 commits to main since this release

Activity: v1.8.0-alpha07

August 23, 2023

androidx.activity:activity:1.8.0-alpha07, androidx.activity:activity-compose:1.8.0-alpha07, and androidx.activity:activity-ktx:1.8.0-alpha07 are released. Version 1.8.0-alpha07 contains these commits.

New Features

  • Activity Compose has added a new PredictiveBackHandler Composable to handle predictive back gesture events. It provides a Flow of BackEventCompat objects that must be collected in the suspending lamba you provide:

    PredictiveBackHandler { progress: Flow<BackEventCompat> ->
      // code for gesture back started
      try {
        progress.collect { backEvent ->
        // code for progress
      }
      // code for completion
      } catch (e: CancellationException) {
        // code for cancellation
      }
    }
    

    It also comes with a compile time warning via lint rule to ensure the Flow calls collect(). (Id2773, b/294884345)

  • The onBackPressedDispatcher in ComponentActivity is now initialized lazily so that it is only created when required. (I0bf8e)

Bug Fixes

  • ComponentActivity will no longer show a NPE on Android 13 when it gets an onBackPressed() callback and the Activity has already been DESTROYED. (Idb055, b/291869278)
  • Removed usages of experimental isAtLeastU() API (Ie9117, b/289269026)

Annotation: v1.7.0-rc01

August 23, 2023

androidx.annotation:annotation-*:1.7.0-rc01 is released. Version 1.7.0-rc01 contains these commits.

This release does not contain any changes from the prior beta.

Benchmark: v1.2.0-beta04

August 23, 2023

androidx.benchmark:benchmark-*:1.2.0-beta04 is released. Version 1.2.0-beta04 contains these commits.

New Features

  • The Baseline Profiles Gradle plugin now supports Android Gradle Plugin 8.3. (aosp/2715214)

Bug Fixes

  • Fix failures in writing / moving and pulling files (especially those from parameterized tests) by sanitizing output file names further, avoiding '=' and ':' in output file names. (I759d8)

CameraX: v1.3.0-rc01

August 23, 2023

androidx.camera:camera-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.

API Changes

  • Added PendingRecording.asPersistentRecording to allow a recording to continuously record while the VideoCapture it's Recorder is attached to is rebound. (I517c6)

Bug Fixes

  • Fixed a crash when a stream is shared with both VideoCapture and Preview. Also fixed a black screen on LEGACY devices when stream sharing is enabled.
  • Fixed large captured JPEG image issue on Samsung S7 (SM-G930T, SM-G930V) series devices. The captured JPEG images contain redundant 0's padding data in the JFIF compressed data segment. It causes the captured images to have large file size. Those redundant 0's padding data will be removed to make the captured images have normal image file sizes. (I407b0, b/288828159)
  • Fixed large captured JPEG image issue on Samsung S22 (SM-S901B, SM-S901B/DS) and S22+ (SM-S906B) series devices. The captured JPEG images contain redundant 0's padding data in the JFIF compressed data segment. It causes the captured images to have large file size about 13MB on S22 SM-S901B/DS device. Those redundant 0's padding data will be removed to make the captured images have normal image file sizes. (I73be9, b/288828159)
  • Fixed large captured JPEG image issue on Samsung A5, A52, A70 and A72 series devices. The captured JPEG images contain redundant 0's padding data in the JFIF compressed data segment. It causes the captured images to have extreme file size (ex about 32MB or even 96 MB). Those redundant 0's padding data will be removed to make the captured images have normal image file sizes. (I97c4d, b/288828159)
  • Fixed the native crash when taking pictures with Extensions enabled (I698f5)

Compose Animation: v1.6.0-alpha04

August 23, 2023

androidx.compose.animation:animation-*:1.6.0-alpha04 is released. Version 1.6.0-alpha04 contains these commits.

API Changes

  • Add SeekableTransitionState to allow developers to control the progress of a transition. (I8e69d)

Compose Compiler: v1.5.2

August 23, 2023

androidx.compose.compiler:compiler:1.5.2, androidx.compose.compiler:compiler-daemon:1.5.2, and androidx.compose.compiler:compiler-hosted:1.5.2 are released. Version 1.5.2 contains these commits.

Bug Fixes

  • Insert line numbers for return statements in constant-returning composable functions. (I42d89)
  • Fix a memory leak caused by switching to the new compiler plugin entrypoint. (4f0a101)
  • Stop transforming non-composable fun interfaces in Compose compiler. This causes fun interfaces to be handled the same way as lambdas, including memoization rules. (28b3ce9)
  • Use vararg argument type for inferring stability on call site. (bc83645)

Compose Foundation: v1.6.0-alpha04

August 23, 2023

androidx.compose.foundation:foundation-*:1.6.0-alpha04 is released. Version 1.6.0-alpha04 contains these commits.

API Changes

  • Add ReusableComposition interface for managing lifecycle and reuse of subcompositions. (I812d1, b/252846775)
  • Modifier.focusGroup has been promoted to stable APIs. (I7ffa3)
  • Add overloads for BasicTextField2 that accept an immutable value and a callback to change that value, just like the current BasicTextField API. (I3f2b8)
  • GridItemSpan::currentLineSpan is now a stable API. (Icc29c)
  • Canvas that accepts contentDescription is now a stable API. (Ib3d29)
  • Introduced viewportSize in ScrollState, a way of knowing the viewPort size of the component that uses ScrollState after measuring happens. (I8b85a, b/283102682)
  • Fixed an issue where the prefetching in Pager did not match the behavior in Views. (I93352, b/289088847)
  • Modifier.consumeWindowInsets(PaddingValues) is now stable.
    • Deprecated Modifier.consumedWindowInsets API is now removed. Use Modifier.consumeWindowInsets instead. (Id72bb)

Compose Material: v1.6.0-alpha04

August 23, 2023

androidx.compose.material:material-*:1.6.0-alpha04 is released. Version 1.6.0-alpha04 contains these commits.

Bug Fixes

  • Fixed an issue where some components using Subcomposition (e.g. BottomSheetScaffold) inside a Scaffold inside a LookaheadScope were attempting to read their size too early. (If2c5d)
  • Fixed DropdownMenu's offset calculation so x offsets depend solely on the local layout direction, and y offsets will no longer be reversed when the menu is near the bottom of the screen. (Iccc74, b/294103942)
  • Optimized BottomSheetScaffold's layout internals and fixed a potential issue with BottomSheetScaffold inside a LookaheadLayout. (Ic0afa)

Compose Material 3: v1.2.0-alpha06

August 23, 2023

androidx.compose.material3:material3-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.

Bug Fixes

  • Fixed DropdownMenu's offset calculation so x offsets depend solely on the local layout direction, and y offsets will no longer be reversed when the menu is near the bottom of the screen. (Iccc74, b/294103942)
  • Fixed DropdownMenu's offset calculation so x offsets depend solely on the local layout direction, and y offsets will no longer be reversed when the menu is near the bottom of the screen. (Ib87a2, b/294103942)

Compose Runtime: v1.6.0-alpha04

August 23, 2023

androidx.compose.runtime:runtime-*:1.6.0-alpha04 is released. Version 1.6.0-alpha04 contains these commits.

New Features

  • Re-throw exceptions that are swallowed during recomposition loop (4dff9a)

API Changes

  • Added a method to deactivate ReusableComposition, removing observations but keeping nodes in place. The deactivated composition can be activated again by calling setContent. (Ib7f31)
  • Add ReusableComposition interface for managing lifecycle and reuse of subcompositions. (I812d1, b/252846775)

Runtime Tracing: v1.0.0-alpha04

August 23, 2023

androidx.compose.runtime:runtime-tracing:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.

New Features

  • Compatible with latest versions of Benchmark and Tracing Perfetto, enabling support for Composition Tracing at app startup (cold start) e.g. in AndroidX Benchmark and Android Studio (starting from Hedgehog Beta 2).

API Changes

  • Renamed androidx.tracing.perfetto.Trace to androidx.tracing.perfetto.PerfettoSdkTrace. (I44af8)
  • Making Tracing Perfetto SDK APIs consistent with android.os.Trace. (I73ba0, b/282199917)
  • Prerequisites for tracing at app startup. (Iad890)
  • Merged experimental and public API files (I0f2e1, b/278769092)

Compose UI: v1.6.0-alpha04

August 23, 2023

androidx.compose.ui:ui-*:1.6.0-alpha04 is released. Version 1.6.0-alpha04 contains these commits.

API Changes

  • Added a method to deactivate ReusableComposition, removing observations but keeping nodes in place. The deactivated composition can be activated again by calling setContent. (Ib7f31)
  • Add ReusableComposition interface for managing lifecycle and reuse of subcompositions. (I812d1, b/252846775)
  • Modifier.focusGroup has been promoted to stable APIs. (I7ffa3)
  • Added androidx annotations to various graphics APIs to specify ColorInt, FloatRange, IntRange, Size and more. (I70487, b/290950582)
  • Updated ColorFilter API to have concrete subclass types for improved inspectability of parameters. (I5fe29)
  • Introduce wear-tooling-preview library to list valid wear devices that can be used for UI previews (Ib036e)
  • Created the FontScalable interface to handle the font scaling part of the Density interface. (I2cf3f)

Core Performance: v1.0.0-alpha03

August 23, 2023

androidx.core:core-performance:1.0.0-alpha03, androidx.core:core-performance-play-services:1.0.0-alpha03, and androidx.core:core-performance-testing:1.0.0-alpha03 are released. Version 1.0.0-alpha03 contains these commits.

New Features

  • Initial library implementation of core-performance-testing, containing test doubles for core-performance.
  • Initial library implementation or core-performance-play-services. Google specific implementation provides up to date media performance class information.

API Changes

  • Add optional module providing media performance class from Google Play Services.
  • core-performance constructors changed to support optional implementation.

Core Ultra Wideband (UWB): v1.0.0-alpha07

August 23, 2023

androidx.core.uwb:uwb:1.0.0-alpha07 and androidx.core.uwb:uwb-rxjava3:1.0.0-alpha07 are released. Version 1.0.0-alpha07 contains these commits.

Bug Fixes

  • Fixed an issue that AOSP backend is not used when CN devices has Google Play Services installed.

credentials: v1.2.0-beta03

August 23, 2023

androidx.credentials:credentials:1.2.0-beta03 and androidx.credentials:credentials-play-services-auth:1.2.0-beta03 are released. Version 1.2.0-beta03 contains these commits.

Bug Fixes

  • Removes uvm extensions, due to planned deprecation from the webauthn spec. (I2d46d)
  • Ensure compliance to webauthn spec regarding clientExtensions, credProps, and rk properties (I3ab01)

Fragment: v1.7.0-alpha03

August 23, 2023

androidx.fragment:fragment-*:1.7.0-alpha03 is released. Version 1.7.0-alpha03 contains these commits.

Bug Fixes

  • Fixed an issue with Fragments when using predictive back that caused the first fragment in the fragment manager’s back stack to be skipped and the Activity to finish when using system back via 3 button navigation or the predictive back gesture. (I0664b, b/295231788)

Games Performance Tuner 2.0: v2.0.0-alpha05

August 23, 2023

androidx.games:games-performance-tuner:2.0.0-alpha05 is released. Version 2.0.0-alpha05 contains these commits.

New Features

  • Migrated Protobuf library to Protobuf lite.

Bug Fixes

  • Fixed issues with dangling pointer.

Mediarouter: v1.6.0-rc01

August 23, 2023

androidx.mediarouter:mediarouter:1.6.0-rc01 and androidx.mediarouter:mediarouter-testing:1.6.0-rc01 are released. Version 1.6.0-rc01 contains these commits.

New Features

  • Added automatic dismissal of the MediaRouter dialog when screen is turned off. (Ib25ee).

Bug Fixes

  • Changed the MediaRouter logging tag to AxMediaRouter to disambiguate from the platform MediaRouter. (Ib619f).

Navigation: v2.7.1

August 23, 2023

androidx.navigation:navigation-*:2.7.1 is released. Version 2.7.1 contains these commits.

Bug Fixes

  • Fixed an issues in Navigation with Compose where when using a Scaffold it was possible to get an error for trying to access a Lifecycle.State.DESTROYED ViewModel. (I1dc11, b/268422136)

privacysandbox ads: v1.1.0-beta01

August 23, 2023

androidx.privacysandbox.ads:ads-adservices:1.1.0-beta01 and androidx.privacysandbox.ads:ads-adservices-java:1.1.0-beta01 are released with no changes. Version 1.1.0-beta01 contains these commits.

Room: v2.6.0-beta01

August 23, 2023

androidx.room:room-*:2.6.0-beta01 is released. Version 2.6.0-beta01 contains these commits.

Bug Fixes

  • Handling the special case SQLite exception during upsert encountered when the 2067 SQLITE_CONSTRAINT_UNIQUE exception is thrown during an upsert, upsert should perform an update. (If2849, b/243039555)

Sqlite: v2.4.0-beta01

August 23, 2023

androidx.sqlite:sqlite:2.4.0-beta01, androidx.sqlite:sqlite-framework:2.4.0-beta01, and androidx.sqlite:sqlite-ktx:2.4.0-beta01 are released. Version 2.4.0-beta01 contains these commits.

Tracing Perfetto: v1.0.0-beta02

August 23, 2023

androidx.tracing:tracing-perfetto:1.0.0-beta02, androidx.tracing:tracing-perfetto-binary:1.0.0-beta02, and androidx.tracing:tracing-perfetto-handshake:1.0.0-beta02 are released. Version 1.0.0-beta02 contains these commits.

New Features

  • Enabled support for tracing at app startup (cold start).

Wear-Ongoing: v1.1.0-alpha01

August 23, 2023

androidx.wear:wear-ongoing:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.

API Changes

  • Add a content description field to Ongoing Activity. This will be used by accessibility services to describe the Ongoing Activity. (I79fc6)

Bug Fixes

  • Added @RequiresPermission to APIs that require granting the POST_NOTIFICATIONS permission on SDK 33 and above. (Ie542e, b/238790278)

Wear Tooling Preview: v1.0.0-alpha01

August 23, 2023

androidx.wear:wear-tooling-preview:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.

API Changes

  • Add WearDevices to list valid wear devices that can be used for UI previews (Ib036e)

Wear Compose: v1.3.0-alpha04

August 23, 2023

androidx.wear.compose:compose-*:1.3.0-alpha04 is released. Version 1.3.0-alpha04 contains these commits.

New Features

  • We have added undo support for the secondary action of SwipeToReveal. (I7a22d)

API Changes

  • Add HorizontalPageIndicator in Wear Material3 library. (Ifee99)
  • Updated Wear Compose preview tooling to use the androidx.wear.tooling.preview library. (Ib036e)

Bug Fixes

  • Fix a bug in round buttons where modifiers were not chained correctly. (I5e162)

Wear Compose Material3: v1.0.0-alpha10

August 23, 2023

androidx.wear.compose:compose-material3:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits.

New Features

  • Add HorizontalPageIndicator in Wear Material3 library. (Ifee99)

API Changes

  • Update Buttons code to use Material3 design tokens. (I92fe4)
  • Declaring Wear Material 3 Stepper and Slider APIs as experimental as the details of the user interface are still being finalized. (I84d54)
  • We have removed the ExtraSmall sizes from the round TextButton and TextToggleButton as that size only applies to the IconButton. (Ibc7d5)

Bug Fixes

  • We have updated the guidance on typography for TextToggleButton to use LabelLarge for LargeButtonSize (Ib10fa)
  • We have updated the guidance on typography for TextButton to use LabelLarge for LargeButtonSize (I8f3a7)
  • We have set the Card's minimum touch target to be 48dp for accessibility. (Ieb9b1)
  • Add AppCard with image demo, removing AppCard with Background demo (Id735f)
  • Fix a bug in round buttons where modifiers were not chained correctly. (I5e162)

Wear Watchface: v1.2.0-beta01

August 23, 2023

androidx.wear.watchface:watchface-*:1.2.0-beta01 is released. Version 1.2.0-beta01 contains these commits.

New Features

  • From Android T, WearOS will now support a default weather system complication.

API Changes

  • Add weather default system fallback for complications. (Ia0994)
  • This patch adds WatchFaceRuntimeService and WatchFaceControlClient.createWatchFaceRuntimeControlClient along with guava wrappers. These add support for watch face runtimes which are a special kind of watch face that loads it's definition from another package. Currently WearOS only supports the runtime for the Android Watch Face Format. (I2799f)
  • This patch is a follow up to aosp/2636578 where we rename the int defs so any code depending on WatchFaceType, CanvasType, TapType or ComplicationsSlotBoundsType doesn't need to change. (I4098b)
  • Updated API files to annotate compatibility suppression. (I8e87a, b/287516207)
  • This patch exposes WatchFaceType constants in WatchFaceTypes, CanvasType constants in CanvasTypes, TapType constants in TapTypes and ComplicationsSlotBoundsType constants in ComplicationsSlotBoundsType. (I3b85a, b/288750666)
  • WatchFace.OverlayStyle has very low usage and is not well supported by OEMs so we're depreciating it with intention to remove it at a later date. (I7344a)