Skip to content

2022-11-09

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:47
· 175 commits to main since this release

Benchmark: v1.1.1

November 9, 2022

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

Bug Fixes

  • Fixes android.system.ErrnoException: open failed: EACCES which would occur on some Android11 (API 30)+ devices. This is a cherry-pick of a fix from 1.2.0-alpha01. (aosp/2072249)

Benchmark: v1.2.0-alpha07

November 9, 2022

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

API Changes

  • Adds PowerMetric API for measuring energy and power in Macrobenchmarks. (Ife601, b/220183779)
  • Fixed MacrobenchmarkScope.dropShaderCache() to actually drop the shader cache. This removes roughly 20ms of noise from StartupMode.COLD benchmarks, as shaders are now consistently cleared each iteration. Previously, Partial compilation using warmup iterations would report incorrectly fast numbers, as shader caching was more likely to happen during warmup. This fix requires either a rooted device, or using profileinstaller:1.3.0-alpha02 in the target app. For ProfileInstaller library’s API changes, please refer to ProfileInstaller 1.30-alpha02 page. (Ia5171, b/231455742)
  • Added TraceSectionMode("label", Mode.Sum), allowing measurement of total time spent on multiple trace sections with the same label. For instance, TraceSectionMetric("inflate", Mode.Sum) will report a metric inflateMs for the total time in a macrobenchmark spent on inflation. Also removed API 29 requirement, as TraceSectionMetric works together with androidx.tracing.Trace back to lower API levels, with the use of forceEnableAppTracing within the target app. (Id7b68, b/231455742)

Bug Fixes

  • Improved safety of all internal shell commands by validating all output/errors. (I5984d, b/255402908, b/253094958)
  • Specify device in baseline profile adb pull command, so the pull command can be simply copied if multiple devices are connected (up to one emulator) (I6ac6c, b/223359380)
  • Add error if macrobenchmark test apk isn't set up as self-instrumenting. This error prevents macrobenchmarking from within the target app's process. In process, macrobench wouldn't be able to compile/kill/cold start the app, or control its own permissions (I4279b)
  • Fixed an issue in measureRepeated() where StartupMode.COLD wouldn't kill the target process after setupBlock. Now setupBlock interacting with the app will not leave the app process running, and an invalid cold start measurement. (I8ebb7)

CameraX: v1.3.0-alpha01

November 9, 2022

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

New Features

  • Camera-viewfinder has been published officially. Camera-viewfinder provides a base viewfinder widget that can display the camera feed for Camera2. Please check the sample code for an example.

API Changes

  • Added OutputOptions.setDurationLimit to allow setting of video duration limit. The recording will be automatically finalized when exceeding the specified duration limit. (I902a0)
  • Add video recording audio error state AudioStats.AUDIO_STATE_SOURCE_ERROR. Sent when audio source setup fails or some error occurs. (I37410)

Bug Fixes

  • Add quirk to allow some problematic devices to retry capture once when encountering capture failures. (Id4795)
  • Fix PreviewView SurfaceView implementation black screen issue on ViewPager2. As part of the fix, PreviewView will reuse its SurfaceView if the requested resolution is not changed. (Ib3f27)
  • Support video cropping (WYSIWYG feature) when ViewPort or CameraController API is used. (Ifbba8, b/201085351)
  • Fixed video captured with front camera fails to record on Huawei P40 lite. (I87c57, b/250807400)

Car App: v1.2.0

November 9, 2022

androidx.car.app:app-*:1.2.0 is released. Version 1.2.0 contains these commits.

  • This is a stabilization release, and there are no changes compared to v1.2.0-rc01.

Compose Animation: v1.4.0-alpha02

November 9, 2022

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

API Changes

  • Add ToolingState to allow tooling to change internal states of Composable (Ie6614)

Compose Compiler: v1.4.0-alpha01

November 9, 2022

androidx.compose.compiler:compiler:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.

Bug Fixes

  • Fix ability to return early from inline composable functions (b/255350755)
  • Fix bug in decoy lowering which broke Kotlin/JS support in Compose (6a40f8).

Compose Foundation: v1.4.0-alpha02

November 9, 2022

androidx.compose.foundation:foundation:1.4.0-alpha02 and androidx.compose.foundation:foundation-layout:1.4.0-alpha02 are released. Version 1.4.0-alpha02 contains these commits.

