Skip to content

Releases: mahozad/androidx-release-notes

2022-06-01

01 Jun 18:50

Choose a tag to compare

Annotation: v1.4.0-rc01

June 1, 2022

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

  • API surface and functionality have been finalized for release.

Appcompat: v1.4.2

June 1, 2022

androidx.appcompat:appcompat:1.4.2 and androidx.appcompat:appcompat-resources:1.4.2 are released. Version 1.4.2 contains these commits.

Bug Fixes

  • Fix crash where AppCompatDelegateImpl made an internal call to ensureSubDecor before the action bar was created (aosp/2048349, b/226648941)

Benchmark: v1.1.0-rc03

June 1, 2022

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

Bug Fixes

Camera-Camera2, Camera-Core, Camera-Lifecycle, & Camera-Video: v1.1.0-rc02

June 1, 2022

androidx.camera:camera-*:1.1.0-rc02 is released. Version 1.1.0-rc02 contains these commits.

Bug Fixes

  • Fixed NullPointerException on ImageCapture.takePicture(). (I92366, b/230454568, b/229766155)
  • Fixed a bug where AssertionError not being handled when getting the CONTROL_ZOOM_RATIO_RANGE characteristic. (Ia248a, b/231701345)

CameraX: v1.2.0-alpha02

June 1, 2022

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

New Features

  • Expose CameraX Zero-Shutter Lag API as experimental.

API Changes

  • Add new capture mode CAPTURE_MODE_ZERO_SHUTTER_LAG in ImageCapture and add isZslSupported in CameraInfo to query the device capability. CAPTURE_MODE_ZERO_SHUTTER_LAG mode is aiming to provide the minimum latency for instant capture. It is implemented based on a ring buffer, which caches intermediate capture results for later reprocessing when the user presses buttons to take pictures. If {@link VideoCapture} is bound or flash mode is not OFF or OEM Extension is ON, this mode will be disabled automatically. (I9ae74)
  • Add ImageAnalysis.getBackgroundExecutor() method (Icc945)

Bug Fixes

  • Fixed ImageCapture takePicture method turns torch off on the reported devices. (Ib5eb5, b/228272227)
  • Fixed a bug where AssertionError not being handled when getting the CONTROL_ZOOM_RATIO_RANGE characteristic.(/Ia248a, b/231701345)

Compose Animation: v1.2.0-beta03

June 1, 2022

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

API Changes

  • Added Experimental Easing Curves for Animations (I64a38)

Compose Compiler: v1.2.0-beta03

June 1, 2022

androidx.compose.compiler:compiler:1.2.0-beta03 is released. Version 1.2.0-beta03 contains these commits.

Compose Foundation: v1.2.0-beta03

June 1, 2022

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

API Changes

  • Added new experimental IntervalList and MutableIntervalList. It allows to represent some list of values via multiple intervals. It will be useful when you want to define your own dsl similar to the one used by LazyColumn where list items can be defined via multiple item/items calls. (I2d05e, b/228580728)

Bug Fixes

  • Clarified the documentation for WindowInsets.ime to state that ime insets are reported as far back as API 23, but only animated on 30+. (Ia7fc0, b/230756508)
  • Pressing the forward delete key when the cursor is at the end of a text field will no longer crash.
  • DeleteSurroundingTextCommand and DeleteSurroundingTextInCodePointsCommand now require their constructor arguments to be non-negative. (Ica8e6, b/199919707)

Compose Material: v1.2.0-beta03

June 1, 2022

androidx.compose.material:material-*:1.2.0-beta03 is released.

Read more

2022-05-25

27 May 02:35
d089702

Choose a tag to compare

Constraintlayout: v2.1.4

May 20, 2022

androidx.constraintlayout:constraintlayout:2.1.4 is released.

For more information, see what's New in 2.1.4 on GitHub.

Constraintlayout: v1.0.1

May 20, 2022

androidx.constraintlayout:constraintlayout-compose:1.0.1 is released.

Please note MotionLayout API is experimental and requires opt in.

For more information, see what's New in Compose 1.0.1 on GitHub.

Constraintlayout: v2.2.0-alpha01

May 20, 2022

androidx.constraintlayout:constraintlayout:2.2.0-alpha01 is released.

Includes a preview of the new Grid helper.

For more information, see what's New in 2.2.0-alpha01 on GitHub.

Constraintlayout: v1.1.0-alpha01

May 20, 2022

androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha01 is released.

Please note MotionLayout API is experimental and requires opt in.

For more information, see what's New in Compose 1.1.0-alpha01 on GitHub.

2022-05-18

18 May 18:48
6c5a062

Choose a tag to compare

Activity: v1.6.0-alpha04

May 18, 2022

androidx.activity:activity:1.6.0-alpha04 and androidx.activity:activity-ktx:1.6.0-alpha04 are released.

Bug Fixes

  • Fixed an error in PickVisualMediaRequest where attempting to create a request, either via the Builder or the top level Kotlin function, would result in a stack overflow.
  • Integrated changes in Android 13 Dev Beta 2 into ComponentDialog.

Annotation: v1.4.0-beta01

May 18, 2022

androidx.annotation:annotation:1.4.0-beta01 is released. Version 1.4.0-beta01 contains these commits.

  • No changes since the last alpha. API surface has been locked down for Beta release.

Appcompat: v1.6.0-alpha04

May 18, 2022

androidx.appcompat:appcompat:1.6.0-alpha04 and androidx.appcompat:appcompat-resources:1.6.0-alpha04 are released. This library was developed against a private pre-release branch, so no commit log is available.

API Changes

  • Add an API to override SwitchCompat width restriction for use by MDC-Android

Bug Fixes

  • Avoid managed configuration when config changes outside of attachBaseConfig

CameraX: v1.2.0-alpha01

May 18, 2022

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

New Features

  • New library camera-mlkit-vision is launched

Bug Fixes

  • Fixed QualitySelector fails to record a UHD video when a fallback strategy is enabled. The issue happens when VideoCapture is bound with ImageCapture and Preview on a FULL or higher hardware level camera device. A fallback strategy of QualitySelector causes VideoCapture incorrectly to get a FHD resolution. UHD resolution is actually supported for this use case combination and should be adopted. (I0e788, b/230651237)
  • Fixed NullPointerException on ImageCapture.takePicture(). (I92366, b/230454568, b/229766155)
  • Fix async pause behavior of androidx.camera.video.Recorder (Ia8ce8)

Compose Animation: v1.2.0-beta02

May 18, 2022

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

Compose Compiler: v1.2.0-beta02

May 18, 2022

androidx.compose.compiler:compiler:1.2.0-beta02 is released. Version 1.2.0-beta02 contains these commits.

Compose Foundation: v1.2.0-beta02

May 18, 2022

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

  • Downloadable font resolution that does not change the layout size of Text or TextField previously would not redraw, leading to stale font display. This bugfix ensures that text layout always triggers redraw (b/229727404). (I1d49e, b/229727404)

Compose Material: v1.2.0-beta02

May 18, 2022

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

Compose Material 3: v1.0.0-alpha12

May 18, 2022

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

Bug Fixes

Compose Runtime: v1.2.0-beta02

May 18, 2022

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

Compose UI: v1.2.0-beta02

May 18, 2022

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

API Changes

  • Reusing functionality in other preview types (I19f39)

Bug Fixes

  • ViewCompositionStrategy.DisposeOnDetachedFromWindowIfNotInPoolingContainer has been renamed to DisposeOnDetachedFromWindowOrReleasedFromPool to better reflect that when disposals do occur, rather than simply when they do not occur. (If15ca)

Core and Core-ktx: v1.9.0-alpha04

May 18, 2022

androidx.core:core:1.9.0-alpha04 and androidx.core:core-ktx:1.9.0-alpha04 are released. Version 1.9.0-alpha04 is built against a pre-release Android SDK and does not have a publicly-available commit history.

Bug Fixes

  • Revert deprecation of BuildCompat.isAtLeastT() and accompanying SDK_INT checks

Core Google Shortcuts: v1.0.1

May 18, 2022

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

Bug Fixes

  • Fix proguard rule to prevent a method from being unintentionally removed

Core Splashscreen: v1.0.0-rc01

May 18, 2022

androidx.core:core-splashscreen:1.0.0-rc01 is released. Version 1.0.0-rc01 contains these commits.

  • No changes since the last beta release.

Core and Core-ktx: v1.8.0-rc02

May 18, 2022

androidx.core:core:1.8.0-rc02 and androidx.core:core-ktx:1.8.0-rc02 are released.

Read more

2022-05-10

11 May 18:48

Choose a tag to compare

Activity: v1.5.0-rc01

May 11, 2022

