Skip to content

2022-09-21

Choose a tag to compare

@github-actions github-actions released this 21 Sep 18:54
· 188 commits to main since this release

Activity: v1.6.0

September 21, 2022

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

Important changes since 1.5.0

  • Added ActivityResultContracts.PickVisualMedia and ActivityResultContracts.PickMultipleVisualMedia for providing a backward compatible contract that uses MediaStore.ACTION_PICK_IMAGES when the Photo Picker is available and Intent.ACTION_OPEN_DOCUMENT when it is not available.
  • Integrated the OnBackInvokedCallback in Android 13 into the OnBackPressedDispatchers provided by ComponentActivity and ComponentDialog. This ensures that all APIs built onOnBackPressedDispatcher work when enabling a predictive back gesture.

Annotation: v1.5.0

September 21, 2022

androidx.annotation:annotation:1.5.0 is released. Version 1.5.0 contains these commits.

Important changes since 1.4.0

  • Annotation library has been fully migrated to Kotlin sources, resulting in support for Kotlin-specific target use sites and other Kotlin-compatible annotation features.

Benchmark: v1.2.0-alpha04

September 21, 2022

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

New Features

  • Add support for dryRunMode.enable instrumentation argument to macrobenchmark (already available in micro) for faster local development, and validating app automation (e.g. in presubmit). This overrides iterations to 1, skips compilation, suppresses all configuration errors, and disables measurement .json file output. (Ib51b4, b/175149857)

    On Gradle command line:

    ./gradlew macrobenchmark:cC -P android.testInstrumentationRunnerArguments.androidx.benchmark.dryRunMode.enable=true
    

    In build.gradle:

    android {
        defaultConfig {
            testInstrumentationRunnerArgument 'androidx.benchmark.dryRunMode.enable', 'true'
        }
    }
    

Bug Fixes

  • Fixed StartupTimingMetric to no longer require measured Activities to be launched through MacrobenchmarkScope.startActivityAndWait(). This means the metric can pick up launches from e.g. notifications, Context.startActivity(), in-app Activity based navigation, or shell commands. (Ia2de6, b/245414235)
  • Fix bug where startActivityAndWait would timeout trying to wait for launch completion on emulators by reducing strictness of frame detection. (Ibe2c6, b/244594339, b/228946895)

Biometric: v1.2.0-alpha05

September 21, 2022

androidx.biometric:biometric:1.2.0-alpha05 and androidx.biometric:biometric-ktx:1.2.0-alpha05 are released. Version 1.2.0-alpha05 contains these commits.

API Changes

  • Added CryptoObject support for android.security.identity.PresentationSession in Android 13. (Ife54b, b/197965513)

Bug Fixes

  • Removed unnecessary resource variants to reduce library size. (I3601e, b/220178553)
  • Fixed issue for BiometricPrompt hosted in non-activity contexts. (Ife255)

CameraX: v1.2.0-beta02

September 21, 2022

androidx.camera:camera-*:1.2.0-beta02 is released. Version 1.2.0-beta02 contains these commits.

API Changes

Bug Fixes

  • Disabled the workaround to flip the AF region horizontally of front cameras on Samsung Android T since the issue was fixed. (I05f69)
  • Fixed the black preview issue that happens when BOKEH extension is enabled on some Samsung devices and user switches the cameras. (If6168)

Compose Animation: v1.3.0-beta03

September 21, 2022

androidx.compose.animation:animation:1.3.0-beta03, androidx.compose.animation:animation-core:1.3.0-beta03, and androidx.compose.animation:animation-graphics:1.3.0-beta03 are released. Version 1.3.0-beta03 contains these commits.

  • No changes since 1.3.0-beta02.

Compose Foundation: v1.3.0-beta03

September 21, 2022

androidx.compose.foundation:foundation:1.3.0-beta03 and androidx.compose.foundation:foundation-layout:1.3.0-beta03 are released. Version 1.3.0-beta03 contains these commits.

API Changes

  • Add options to customize line breaking in Text. (I86907)
  • BringIntoViewResponders are now able to get the most up-to-date bounds of a request while processing it. (If86a5, b/241591211)
  • Introduce support for spacings between items to experimental Staggered Grid (I10b82)
  • Introduce content padding to experimental Staggered Grid (I342ea)
  • Changed size:IntSize argument with constraints: Constraints in TextMeasurer.measure method to support minimum width constraints. (I37530, b/242707525)
  • Added Modifier.withConsumedWindowInsets() to get consumed WindowInsets for use outside windowInsetsPadding.
  • Added MutableWindowInsets to allow easily changing WindowInsets without recomposition. (I7fd28, b/237019262, b/243119659)