API Changes

  • awaitFirstDown and waitForUpOrCancellation now accept a PointerEventPass for greater flexibility. (I7579a, b/212091796)
  • Revert beyondBoundCount API from Lazy* APIs (I12197)
  • Introduced parameter in Lazy APIs to compose and place out of viewport items (I69e89, b/172029355)
  • Added minLines parameter to the BasicText and BasicTextField. It allows to set the minimum height of these composables in terms of number of lines (I24294, b/122476634)

Compose Material: v1.4.0-alpha02

November 9, 2022

androidx.compose.material:material-*:1.4.0-alpha02 is released. Version 1.4.0-alpha02 contains these commits.

API Changes

  • awaitFirstDown and waitForUpOrCancellation now accept a PointerEventPass for greater flexibility. (I7579a, b/212091796)
  • Added minLines parameter into material and material3 Text, TextField and OutlinedTextField which allows setting the minimum height of the component in terms of number of lines (I4af1d)
  • Added minLines parameter to the BasicText and BasicTextField. It allows to set the minimum height of these composables in terms of number of lines (I24294, b/122476634)

Compose Material 3: v1.1.0-alpha02

November 9, 2022

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

API Changes

  • awaitFirstDown and waitForUpOrCancellation now accept a PointerEventPass for greater flexibility (also fixes ExposedDropdownMenuBox showing a menu while scrolling).(I7579a, b/212091796)
  • Added minLines parameter into material and material3 Text, TextField and OutlinedTextField which allows setting the minimum height of the component in terms of number of lines (I4af1d)
  • Deprecate the TopAppBarDefaults smallTopAppBarColors function in favor of a new topAppBarColors function that should be used when creating a TopAppBar. (Ie6cb9)
  • Added minLines parameter to the BasicText and BasicTextField. It allows to set the minimum height of these composables in terms of number of lines (I24294, b/122476634)

Bug Fixes

  • Clip the content of a Material3 IconButton and IconToggleBotton to the component's state-layer shape (e.g. circular shape). (I9da8f)
  • Updates Material3 Medium and Large top app bars to apply the same background color across their entire surface, and to allow setting overriding the default colors with transparent color values. (I67659, b/249688556, b/250838918)

Compose Runtime: v1.4.0-alpha02

November 9, 2022

androidx.compose.runtime:runtime-*:1.4.0-alpha02 is released. Version 1.4.0-alpha02 contains these commits.

Compose UI: v1.4.0-alpha02

November 9, 2022

androidx.compose.ui:ui-*:1.4.0-alpha02 is released. Version 1.4.0-alpha02 contains these commits.

API Changes

  • Updated GraphicsLayerScope to expose the current size of the graphicsLayer. This is useful for computing graphicsLayer transformations as a function of the Composable size. (If8c43,b/181387080)
  • Introduced CompositingStrategy to determine when to leverage an offscreen compositing layer for rendering of graphicsLayer content. Auto maintains the default behavior which internally leverages a layer if alpha is applied or a RenderEffect/Overscroll. Always will always introduce an offscreen buffer where ModulateAlpha will avoid leveraging an offscreen buffer and instead will modulate each of the recorded drawing instructions within the graphicsLayer. ModulateAlpha usage will still leverage an offscreen buffer for RenderEffect/Overscroll usages (I25e82, b/256382834)
  • invalidateSubtree() was added to Modifier.Node to allow invalidating entire hierarchies for layout and drawing. (I4bd90)
  • Promote rememberNestedScrollInteropConnection to stable. Introduced the ability to pass a root view to rememberNestedScrollInteropConnection. This can help the custom view better react to scrolling constraints, specially in non-standard views (e.g. ModalBottomSheetDialog). (I9e107)
  • Added ObserverNode interface that can be used by Modifier.Node implementations that need to be notified when a value that they had previously read has changed (I5728b, b/247716483)
  • Added a new constructor to Paint that accepts a native android.graphics.Paint. Also added an extension function toComposePaint() that converts an existing native Paint object to Compose Paint. (Ica91b)
  • Add new FontFamily.Resolver.resolveAsTypeface for use on Android. (I8950b)
  • Add ToolingState to allow tooling to change internal states of Composable (Ie6614)
  • Refactor tooling to have better support for new added animations (I8677b)
  • Added minLines parameter into material and material3 Text, TextField and OutlinedTextField which allows setting the minimum height of the component in terms of number of lines (I4af1d)