androidx.activity:activity:1.5.0-rc01, androidx.activity:activity-compose:1.5.0-rc01, and androidx.activity:activity-ktx:1.5.0-rc01 are released with no changes from 1.5.0-beta01. Version 1.5.0-rc01 contains these commits.

Benchmark: v1.1.0-rc02

May 11, 2022

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

  • Note that this release includes a behavior change, as apps are now fully reinstalled in between each benchmark to ensure accurate measurements.

Bug Fixes/Behavior Changes

  • Fixed an issue where app compilation was not correctly reset between macrobenchmarks, and not reset at all on unrooted builds. This fixes many cases where running multiple tests would result in CompilationMode having little to no effect on measurements. To workaround this problem, the target app is now fully reinstalling each test method, which will clear application data between each macrobenchmark. (I31c74, b/230665435)

  • As this prevents apps from setting up state before tests, it is now possible to skip compilation / reinstallation to enable working around this. You can for example fully compile the target with a shell command cmd package compile -f -m speed <package>, and then bypass macrobenchmark's compilation step.

    E.g. in Your macrobenchmark's build.gradle:

    android {
        defaultConfig {
            testInstrumentationRunnerArgument 'androidx.benchmark.compilation.enable, 'false'
        }
    }
    

    Or from the Gradle command line:

    ./gradlew macrobenchmark:cC -P android.testInstrumentationRunnerArguments.androidx.benchmark.compilation.enable=false
    
  • Made it possible to share a module between macrobenchmarks and baseline profile generating tests by adding androidx.benchmark.enabledRules instrumentation argument. Pass in 'Macrobenchmark', or 'BaselineProfile' to just run one type of test, e.g. when generating BaselineProfiles on an emulator. (I756b7, b/230371561)

    E.g. in Your macrobenchmark's build.gradle:

    android {
        defaultConfig {
            testInstrumentationRunnerArgument 'androidx.benchmark.enabledRules', 'BaselineProfile'
        }
    }
    

    Or from the Gradle command line:

    ./gradlew macrobenchmark:cC -P android.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile
    

Camera-Camera2, Camera-Core, Camera-Lifecycle, & Camera-Video: v1.1.0-rc01

May 11, 2022

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

New Features

  • Release the first RC version for camera-video, camera-view, and camera-extension

Bug Fixes

  • Fixed an issue where the video codec wasn't released when VideoCapture<Recorder> was unbound, causing subsequent uses of VideoCapture<Recorder> to fail on recording with MediaCodec.CodecException, especially on API 21-22 devices. (Ie7f68)
  • Fix captured images of CameraExtensionsActivity do not be deleted in ImageCaptureTest

Compose Animation: v1.2.0-beta01

May 11, 2022

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

  • This is the first beta release of 1.2! There are no changes since the last alpha.

Compose Compiler: v1.2.0-beta01

May 11, 2022

androidx.compose.compiler:compiler:1.2.0-beta01 is released. Version 1.2.0-beta01 contains these commits.

  • This is the first beta release of 1.2! There are no changes since the last alpha.

New Features

  • Added support for Kotlin 1.6.21

Compose Foundation: v1.2.0-beta01

May 11, 2022

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

New Features

  • This is the first beta release of 1.2!

API Changes

  • Added experimental BeyondBoundsInterval that can be used by custom implementations of LazyList when they layout items beyond visible bounds (Ifabfb, b/184670295)
  • LineHeightBehavior is renamed as LineHeightStyle
  • LineVerticalAlignment is renamed as LineHeightStyle.Alignment
  • Renames LineHeightTrim is renamed as LineHeightStyle.Trim
  • Default constructor values from LineHeightStyle is removed (I582bf, b/181155707)
  • Added default values for the optional members of LazyLayoutItemProvider interface. (Iba8a0)
  • In the LazyLayoutItemProvider api instead of a factory returning the composable lambda by index we now have a simpler composable function Item accepting the index. (Id2196)
  • LazyLayoutItemsProvider is renamed to LazyLayoutItemProvider (I0638c)
  • LazyLayoutItemsProvider.itemsCount is renamed to itemCount (Id409c)
  • Added Brush to TextStyle and SpanStyle to provide a way to draw text with gradient coloring. (I53869, b/187839528)
  • trimFirstLineTop, trimLastLineBottom attributes of LineHeightBehavior changed into a single enum: LineHeightTrim. LineHeightTrim have values of 4 states defined by two booleans: FirstLineTop