Compose Material: v1.3.0-beta03

September 21, 2022

androidx.compose.material:material-*:1.3.0-beta03 is released. Version 1.3.0-beta03 contains these commits.

API Changes

  • Add a Pull-To-Refresh component to Compose (I29168)

Compose Material 3: v1.0.0-beta03

September 21, 2022

androidx.compose.material3:material3:1.0.0-beta03 and androidx.compose.material3:material3-window-size-class:1.0.0-beta03 are released. Version 1.0.0-beta03 contains these commits.

API Changes

  • ExposedDropdownMenuDefaults now exposes a padding value for menu items. (I34ee1)
  • ExposedDropdownMenuBoxScope now has a Modifier.menuAnchor() modifier that should be passed to the text field for proper a11y behavior. (I27fa3)
  • Adding two overloaded methods for the current Slider API to allow users to pass in a thumb or track to populate the slider. (I21c00)

Bug Fixes

  • Updated dark theme color mapping for On Error Container to tone 90 (Ic5612)
  • Fix to allow setting a transparent background for small Material 3 top app bars. (I645e2, b/245575782)

Compose Runtime: v1.3.0-beta03

September 21, 2022

androidx.compose.runtime:runtime-*:1.3.0-beta03 is released. Version 1.3.0-beta03 contains these commits.

Behavior Breaking Change

  • The parameter to remember and rememberCoroutineScope where changed to be crossinline. This will report an error for early returns instead of allowing an early return which will cause a later internal error to be reported.
  • This change can potentially lead to new compiler errors to be reported requiring non-local returns to be removed from the lambdas passed to these functions. (Ibea62)

Compose UI: v1.3.0-beta03

September 21, 2022

androidx.compose.ui:ui-*:1.3.0-beta03 is released. Version 1.3.0-beta03 contains these commits.

API Changes

  • Add options to customize line breaking in Text. (I86907)
  • Changed size:IntSize argument with constraints: Constraints in TextMeasurer.measure method to support minimum width constraints. (I37530, b/242707525)

Bug Fixes

  • AndroidX Activity's BackHandler API now works within a Dialog composable. (I35342)

Core Google Shortcuts: v1.1.0-beta01

September 21, 2022

androidx.core:core-google-shortcuts:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.

New Features

  • Removed unused dependency. No new features.

Customview: v1.2.0-alpha02

September 21, 2022

androidx.customview:customview:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.

API Changes

  • Added @NonNull annotations to the create() methods of ViewDragHelper. (I93a01, b/236474222)

Drawerlayout: v1.2.0-alpha01

September 21, 2022

androidx.drawerlayout:drawerlayout:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.

New Features

  • Integrate new OnBackPressedInvoked APIs for Android 13 (0c84661)

Bug Fixes

  • Ensure open() and close() work programmatically when drawer is locked (ae09f6e)

Fragment: v1.5.3

September 21, 2022

androidx.fragment:fragment:1.5.3, androidx.fragment:fragment-ktx:1.5.3, and androidx.fragment:fragment-testing:1.5.3 are released. Version 1.5.3 contains these commits.

Bug Fixes

  • Fixed an error that caused fragments on the back stack to get onMultiWindowModeChanged(), onPictureInPictureModeChanged(), onLowMemory(), and onConfigurationChanged() callbacks. (I34581, I8dfe6, b/242570955)
  • Nested child fragments will no longer receive multiple onMultiWindowModeChanged(), onPictureInPictureModeChanged(), onLowMemory(), or onConfigurationChanged() callbacks. (I690b3, Id0096, If9d6b, I2cba2)

Health Connect: v1.0.0-alpha05

September 21, 2022

androidx.health.connect:connect-client:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.

API Changes

  • Renamed Metadata.uid -> Metadata.id and used the terminology recordId consistently throughout related CRUD APIs. (I3d1d2)
  • Made PermissionController.createRequestPermissionActivityContract a static method instead of an instance method. Renamed to PermissionController.createRequestPermissionResultContract. (Icd2fe)
  • Added BloodGlucose unit type for BloodGlucoseRecord (I97678)
  • Rename MenstruationRecord -> MenstruationFlowRecord. (I3b88e)