Compose Animation: v1.3.1

November 9, 2022

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

Compose Foundation: v1.3.1

November 9, 2022

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

Bug Fixes

  • Fix performance issue in BeyondBoundsLayout (aosp/2255266)
  • ContentInViewModifier will not read layout coordinates unless attached (aosp/2241316)

Compose Material: v1.3.1

November 9, 2022

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

Compose Material 3: v1.0.1

November 9, 2022

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

Bug Fixes

  • Updates Material3 Medium and Large top app bars to apply the same background color across their entire surface, and to allow setting overriding the default colors with transparent color values. (I67659, b/249688556, b/250838918)

Compose Runtime: v1.3.1

November 9, 2022

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

Compose UI: v1.3.1

November 9, 2022

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

DataStore: v1.1.0-alpha01

November 9, 2022

androidx.datastore:datastore-*:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.

New Features

  • Support multi-process use cases where data consistency is guaranteed among DataStore instances across processes. Add MultiProcessDataStoreFactory#create to create such DataStore instances.
  • New Storage interface which allows the underlying storage mechanism for Datastore to be switched out. Implementations for java.io and okio are provided. DataStore factories have new methods which accept this Storage object.

API Changes

  • Change APIs in datastore-core MultiProcessDataStoreFactory to use Storage. (Iac02f)
  • Move public APIs in datastore-multiprocess to datastore-core (I76d7c)
  • Exposed PreferencesSerializer from datastore-preferences-core (I4b788)

Games-Activity: v1.2.2-alpha01

November 9, 2022

androidx.games:games-activity:1.2.2-alpha01 is released. Version 1.2.2-alpha01 contains these commits.

API Changes

  • API now also contains version information in the form of GAMEACTIVITY_PACKED_VERSION. (I287e6)
  • Added onContentRectChanged callback which is called when the rectangle in the window where the content should be placed has changed. (I81396)

Bug Fixes

  • Fixed events buffer overflow. Both inputBuffer->keyEvents and motionEvents are now dynamically-allocated buffers. (Ic00f6)
  • Fails gracefully if out of memory. Added handling of realloc() errors during buffers resizing.

Games Frame Pacing 1.10: v1.10.2-alpha01

November 9, 2022

androidx.games:games-frame-pacing:1.10.2-alpha01 is released. Version 1.10.2-alpha01 contains these commits.

New Features

  • No new changes

Games-Memory-Advice version 1.0.0: v1.0.0-beta03

November 9, 2022

androidx.games:games-memory-advice:1.0.0-beta03 is released. Version 1.0.0-beta03 contains these commits.

New Features

  • No new changes

Games Performance Tuner 1.6: v1.6.1-alpha01

November 9, 2022

androidx.games:games-performance-tuner:1.6.1-alpha01 is released. Version 1.6.1-alpha01 contains these commits.

New Features

  • No new changes

Games-Text-Input: v1.1.2-alpha01

November 9, 2022

androidx.games:games-text-input:1.1.2-alpha01 is released. Version 1.1.2-alpha01 contains these commits.

New Features

  • No new changes

graphics: v1.0.0-alpha02

November 9, 2022

androidx.graphics:graphics-core:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.

API Changes

  • Fixed missing RequiresApi annotation for addTransactionCommitListener which was introduced in Android S (I0a035)
  • Updated onDraw<Front/Double> Buffer callbacks to provide a transform matrix that consumers can pass to their vertex shaders in addition to the current buffer width/height. Consumers are responsible for using these parameters to properly pre-rotate their OpenGL rendering code. (I82f9e)

Bug Fixes

  • Improved graphics latency by pre-rotating buffers before issuing SurfaceControl transactions.
  • Fixed issue where error logs would show error 300d (EGL_BAD_SURFACE).
  • Fixed issue where GLFrontBufferedRenderer would be invalid after the corresponding Activity it was used within was resumed.
  • Increased support for emulators and ChromeOS devices.
  • Fixed issue where the front buffered layer maybe hidden prematurely.

Mediarouter: v1.4.0-alpha01

November 9, 2022

androidx.mediarouter:mediarouter:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.

New Features

  • Add SystemOutputSwitcherDialogController#showDialog to show the system’s output switcher dialog, or the Bluetooth Settings Fragment on Wear devices where the system output switcher is not available. (Ic3d78)