Read more

2022-04-28

29 Apr 18:48

Choose a tag to compare

Runner 1.5.0: runner 1.5.0-alpha03

April 28, 2022

androidx.test:runner:1.5.0-alpha03 is released.

Bug fixes

  • Report the process crash immediately in the orchestrator instrumentation listener.

Rules 1.4.1: rules 1.4.1-alpha06

April 28, 2022

androidx.test:rules:1.4.1-alpha06 is released.

Monitor aka Platform 1.6.0: monitor 1.6.0-alpha03

April 28, 2022

androidx.test:monitor:1.6.0-alpha03 is released.

Bug fixes

  • Remove 'Activities that are still in CREATED to STOPPED' log spam

Espresso 3.5.0: Espresso 3.5.0-alpha06

April 28, 2022

The following artifacts were released:

  • androidx.test.espresso:espresso-accessibility:3.5.0-alpha06
  • androidx.test.espresso:espresso-core:3.5.0-alpha06
  • androidx.test.espresso:espresso-contrib:3.5.0-alpha06
  • androidx.test.espresso:espresso-idling-resource:3.5.0-alpha06
  • androidx.test.espresso:espresso-intents:3.5.0-alpha06
  • androidx.test.espresso:espresso-remote:3.5.0-alpha06
  • androidx.test.espresso:espresso-web:3.5.0-alpha06
  • androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha06
  • androidx.test.espresso.idling:idling-net:3.5.0-alpha06

Bug Fixes

  • Remove unncessary interruptEspressoTasks warning logs for each Espresso interaction on Robolectric.

Test:

JUnit Extensions 1.1.4: ext.junit 1.1.4-alpha06

April 28, 2022

androidx.test.ext:junit:1.1.4-alpha06 and androidx.test.ext:junit-ktx:1.1.4-alpha06 are released.

Bug Fixes

  • Minor fix to the AndroidJUnit4 javadoc.

Truth Extensions 1.5.0: ext.truth 1.5.0-alpha06

April 28, 2022

androidx.test.ext:truth:1.5.0-alpha06 is released.

Services 1.4.2: services 1.4.2-alpha03

April 28, 2022

androidx.test.services:test-services:1.4.2-alpha03 androidx.test.services:storage:1.4.2-alpha03 are released.

Orchestrator 1.4.2: orchestrator 1.4.2-alpha03

April 28, 2022

androidx.test:orchestrator:1.4.2-alpha03 is released.

2022-04-26

27 Apr 18:47

Choose a tag to compare

Activity: v1.6.0-alpha03

April 20, 2022

androidx.activity:activity:1.6.0-alpha03, androidx.activity:activity-compose:1.6.0-alpha03, and androidx.activity:activity-ktx:1.6.0-alpha03 are released.

  • Note: This version will only compile against the Android 13 Developer Beta 1 SDK.

New Features

  • 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 changes in Android 13 Dev Beta 1 into ComponentActivity.

Appcompat: v1.6.0-alpha03

April 20, 2022

androidx.appcompat:appcompat:1.6.0-alpha03 and androidx.appcompat:appcompat-resources:1.6.0-alpha03 are released.

This version requires Android 13 Beta 1 to compile and is not guaranteed to be runtime-compatible with future developer previews.

New Features

  • Support for app-wide custom language selection via AppCompatDelegate.setApplicationLocales(). Delegates to platform implementation on API 33 and above.

Core and Core-ktx: v1.9.0-alpha03

April 20, 2022

androidx.core:core:1.9.0-alpha03 and androidx.core:core-ktx:1.9.0-alpha03 are released. Version 1.9.0-alpha04 contains all commits from 1.8.0-beta01, but has been built against Android 13 Beta 1.

This version requires Android 13 Beta 1 to compile and is not guaranteed to be runtime-compatible with future developer previews.

2022-04-20

20 Apr 18:44

Choose a tag to compare

Activity: v1.5.0-beta01

April 20, 2022

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

Dependency updates

Benchmark: v1.1.0-rc01

April 20, 2022

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

Bug Fixes

  • Baseline profile output links in Android Studio now use a unique file name. This way the output always reflects the latest results of using a BaselineProfileRule. ( aosp/2057008, b/228203086 )

Compose Animation: v1.2.0-alpha08

April 20, 2022

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

Compose Compiler: v1.2.0-alpha08

April 20, 2022