Bug Fixes

  • Fix unintended behavior not propagating foreground stats from client process. (Ifb44c)

Recyclerview: v1.3.0-rc01

September 21, 2022

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

  • No changes since last release

Tracing Perfetto: v1.0.0-alpha04

September 21, 2022

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

Wear Compose: v1.1.0-alpha06

September 21, 2022

androidx.wear.compose:compose-foundation:1.1.0-alpha06, androidx.wear.compose:compose-material:1.1.0-alpha06, and androidx.wear.compose:compose-navigation:1.1.0-alpha06 are released. Version 1.1.0-alpha06 contains these commits.

New Features

  • We have added Modifier.scrollAway, which scrolls an item vertically in/out of view, based on scroll state (with overloads to work with Column, LazyColumn and ScalingLazyColumn). ScrollAway is typically used to scroll a TimeText out of view as the user starts to scroll a list of items upwards. (I61766)

Bug Fixes

  • The PositionIndicator now is positioned and sized so that it only takes the space needed. This is useful, for example, if semantic information is added to it, talkback now gets the correct bounds of the PositionIndicator on screen. (Ie6106, b/244409133)

Wear Watchface: v1.2.0-alpha02

September 21, 2022

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

New Features

  • Some watch faces have configuration outside of the UserStyle that affects it visually, (e.g. selecting a background photo). We’ve added Renderer.sendPreviewImageNeedsUpdateRequest which allows the watch face to request an updated preview image. Note this requires a corresponding system up date to work.

  • We’ve also added an API for watch faces to expose their colors to the system which may choose its color palette based on this. Note that this has been made experimental in a follow on patch.

  • Just about every type of ComplicationData now supports SmallImages.

API Changes

  • Wallpaper manager can sometimes detach from an engine and make another. We've added a DisconnectReason int def and extended ClientDisconnectListener with a new method which includes a DisconnectReason, allowing the listener to observe engine detaches. (I45cce)
  • Added two optional parameters nameResourceId and screenReaderResourceId to ComplicationSlotOverlay constructor (I157e8)
  • We've added a guava wrapper for the new overload of getOrCreateInteractiveWatchFaceClient with a PreviewImageUpdateRequestedListener. (Ic31f0)
  • We've added Renderer.sendPreviewImageNeedsUpdateRequest which is useful for watch faces that have state outside of the UserStyleSchema which affects the way they look (e.g. a watch face with a selectable background image). On the client side we've added PreviewImageUpdateRequestedListener as an optional parameter to getOrCreateInteractiveWatchFaceClient to observe these requests. (Iff44a)
  • We've simplified the API for exposing WatchFaceColors, now there's a simple property called watchFaceColors on the Renderer which the watch face can set, this should be updated as necessary in response to any style changes. Instead of using WallpaperManager to observe color changes, we've added OnWatchFaceColorsListener to InteractiveWatchFaceClient. (I490bc)
  • We've added a WatchFaceColors class which holds the three most prominent watch face colors and added open methods watchfaceColors & notifyWatchFaceColorsChanged to the Renderer, these allow the system to obtain the colors of the watch face via WallpaperManager.getWallpaperColors. (I3d611)
  • ShortTextComplicationData, RangedValueComplicationData, NoPermissionComplicationData (and experimental DiscreteRangedValueComplicationData, GoalProgressComplicationData and WeightedElementsComplicationData) now all support SmallImages. If a watch face chooses to render a complication with multiple colors, it now has the option to use a multi-colored SmallImage where previously it would have had to use a monochromatic image. (I257df)
  • Refactor PreviewImageUpdateRequestedListener to be a Consumer<> instead (Ia875d)
  • Replace custom Single Abstract Method (SAM) type OnWatchfaceColorsListener with generic Java SAM type (Consumer) (I0c489)
  • We've deprecated the old getOrCreateInteractiveWatchFaceClient and listenableGetOrCreateInteractiveWatchFaceClient methods that don't specify a PreviewImageUpdateRequestedListener. (Iec502)

Bug Fixes

  • DisconnectReason.BINDER_DIED has been renamed to DisconnectReason.ENGINE_DIED. (I4eb0e)