API Changes

  • Add MediaRouteDescriptor.Builder.clearControlFilters (I3a4e1)
  • Add missing MainThread annotations in MediaRouter. (I3ef6e)

Bug Fixes

  • Fix device-specific crash caused by calling MediaRouter.removeUserRoute (b/202931542).
  • Fix group descriptors not receiving volume handling updates consistently (461303).
  • Add broadcast receiver export flags on API 33+ (b2a663).
  • Fix crash caused by receiving invalid route descriptors from the platform (dd5c09).

Navigation: v2.6.0-alpha04

November 9, 2022

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

New Features

  • Custom subclasses of NavType can now override serializeAsValue to serialize a value into a String, allowing both serialization and deserialization (via parseValue) to be entirely encapsulated in the NavType class. StringType now overrides this method to call Uri.encode on the given String. (Ie5213, b/247637434)
  • NavigationUI now provides logs when it fails to navigate via a selected MenuItem. (I2af5a, b/247730357)

Bug Fixes

  • Navigation deep links are now parsed lazily instead of on graph initialization which could improve app performance at start up. (Iab0ab)
  • Fixed crash caused by navigating up after deep linking to a destination with null default arguments. (I51c24, b/243183636)

Dependency Update

  • Navigation's support for Dynamic Feature Modules now depend on the granular Play Feature Delivery Library. (Ib4ddc)
  • Navigation Safe Args now depends on Android Gradle Plugin version 7.3.0. This means it is now only compatible with versions 7.3.0+. (I47e49)

privacysandbox-tools: v1.0.0-alpha01

November 9, 2022

androidx.privacysandbox.tools:tools-*:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.

New Features

ProfileInstaller: v1.3.0-alpha02

November 9, 2022

androidx.profileinstaller:profileinstaller:1.3.0-alpha02 is released. Version 1.3.0-alpha02 contains these commits.

API Changes

  • Added a hook for benchmarks to drop the shader cache, to ensure consistent performance for cold startups, especially when compiling with profiles from warmup iterations. This update is required to measure cold startups using benchmark-macro-junit4:1.2.0-alpha05 or later. For Benchmark library’s API changes, please refer to Benchmark 1.2.0-alpha07 page. (Ia5171, b/231455742)

Room: v2.5.0-beta02

November 9, 2022

androidx.room:room-*:2.5.0-beta02 is released. Version 2.5.0-beta02 contains these commits.

API Changes

  • Fix various APIs that take query arguments from invariant (Array<Any?>) to contravariant (Array<out Any?>) to match Java’s array behavior. (b/253531073)

Security: v1.1.0-alpha04

November 9, 2022

androidx.security:security-crypto:1.1.0-alpha04 and androidx.security:security-crypto-ktx:1.1.0-alpha04 are released. Version 1.1.0-alpha04 contains these commits.

New Features

  • Removed log message “keyset not found, will generate a new one” on first app launch. (b/185219606)
  • Upgraded Tink dependency to version 1.7.0.