androidx.compose.compiler:compiler:1.2.0-alpha08 is released. Version 1.2.0-alpha08 contains these commits.

Compose Foundation: v1.2.0-alpha08

April 20, 2022

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

API Changes

  • Display all available weights for systems fonts on Android when using FontFamily.SansSerif. This will use fallback font names like sans-serif-medium internally on API 21-28. This is a behavior change as previously only weights 400 and 700 were supported on API 21-28. (I380fe, b/156048036, b/226441992)
  • Paragraph and MultiParagraph are now accepting Constraints parameter. Passing Constraints.maxHeight is a no-op at the moment but will allow to do some calculation in the future, like ellipsizing based on the height. (I6afee, b/168720622)
  • SubcomposeSlotReusePolicy.getSlotsToRetain() now accepts a custom MutableSet-like class which doesn't allow adding new items in it. (Icd314)
  • Partial consumption (down OR position) has been deprecated in PointerInputChange. You can use consume() to consume the change completely. You can use isConsumed to determine whether or not someone else has previously consumed the change.
  • PointerInputChange::copy() now always makes a deep copy. It means that copies of PointerInputChange will be consumed once one of the copies is consumed. If you want to create an unbound PointerInputChange, use constructor instead. (Ie6be4, b/225669674)
  • New experimental LazyLayout API is introduced. This allows you to build your own components like LazyColumn of LazyVerticalGrid. Note that the API is in its early stages and can be changed in the future releases. (Iba2bc, b/166591700)
  • AndroidFont now takes typefaceLoader as a constructor parameter. (I2c971)
  • WindowInsets companion now exposes the visibility (whether they are on the screen, regardless of whether they intersect with the window) and the size they could be if they are available on the device, but not currently active. (I65182, b/217770337)

Compose Material: v1.2.0-alpha08

April 20, 2022

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

API Changes

  • Partial consumption (down OR position) has been deprecated in PointerInputChange. You can use consume() to consume the change completely. You can use isConsumed to determine whether or not someone else has previously consumed the change.
  • PointerInputChange::copy() now always makes a deep copy. It means that copies of PointerInputChange will be consumed once one of the copies is consumed. If you want to create an unbound PointerInputChange, use constructor instead. (Ie6be4, b/225669674)

Compose Material 3: v1.0.0-alpha10

April 20, 2022

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

New Features

  • material3-window-size-class is a new library that provides support for window size classes: a set of opinionated viewport breakpoints for you to design, develop, and test resizable application layouts against. You can use calculateWindowSizeClass to retrieve a window size class instance, which you can use to determine how your UI should appear, such as showing a navigation rail instead of bottom navigation for larger window sizes. For more information and sample usage see the API reference documentation for WindowSizeClass. For more information on window size class definitions, see the public guidance on supporting different screen sizes.

API Changes

  • Adds default FAB elevation for BottomAppBar, removes trailing lambda from BottomAppBar with FAB. (I92c47)
  • Adds Material3 FilledIconButton, FilledTonalIconButton, and OutlinedIconButton. (Ib2bda)
  • Updates Material 3 Snackbar API to accept color values for the optional action and dismiss-action...
Read more

2022-04-05

06 Apr 18:44

Choose a tag to compare

Activity: v1.5.0-alpha05

April 6, 2022

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

Bug Fixes

  • ComponentActivity's onPanelClosed() now calls the super onPanelClosed() as well, fixing an issue where the onContextMenuClosed method would not be called. (Ib6f77)

Appcompat: v1.5.0-alpha01

April 6, 2022

androidx.appcompat:appcompat:1.5.0-alpha01 and androidx.appcompat:appcompat-resources:1.5.0-alpha01 are released. Version 1.5.0-alpha01 contains these commits.

API Changes

  • Added a new API to expose switch thumb's position to subclasses (I9bfb4)
  • Updated nullability to match Tiramisu DP2 (I0cbb7)
  • Backported compound drawable tinting to TextView-derived widgets (Idf98c, b/165822337)
  • AppCompatDialog now extends ComponentDialog for compatibility with OnBackPressedDispatcher (Id9b91, b/217620781)
  • SearchView.onQueryRefine() is now protected visibility to allow overrides (I6cce0, b/212882845)