API Changes

  • Changes EncryptedFile#openFileInput() to throw a FileNotFoundException, rather than a generic IOException when the requested file doesn't exist. (I80e41, b/148804719)
  • Updated 'MasterKeys' class to require Android M rather than each of its methods. (I8b4b8)
  • Changes all preference getters on EncryptedSharedPreferences (ex #getString, #getInt) to throw SecurityException in rare circumstances where the type of a value can not be matched with one of the defined enum variants. (b/241699427)

Bug Fixes

  • Synchronized security-crypto-ktx library’s minimum SDK version with security-crypto by lowering it to v21 (b/193550375)
  • Fixed concurrency bug when building multiple EncryptedFiles (b/136590547)

External Contribution

Sqlite: v2.3.0-beta02

November 9, 2022

androidx.sqlite:sqlite:2.3.0-beta02, androidx.sqlite:sqlite-framework:2.3.0-beta02, and androidx.sqlite:sqlite-ktx:2.3.0-beta02 are released. Version 2.3.0-beta02 contains these commits.

  • Fix various APIs that take query arguments from invariant (Array<Any?>) to contravariant (Array<out Any?>) to match Java’s array behavior. (b/253531073)

Tracing Perfetto: v1.0.0-alpha07

November 9, 2022

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

  • Reduced JNI overhead of androidx.tracing:tracing-perfetto APIs.

tv: v1.0.0-alpha02

November 9, 2022

androidx.tv:tv-foundation:1.0.0-alpha02 and androidx.tv:tv-material:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.

Bug Fixes

  • Improved scrolling performance when scrolling through a collection of TvLazyRows/TvLazyColumns by reducing the focus search space.(I723a3)

Wear Compose: v1.1.0-rc01

November 9, 2022

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

Bug Fixes

  • We have added baseline profile rules for Placeholders, ScrollAway, RadioButton, Switch, Checkbox, OutlinedButton, OutlinedCompactButton, OutlinedChip and OutlinedCompactChip. (I8249c)
  • We have fixed a bug in Modifier.scrollAway so that if the specified itemIndex is invalid (for example, if that item index is out of range), then the TimeText will now still be displayed. (I2137a)
  • We have updated the SwipeToDismissBox animation to match the platform implementation. After the initial squeeze animation, the screen now slides off to the right once the dismissal has been triggered. (I41d34)
  • As an optimization, we have updated Modifier.scrollAway to only read the scrollState inside the measure block to avoid recomposing the modifier after each remeasure. (I4c6f1)
  • We have added documentation and a sample to placeholders to show the correct ordering for Modifier.placeholder and Modifier.placeholderShimmer when applied to the same composable. (Ie96f4, b/256583229)
  • We have changed the default border width for an OutlinedCompactChip/OutlinedChip from 2.dp to 1.dp to match final UX specs. (Ib3d8e)
  • We have fixed a bug in rememberPickerState where updated inputs were not saved, so that composables were not updated after changes to the inputs. (I49ff6, b/255323197)
  • We have made some UI updates to the placeholders, 1) change the shimmer gradient to 1.5x the screen size, 2) add easing (cubic bezier) of the shimmer progression and 3) speed up the wipe-off animation (250ms). (Id29c1)
  • We have corrected a UI bug in the placeholder wipeOff effect where Chip and Card backgrounds were wiping off slightly early due to not taking the component’s position on screen into account. (I2c7cb)
  • We have updated the placeholder background drawing to merge colors rather than layer them where possible to reduce the risk of alpha blending of the different cropped layers from allowing underlying colors to bleed through at the placeholder background edges. (I2ea26)
  • We have corrected the calculation of ScalingLazyListState.centerItemIndex/centerItemOffset so that if two items sit either side of the viewport center line the one that is closest will be considered as the centerItem. (I30709, b/254257769)
  • We have corrected a bug in the ScalingLazyListState.layoutInfo.visibleItemsInfo which was reporting incorrect offsets during ScalingLazyColumn initialization. Now an empty list will be returned until all list items are visible and have the correct offsets. Check for ScalingLazyListState.layoutInfo.visibleItemsInfo.isNotEmpty() will confirm that the ScalingLazyColumn initialization is complete and items are visible. (I3a3b8)

Wear Watchface: v1.2.0-alpha04

November 9, 2022

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

New Features

  • For Android T we’ve added support for two new complication types, GoalProgressComplicationData and WeightedElementsComplicationData.
  • GoalProgressComplicationData is similar to RangedValueComplicationData but it’s value is allowed to go past the target (for RangedValueComplicationData the value is clamped to the range [min .. max]) which has implications for visual design that might not suit all watch faces.
  • GoalProgressComplicationData adds support for pie charts and similar breakdowns of simple data.
  • We’ve added optional support for ColorRamps to RangedValueComplicationData.
  • For Android T, We've added ComplicationPersistencePolicy and setCachePolicy to ComplicationData which currently allows a provider to control whether a complication is persisted or not (i.e. whether it's cached past reboot). Most complications won't need to set cache control, but doing so can fix corner cases with stale data for some complications that update frequently (e.g. health data complications). We've also added ComplicationDisplayPolicy where DO_NOT_SHOW_WHEN_DEVICE_LOCKED instructs a compatible watch face to not display the complication when the device is locked. (Ic9574)