Bug Fixes

  • AppCompat Toolbar now calls MenuHostHelper's onPrepareMenu() API. (I9b9b5, b/227376894)
  • AppCompatEditText, AppCompatAutoCompleteEditText, AppCompatMultiAutoCompleteEditText will no longer reset clickable or longClickable in the constructor when set in XML (Ic5066, b/221094907)
  • AppCompatEditText, AppCompatAutoCompleteTextView, and AppCompatMultiAutoCompleteTextView will not call overridden setKeyListener during the constructor (I5c13a, b/208480173)
  • Appcompat will not wrap instances of NumberKeyListener passed to setKeyListener, allowing TextView to correctly configure the locale on NumberKeyListeners (Ibf113, b/207119921)
  • Fixed issue with all NumberKeyListener subclasses introduced in AppCompat 1.4.0 that allowed unexpected characters such as punctuation to be input (Iede7a, b/207119921)

Benchmark: v1.1.0-beta06

April 6, 2022

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

Bug Fixes

  • Fix trace recording crash on API 21/22 (If7fd6, b/227509388)
  • Overhaul activity launch completion detection to fix 'Unable to read any metrics' exception in startup macrobenchmarks. (Ia517c)

Camera-Camera2, Camera-Core, Camera-Lifecycle, & Camera-Video: v1.1.0-beta03

April 6, 2022

androidx.camera:camera-*:1.1.0-beta03 is released. Version 1.1.0-beta03 contains these commits.

API Changes

  • Made CaptureRequestOptions constructor restricted. (I261b6)
  • Added an experimental API for using CameraController with external image processing libraries. e.g. MLKit (I4ea71)

Bug Fixes

  • Fixed the issue that preview becomes sideway in PreviewView when activity is not restarted after rotating devices in multi-window. (I1ea36, b/223488673)
  • Fix a multi-window issue that when focus changes back to the app it fails to resume the camera when (1) other high priority app opens a different camera (2) the device is Samsung Android 12 devices. (I7e9f2)
  • Workaround included for devices that crash when checking availability of flash. These devices will not have torch available. (If26a3, b/216667482)
  • Fix AbstractMethodError issue happened when apps use extensions and enable proguard. (I7cbaf, b/222726805)
  • Force disable bokeh extension mode on Motorola razr 5G device which will cause black preview screen issue. (I35d49)
  • Fixed audio/video out of sync after pause and resume on some Samsung devices pre-API 29. (I64622, b/202798609, b/202798572)
  • Fixed audio/video out of sync after pause and resume on Sony G3125. (I2a1a5, b/202799148)
  • Fixed a crash when the Recorder encountered an InvalidConfigException. However, this fix only prevents app from crashing, but doesn't resolve the cause of the InvalidConfigException. If the Recorder still cannot be configured, applications will receive error callback when it starts recording. (I89c29, b/213617227)

External Contribution

  • updated :compose:ui:ui-test api (updateApi) due to test-coroutines-lib migration (
Read more

2022-03-23

23 Mar 18:45

Choose a tag to compare

Activity: v1.6.0-alpha01

March 23, 2022

androidx.activity:activity:1.6.0-alpha01, androidx.activity:activity-compose:1.6.0-alpha01, and androidx.activity:activity-ktx:1.6.0-alpha01 are released.

  • Note: This version will only compile against the Android 13 Developer Preview 2 SDK.

New Features

  • Integrated changes in Android 13 Dev Preview 2 into ComponentActivity.

Activity: v1.5.0-alpha04

March 23, 2022

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

Bug Fixes

  • SavedStateViewFactory now supports using CreationExtras even when it was initialized with a SavedStateRegistryOwner. If extras are provided, the initialized arguments are ignored. (I6c43b, b/224844583)

Benchmark: v1.1.0-beta05

March 23, 2022

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

Bug Fixes

Car App: v1.2.0-rc01

March 23, 2022

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

  • This is a stabilization release, and there are no API changes compared to v1.2.0-beta02. New experimental features (API level 5) have been added that are intended for future Android Auto and Android Automotive releases.

Bug Fixes

  • Fixed an exception that happens if the screen stack is modified after State.DESTROYED. (I3c8eb)
  • Updated CarSensors API to indicate that they are not implemented for AAOS (Idd57b)
  • Updated PlaceListMapTempalte.Builder#setCurrentLocationEnabled to indicate that ACCESS_COARSE_LOCATION would be sufficient for the feature (I510c2)
  • Made exit number optional for roundabout-with-angle maneuver types (Ife7d1)

Compose Animation: v1.2.0-alpha06

March 23, 2022

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

API Changes

  • Updated parsing of vector drawables to support auto mirroring to flip the content of a VectorPainter if the current layout direction is RTL. (I79cd9, b/185760237)

Bug Fixes

  • Updated Vector graphics APIs to use the proper composable annotation @VectorComposable instead of @UiComposable (I942bc)

Compose Compiler: v1.2.0-alpha06

March 23, 2022

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

Compose Foundation: v1.2.0-alpha06

March 23, 2022

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

API Changes

  • Added RequestFocus semantics action to request focus on the focusable target. (I17b71)
  • FocusOrder has now been merged into FocusProperties and focusProperties() now has all the capabilities of focusOrder(). FocusOrder and focusOrder() have been deprecated. focusOrder() that accepts a focusRequester should be replaced with a focusRequester() modifier in combination with focusProperties(). This allows the modifiers to have a stronger separation of concerns. (I601b7)
  • WindowInsets.asPaddingValues(Density) was added to allow developers to do the conversion without needing to be in composition. (I94c35)
  • Updated parsing of vector drawables to support auto mirroring to flip the content of a VectorPainter if the current layout direction is RTL. (I79cd9, b/185760237)

Bug Fixes

  • Scroll modifiers (Modifier.verticalScroll(),Modifier.horizontalScroll(), and Modifier.scrollable()) will now scroll to keep the focused composable visible if the scroll area is resized and the focused composable was previously visible.
  • TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when inside a non-lazy scrollable and the soft input mode is ADJUST_RESIZE. (I4a485, b/190539358, b/192043120, b/216842427)

Compose Material: v1.2.0-alpha06

March 23, 2022

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

API Changes

  • Updates to the clickable Card API to follo...
Read more

2022-03-18

21 Mar 18:45

Choose a tag to compare

Runner 1.5.0: runner 1.5.0-alpha02

Mar 21, 2022

androidx.test:runner:1.5.0-alpha02 is released.

Bug Fixes

  • Ensure Trace.endSection is called before Instrumentation#finish.

Rules 1.4.1: rules 1.4.1-alpha05

Mar 21 2022

androidx.test:rules:1.4.1-alpha05 is released.

Monitor aka Platform 1.6.0: monitor 1.6.0-alpha02

Mar 21, 2022

androidx.test:monitor:1.6.0-alpha02 is released.

Bug fixes

  • Make HardwareRendererCompat logging less severe.
  • Ensure Trace.endSection is called before Instrumentation#finish.

Espresso 3.5.0: Espresso 3.5.0-alpha05

Mar 21, 2022

The following artifacts were released:

  • androidx.test.espresso:espresso-accessibility:3.5.0-alpha05
  • androidx.test.espresso:espresso-core:3.5.0-alpha05
  • androidx.test.espresso:espresso-contrib:3.5.0-alpha05
  • androidx.test.espresso:espresso-idling-resource:3.5.0-alpha05
  • androidx.test.espresso:espresso-intents:3.5.0-alpha05
  • androidx.test.espresso:espresso-remote:3.5.0-alpha05
  • androidx.test.espresso:espresso-web:3.5.0-alpha05
  • androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha05
  • androidx.test.espresso.idling:idling-net:3.5.0-alpha05

Bug Fixes

  • Remove timeout in CloseKeyboardAction when running under Robolectric

Core 1.4.1: Core Core-ktx 1.4.1-alpha05

Mar 21, 2022

androidx.test:core:1.4.1-alpha05 and androidx.test:core-ktx:1.4.1-alpha05 are released.

JUnit Extensions 1.1.4: ext.junit 1.1.4-alpha05

Mar 21, 2022

androidx.test.ext:junit:1.1.4-alpha05 and androidx.test.ext:junit-ktx:1.1.4-alpha05 are released.

Truth Extensions 1.5.0: ext.truth 1.5.0-alpha05

Mar 21, 2022

androidx.test.ext:truth:1.5.0-alpha05 is released.

Bug fixes

  • Make Intent matchers fail explicitly for null intent

Services 1.4.2: services 1.4.2-alpha02

Mar 21, 2022

androidx.test.services:test-services:1.4.2-alpha02 androidx.test.services:storage:1.4.2-alpha02 are released.

Orchestrator 1.4.2: orchestrator 1.4.2-alpha02

Mar 21, 2022

androidx.test:orchestrator:1.4.2-alpha02 is released.