API Changes

  • GoalProgressComplicationData, WeightedElementsComplicationData and ColorRamp are no longer experimental. (Ica9e2)
  • ComplicationPersistencePolicy and ComplicationDisplayPolicy are now properly marked as T APIs. (I31d88)
  • The deprecated ComplicationSlotOverlay constructor now has DeprecationLevel.WARNING allowing it to be called from java once again. (Ib308c)
  • We've fixed some java compat issues with ComplicationRequestListener, CanvasComplication, ComplicationTapFilter and InteractiveWatchFaceClient by annotating them with @JvmDefaultWithCompatibility (Id94fc)
  • We've removed experimental ProtoLayoutComplicationData and ListComplicationData. The developer story for these was unclear, we hope to revisit in future. (I9df05)
  • We've added a ValueType back to RangedValueComplicationData. WeightedElementsComplicationData now supports a background color. We've removed DiscreteRangedValueComplicationData because it's functionality is a subset of WeightedElementsComplicationData. (I6446c)

Bug Fixes

  • Include the isForScreenShot in the equals and hash code. Make sure the onRenderParametersChanged gets a correct isForScreenshot value (I04a41)
  • Fixed leaks of WatchFaceControlService from headless clients. (e90e00)

Webkit: v1.6.0-alpha03

November 9, 2022

androidx.webkit:webkit:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.

New Features

  • Add ProcessGlobalConfig class enabling users to set process global config before loading WebView. WebView has some process-global configuration parameters that cannot be changed once WebView has been loaded (e.g. the WebView data directory). This class allows apps to set these parameters. The configuration should be set up and applied as early as possible during application startup, to ensure that it happens before any other thread can call a method that loads WebView into the process. (I7c0e0, b/250553687)
  • Adding new API to let applications explicitly send the app package name in the X-Requested-With header to allowlisted origins. The header has traditionally been sent on every request from WebView. (I0adfe, b/226552535)

API Changes

  • The WebSettingsCompat#setAlgorithmicDarkeningAllowed API is supported on all Android versions in WebView version 105 and later. Previous versions of WebView only supported the API on Android Q and later. As a result, this api is no longer marked @RequiresApi(Build.VERSION_CODES.Q). (I3ac1d)

WindowManager: v1.1.0-alpha04

November 9, 2022

androidx.window:window-*:1.1.0-alpha04 is released. Version 1.1.0-alpha04 contains these commits.

New Features

  • Expose a method to determine if an ActivityStack is empty for ActivityEmbedding.
  • Removed experimental API tags from ActivityEmbedding APIs.
  • Hide ActivityRule constructor as the Builder is the preferred way to construct.
  • Add an experimental method to get the WindowInsets on WindowMetrics.
  • Update SplitPlaceholderFinishBehavior to prevent finishing the placeholder. Finishing the placeholder caused some confusing behavior.

API Changes

  • Make val isEmpty public to replace fun isEmpty.
  • Rename ActivityStack parameter activities to activitiesInProcess. (Ia5055)
  • Remove ActivityFilter#matchesClassName and ActivityFilter#matchesClassNameOrWildCard because they are confusing.
  • Add ActivityFilter#componentName abd ActivityFilter#intentAction to allow the caller to distinguish different filters (I41f22)
  • Remove the @Deprecated APIs from the experimental API (I216b3)
  • Remove @ExperimentalWindowApi for Activity Embedding APIs (I69ebe)
  • Hide ActivityRule constructor, use Builder instead. (If4eb6)
  • Add APIs to check if an Activity is part of the ActivityFilter. (Ia43cf)
  • Update API files to reflect changes in WindowMetrics and WindowMetricsCalculatorCompat classes (I667fe)
  • Update ActivityEmbedding Property Javadoc and class name (Ia1386)
  • Adding ActivityEmbedding property tag names to be used in AndroidManifest.xml (Id1ad4)
  • Added new API SplitPlaceholderFinishBehavior and SplitPlaceholderRule.finishPrimaryWithPlaceholder, this replaces existing SplitPlaceholderRule.finishPrimaryWithSecondary which defines when placeholder activites are finished, how associated activites in Activity Embedding should behave. (I64647)

Bug Fixes

  • Introduces the WindowAreaController and API's to enable RearDisplay Mode to move the current window to the display that is aligned with the rear camera. (I388ab)

WorkManager: v2.8.0-beta02

November 9, 2022

androidx.work:work-*:2.8.0-beta02 is released. Version 2.8.0-beta02 contains these commits.

Bug Fixes

  • Fixed equals method in WorkInfo, that previously didn’t take into account new generation information. (4977cc)