Releases: mahozad/androidx-release-notes
2022-03-08
Compose Animation: v1.2.0-alpha05
March 9, 2022
androidx.compose.animation:animation:1.2.0-alpha05, androidx.compose.animation:animation-core:1.2.0-alpha05, and androidx.compose.animation:animation-graphics:1.2.0-alpha05 are released. Version 1.2.0-alpha05 contains these commits.
API Changes
- Hooray! Compose animation now supports 'Animator duration scale' setting from Developer Options. (I5a4fc, b/161675988)
 
Compose Compiler: v1.2.0-alpha05
March 9, 2022
androidx.compose.compiler:compiler:1.2.0-alpha05 is released. Version 1.2.0-alpha05 contains these commits.
Compose Foundation: v1.2.0-alpha05
March 9, 2022
androidx.compose.foundation:foundation:1.2.0-alpha05 and androidx.compose.foundation:foundation-layout:1.2.0-alpha05 are released. Version 1.2.0-alpha05 contains these commits.
API Changes
LazyVerticalGridandLazyHorizontalGridare now stable. (I307c0)LazyGridItemInfo.Unknownwas replaced with separateLazyGridItemInfo.UnknownRowandLazyGridItemInfo.UnknownColumn(I56d51)LazyVerticalGrid/LazyHorizontalGridand all related apis were moved into.gridsubpackage. Please update your imports fromandroidx.compose.foundation.lazytoandroidx.compose.foundation.lazy.grid. (I2d446, b/219942574)- Text: 
includeFontPaddingis now turned off by default. The clipping issues as a result ofincludeFontPadding=falseis handled and no clipping should occur for tall scripts. (I31c84, b/171394808) - Measured interface now exposes parentData property (I3313f)
 - Introduced experimental 
Modifier.onFocusedBoundsChangedto allow observing the bounds of child focusables. (I14283, b/220030968, b/190539358, b/192043120, b/216842427) - LazyHorizontalGrid was added. (I61ae7, b/191238807)
 - Added a new 
LazyVerticalGridAPI to define cross axis sizes (I17723) - Added FocusGroup modifier (I64bc0, b/213508274, b/184670295)
 
Bug Fixes
WindowInsets.toString()will now show the correct values. (I1585d)
External Contribution
- Updated to use Kotlinx coroutines 1.6.0 (I3366d)
 
Compose Material: v1.2.0-alpha05
March 9, 2022
androidx.compose.material:material-*:1.2.0-alpha05 is released. Version 1.2.0-alpha05 contains these commits.
API Changes
LazyVerticalGridandLazyHorizontalGridare now stable. (I307c0)LazyVerticalGrid/LazyHorizontalGridand all related apis were moved into .grid subpackage. Please update your imports from androidx.compose.foundation.lazy to androidx.compose.foundation.lazy.grid. (I2d446, b/219942574)- Reverted previous change of relying solely on a View for 
WindowInsetsControllerCompat, and again require a Window which is required for managing some window flags. DeprecatedViewCompat.getWindowInsetsControllerin favor ofWindowCompat.getInsetsControllerto ensure that the correct Window is used (such as if the View is in a dialog). (I660ae, b/219572936) - Text:
includeFontPaddingis now turned off by default. The clipping issues as a result ofincludeFontPadding=falseis handled and no clipping should occur for tall scripts. (I31c84, b/171394808) - Added a new 
LazyVerticalGridAPI to define cross axis sizes (I17723) 
Compose Material 3: v1.0.0-alpha07
March 9, 2022
androidx.compose.material3:material3:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits.
API Changes
- Updates to Material 3 Surface API that brings back the overloaded functions for clickable Surfaces, as well as adding a function to support selectable and toggleable Surfaces. (I4bf18)
 LazyVerticalGridandLazyHorizontalGridare now stable. (I307c0)LazyVerticalGrid/LazyHorizontalGridand all related apis were moved into .grid subpackage. Please update your imports from androidx.compose.foundation.lazy to androidx.compose.foundation.lazy.grid. (I2d446)- Reverted previous change of relying solely on a View for 
WindowInsetsControllerCompat, and again require a Window which is required for managing some window flags. DeprecatedViewCompat.getWindowInsetsControllerin favor ofWindowCompat.getInsetsControllerto ensure that the correct Window is used (such as if the View is in a dialog). (I660ae, b/219572936) - Added a new 
LazyVerticalGrid 
2022-02-28
Media3: v1.0.0-alpha02
March 2, 2022
androidx.media3:media3-*:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
This corresponds to the ExoPlayer 2.17.0 release.
- Core Library: 
  
- Add protected method 
DefaultRenderersFactory.getCodecAdapterFactory()so that subclasses ofDefaultRenderersFactorythat overridebuildVideoRenderers()orbuildAudioRenderers()can access the codec adapter factory and pass it toMediaCodecRendererinstances they create. - Propagate ICY header fields 
nameandgenretoMediaMetadata.stationandMediaMetadata.genrerespectively so that they reach the app viaPlayer.Listener.onMediaMetadataChanged()(#9677). - Remove null keys from 
DefaultHttpDataSource#getResponseHeaders. - Sleep and retry when creating a 
MediaCodecinstance fails. This works around an issue that occurs on some devices when switching a surface from a secure codec to another codec (#8696). - Add 
MediaCodecAdapter.getMetrics()to allow users obtain metrics data fromMediaCodec. (#9766). - Fix Maven dependency resolution (#8353).
 - Disable automatic speed adjustment for live streams that neither have low-latency features nor a user request setting the speed (#9329).
 - Rename 
DecoderCounters#inputBufferCounttoqueuedInputBufferCount. - Make 
SimpleExoPlayer.renderersprivate. Renderers can be accessed viaExoPlayer.getRenderer. - Updated some 
AnalyticsListener.EventFlagsconstant values to match values inPlayer.EventFlags. - Split 
AnalyticsCollectorinto an interface and default implementation to allow it to be stripped by R8 if an app doesn't need it. 
 - Add protected method 
 - Track selection: 
  
- Support preferred video role flags in track selection (#9402).
 - Update video track selection logic to take preferred MIME types and role flags into account when selecting multiple video tracks for adaptation (#9519).
 - Update video and audio track selection logic to only choose formats for adaptive selections that have the same level of decoder and hardware support (#9565).
 - Update video track selection logic to prefer more efficient codecs if multiple codecs are supported by primary, hardware-accelerated decoders (#4835).
 - Prefer audio content preferences (for example, the "default" audio track or a track matching the system locale language) over technical track selection constraints (for example, preferred MIME type, or maximum channel count).
 - Fix track selection issue where overriding one track group did not disable other track groups of the same type (#9675).
 - Fix track selection issue where a mixture of non-empty and empty track overrides is not applied correctly (#9649).
 - Prohibit duplicate 
TrackGroups in aTrackGroupArray.TrackGroups can always be made distinguishable by setting anidin theTrackGroupconstructor. This fixes a crash when resuming playback after backgrounding the app with an active track override (#9718). - Amend logic in 
AdaptiveTrackSelectionto allow a quality increase under sufficient network bandwidth even if playback is very close to the live edge (#9784). 
 - Video: 
  
- Fix decoder fallback logic for Dolby Vision to use a compatible H264/H265 decoder if needed.
 
 - Audio: 
  
- Fix decoder fallback logic for Dolby Atmos (E-AC3-JOC) to use a compatible E-AC3 decoder if needed.
 - Change 
AudioCapabilitiesAPIs to require passing explicitlyAudioCapabilities.DEFAULT_AUDIO_CAPABILITIESinstead ofnull. - Allow customization of the 
AudioTrackbuffer size calculation by injecting anAudioTrackBufferSizeProvidertoDefaultAudioSink. (#8891). - Retry 
AudioTrackcreation if the requested buffer size was > 1MB. (#9712). 
 - Extractors:
 - Text: 
  
- Add a 
MediaItem.SubtitleConfiguration.idfield which is propagated to theFormat.idfield of the subtitle track created from the configuration (#9673). - Add basic support for WebVTT subtitles in Matroska containers (#9886).
 - Prevent 
Cea708Decoderfrom reading more than the declared size of a service block. 
 - Add a 
 - DRM: 
  
- Remove 
playbackLooperfromDrmSessionManager.(pre)acquireSession. When aDrmSessionManageris used by an app in a customMediaSource, theplaybackLooperneeds to be passed toDrmSessionManager.setPlayerinstead. 
 - Remove 
 - Ad playback / IMA: 
  
- Add support for IMA Dynamic Ad Insertion (DAI) (#8213).
 - Add a method to 
AdPlaybackStateto allow resetting an ad group so that it can be played again (#9615). - Enforce playback speed of 1.0 during ad playback (#9018).
 - Fix issue where an ad group that failed to load caused an immediate playback reset (#9929).
 
 - UI:
 - DASH: 
  
- Add parsed essential and supplemental properties to the 
Representation(#9579). - Support the 
forced-subtitletrack role (#9727). - Stop interpreting the 
maintrack role asC.SELECTION_FLAG_DEFAULT. - Fix base URL exclusion logic for manifests that do not declare the DVB namespace (#9856).
 - Support relative 
MPD.LocationURLs (#9939). 
 - Add parsed essential and supplemental properties to the 
 - HLS: 
  
- Correctly populate
 
 
2022-02-23
Activity: v1.5.0-alpha03
February 23, 2022
androidx.activity:activity:1.5.0-alpha03, androidx.activity:activity-compose:1.5.0-alpha03, and androidx.activity:activity-ktx:1.5.0-alpha03 are released. Version 1.5.0-alpha03 contains these commits.
API Changes
- You can now pass 
CreationExtrasto the activityby viewModels()function (I6a3e6, b/217600303) 
Appcompat: v1.6.0-alpha01
February 23, 2022
androidx.appcompat:appcompat:1.6.0-alpha01 and androidx.appcompat:appcompat-resources:1.6.0-alpha01 are released. Version 1.6.0-alpha01 was built from an internal branch and does not have publicly-visible commits.
This version requires Android Tiramisu DP1 to compile and is not guaranteed to be runtime-compatible with future developer previews.
New Features
- Added support for customizing application locales. See 
AppCompatDelegate.setApplicationLocales(LocaleListCompat)for more information. Provides backward compatibility for the new per-language preferences API available in Android 13. 
Benchmark: v1.1.0-beta04
February 23, 2022
androidx.benchmark:benchmark-*:1.1.0-beta04 is released. Version 1.1.0-beta04 contains these commits.
Bug Fixes
Fix missing metrics on Android 10, and
NoSuchElementExceptioncaused by process names not being captured correctly in traces. (Ib4c17, b/218668335)Use
PowerManagerfor thermal throttling detection on Q (API 29) and higher. This significantly reduces frequency of false positives in thermal throttling detection (benchmark retry after 90 second cooldown), and speeds up benchmarks significantly on user builds. It also provides throttle detection even when clocks are locked (if they're locked too high for the device's physical environment). (I9c027, b/217497678, b/131755853)Filter simpleperf sampled profiling to
measureRepeatedthread only to simplify inspection (Ic3e12, b/217501939)Support metrics from named UI subprocesses in multi-process apps (Ice6c0, b/215988434)
Filter Baseline Profile rules to target Android 9 (SDK 28). aosp/1980331 b/216508418
Skip Profile Installation when using
Compilation.None(). Additionally, report warnings when the app is using an older version ofandroidx.profileinstallerand Android Gradle Plugin. aosp/1977029
Camera-Camera2, Camera-Core, Camera-Lifecycle, & Camera-Video: v1.1.0-beta02
February 23, 2022
androidx.camera:camera-*:1.1.0-beta02 is released. Version 1.1.0-beta02 contains these commits.
API Changes
- Add the ability to specify physical camera ID through Camera2Interop. (I5aed8)
 
Bug Fixes
- Fixed the stretched preview issue on Oppo Find N (I7d004)
 - Fixed a Galaxy J7 Prime issue that the preview is distorted. (I4c500)
 - Use compatible bitrate to find video encoder. (d969052)
 
Compose Animation: v1.1.1
February 23, 2022
androidx.compose.animation:animation:1.1.1, androidx.compose.animation:animation-core:1.1.1, and androidx.compose.animation:animation-graphics:1.1.1 are released. Version 1.1.1 contains these commits.
Bug Fixes
- Fix 
NullPointerExceptionatandroidx.compose.ui.platform.RenderNodeLayer.updateDisplayList(aosp/1947059, b/206677462) - Fix crash caused by clipboard content while reading from clipboard on Android. (I06020, b/197769306)
 - Fixed RTL in 
LazyVerticalGrid(aosp/1931080, b/207510535) 
Compose Compiler: v1.1.1
February 23, 2022
androidx.compose.compiler:compiler:1.1.1 is released. Version 1.1.1 contains these commits.
Bug Fixes
- Fix 
NullPointerExceptionatandroidx.compose.ui.platform.RenderNodeLayer.updateDisplayList(aosp/1947059, b/206677462) - Fix crash caused by clipboard content while reading from clipboard on Android. (I06020, b/197769306)
 - Fixed RTL in 
LazyVerticalGrid(aosp/1931080, b/207510535) 
Compose Foundation: v1.1.1
February 23, 2022
androidx.compose.foundation:foundation:1.1.1 and androidx.compose.foundation:foundation-layout:1.1.1 are released. Version 1.1.1 contains these commits.
Bug Fixes
- Fix 
NullPointerExceptionatandroidx.compose.ui.platform.RenderNodeLayer.updateDisplayList(aosp/1947059, b/206677462) - Fix crash caused by clipboard content while reading from clipboard on Android. (I06020, b/197769306)
 - Fixed RTL in 
LazyVerticalGrid(aosp/... 
2022-02-15
Runner 1.5.0: runner 1.5.0-alpha01
Feb 11, 2022
androidx.test:runner:1.5.0-alpha01 is released.
API Changes
- Add AndroidClasspathSuite and PackagePrefixClasspathSuite
 
New Features
- Record android Trace spans for test lifecycle events
 
Bug Fixes
- Support parameterized test names with commas and hashes.
 - Improve error handling during test discovery phase in orchestrator
 
Rules 1.4.1: rules 1.4.1-alpha04
Feb 11 2022
androidx.test:rules:1.4.1-alpha04 is released.
Monitor aka Platform 1.6.0: monitor 1.6.0-alpha01
Feb 11, 2022
androidx.test:monitor:1.6.0-alpha01 is released.
API Changes
- Add internal plugin API for supporting different tracing libraries.
 
Dependency Changes
- Add dependency on androidx.tracing
 
Espresso 3.5.0: Espresso 3.5.0-alpha04
Feb 11, 2022
The following artifacts were released:
androidx.test.espresso:espresso-accessibility:3.5.0-alpha04androidx.test.espresso:espresso-core:3.5.0-alpha04androidx.test.espresso:espresso-contrib:3.5.0-alpha04androidx.test.espresso:espresso-idling-resource:3.5.0-alpha04androidx.test.espresso:espresso-intents:3.5.0-alpha04androidx.test.espresso:espresso-remote:3.5.0-alpha04androidx.test.espresso:espresso-web:3.5.0-alpha04androidx.test.espresso,idling:idling-concurrent:3.5.0-alpha04androidx.test.espresso,idling:idling-net:3.5.0-alpha04
API Changes
- Add inverted matchers for IntentMatchers.hasExtraWithKey() and BundleMatchers.hasKey()
 - Add a ViewAction that scrolls to the last position in a RecyclerView.
 
New Features
- Record android Trace spans for Espresso actions
 
Bug Fixes
- Use consistent InputDevice source for input gesture injection
 - Support simulating ActivityNotFoundExceptions in Espresso Intents.
 - Truncate view hierarchy in exception messages when it gets too large.
 - Display number and list of ambiguously matched views.
 
Dependency Changes
- Update to kotlin stdlib 1.6.10
 
Core 1.4.1: Core Core-ktx 1.4.1-alpha04
Fev 11, 2022
androidx.test:core:1.4.1-alpha04 and androidx.test:core-ktx:1.4.1-alpha04 are released.
New Features
- Record android Trace spans for ActivityScenario launch and close.
 
Dependency Changes
- Add androidx.tracing dependency
 - Update to kotlin stdlib 1.6.10
 
JUnit Extensions 1.1.4: ext.junit 1.1.4-alpha04
** Dependency Changes
- Update to kotlin stdlib 1.6.10
 
Feb 11, 2022
androidx.test.ext:junit:1.1.4-alpha04 and androidx.test.ext:junit-ktx:1.1.4-alpha04 are released.
Truth Extensions 1.5.0: ext.truth 1.5.0-alpha04
Feb 11, 2022
androidx.test.ext:truth:1.5.0-alpha04 is released.
Services 1.4.2: services 1.4.2-alpha01
Feb 11, 2022
androidx.test.services:test-services:1.4.2-alpha01 androidx.test.services:storage:1.4.2-alpha01 are released.
Orchestrator 1.4.2: orchestrator 1.4.2-alpha01
Feb 11, 2022
androidx.test:orchestrator:1.4.2-alpha01 is released.
2022-02-12
Runner 1.5.0: runner 1.5.0-alpha01
Feb 11, 2022
androidx.test:runner:1.5.0-alpha01 is released.
API Changes
- Add AndroidClasspathSuite and PackagePrefixClasspathSuite
 
New Features
- Record android Trace spans for test lifecycle events
 
Bug Fixes
- Support parameterized test names with commas and hashes.
 - Improve error handling during test discovery phase in orchestrator
 
Rules 1.4.1: rules 1.4.1-alpha04
Feb 11 2022
androidx.test:rules:1.4.1-alpha04 is released.
Monitor aka Platform 1.6.0: monitor 1.6.0-alpha01
Feb 11, 2022
androidx.test:monitor:1.6.0-alpha01 is released.
API Changes
- Add internal plugin API for supporting different tracing libraries.
 
Dependency Changes
- Add dependency on androidx.tracing
 
Espresso 3.5.0: Espresso 3.5.0-alpha04
Feb 11, 2022
The following artifacts were released:
androidx.test.espresso:espresso-accessibility:3.5.0-alpha04androidx.test.espresso:espresso-core:3.5.0-alpha04androidx.test.espresso:espresso-contrib:3.5.0-alpha04androidx.test.espresso:espresso-idling-resource:3.5.0-alpha04androidx.test.espresso:espresso-intents:3.5.0-alpha04androidx.test.espresso:espresso-remote:3.5.0-alpha04androidx.test.espresso:espresso-web:3.5.0-alpha04androidx.test.espresso,idling:idling-concurrent:3.5.0-alpha04androidx.test.espresso,idling:idling-net:3.5.0-alpha04
API Changes
- Add inverted matchers for IntentMatchers.hasExtraWithKey() and BundleMatchers.hasKey()
 - Add a ViewAction that scrolls to the last position in a RecyclerView.
 
New Features
- Record android Trace spans for Espresso actions
 
Bug Fixes
- Use consistent InputDevice source for input gesture injection
 - Support simulating ActivityNotFoundExceptions in Espresso Intents.
 - Truncate view hierarchy in exception messages when it gets too large.
 - Display number and list of ambiguously matched views.
 
Dependency Changes
- Update to kotlin stdlib 1.6.10
 
Core 1.4.1: Core Core-ktx 1.4.1-alpha04
Fev 11, 2022
androidx.test:core:1.4.1-alpha04 and androidx.test:core-ktx:1.4.1-alpha04 are released.
New Features
- Record android Trace spans for ActivityScenario launch and close.
 
Dependency Changes
- Add androidx.tracing dependency
 - Update to kotlin stdlib 1.6.10
 
JUnit Extensions 1.1.4: ext.junit 1.1.4-alpha04
** Dependency Changes
- Update to kotlin stdlib 1.6.10
 
Feb 11, 2022
androidx.test.ext:junit:1.1.4-alpha04 and androidx.test.ext:junit-ktx:1.1.4-alpha04 are released.
Truth Extensions 1.5.0: ext.truth 1.5.0-alpha04
Feb 11, 2022
androidx.test.ext:truth:1.5.0-alpha04 is released.
Services 1.4.2: services 1.4.2-alpha01
Feb 11, 2022
androidx.test.services:test-services:1.4.2-alpha01 androidx.test.services:storage:1.4.2-alpha01 are released.
Orchestrator 1.4.2: orchestrator 1.4.2-alpha01
Feb 11, 2022
androidx.test:orchestrator:1.4.2-alpha01 is released.
2022-02-09
Activity: v1.5.0-alpha02
February 9, 2022
androidx.activity:activity:1.5.0-alpha02, androidx.activity:activity-compose:1.5.0-alpha02, and androidx.activity:activity-ktx:1.5.0-alpha02 are released. Version 1.5.0-alpha02 contains these commits.
New Features
ComponentActivitynow implements theOnPictureInPictureModeChangedProviderinterface to allow any component to receive picture-in-picture mode change events. (I9f567)ComponentActivitynow implements theOnMultiWindowModeChangedProviderinterface to allow any component to receive multi-window mode change events. (I62d91)
Annotation: v1.4.0-alpha02
February 9, 2022
androidx.annotation:annotation:1.4.0-alpha02 is released. Version 1.4.0-alpha02 contains these commits.
New Features
Added
@ReturnThis,@OpenForTesting,@EmptySuperand@DeprecatedSinceApiannotations. (21946a2)@ReturnThis(b/140249763): Ensures that overriding methods of this method must return the same instance (intended for builders etc)@OpenForTesting(b/141539024): Kotlin classes and methods marked "open" can be annotated with this annotation, and lint will make sure that this class is only subclassed (and methods only overridden) from unit tests@DeprecatedSinceApi(b/37116481): Indicates that the annotated method (or class or field) is part of a backport library for a platform API, which is no longer needed as of the given API level.@EmptySuper: Indicates that this method is defined to be empty, so when overriding you do not need to call it (and in fact you shouldn't; for example, it can contain backwards compatibility checking.)
Benchmark: v1.1.0-beta03
February 9, 2022
androidx.benchmark:benchmark-*:1.1.0-beta03 is released. Version 1.1.0-beta03 contains these commits.
API Changes
- Added 
AudioUnderrunMetricinto macrobenchmark library under experimental flag to allow detection of audio underruns (Ib5972) BaselineProfileRuleno longer accepts asetupblock as this functioned the same as theprofileBlock. (Ic7dfe, b/215536447)For e.g.
@Test fun collectBaselineProfile() { baselineRule.collectBaselineProfile( packageName = PACKAGE_NAME, setupBlock = { startActivityAndWait() }, profileBlock = { // ... } ) }@Test fun collectBaselineProfile() { baselineRule.collectBaselineProfile( packageName = PACKAGE_NAME, profileBlock = { startActivityAndWait() // ... } ) }
Bug Fixes
- Fixed issue where microbench profiler traces would fail to be updated in subsequent runs when linked in Studio output (I5ae4d, b/214917025)
 - Prevent compilation shell commands on API 23 (Ice380)
 - Renamed 
FrameCpuTime->FrameDurationCpu,FrameUiTime->FrameDurationUito clarify these are durations, not timestamps, and to match prefixes. (I0eba3, b/216337830) 
Compose Animation: v1.1.0
February 9, 2022
androidx.compose.animation:animation:1.1.0, androidx.compose.animation:animation-core:1.1.0, and androidx.compose.animation:animation-graphics:1.1.0 are released. Version 1.1.0 contains these commits.
Important changes since 1.0.0
- Stable support for the Android 12 Overscroll effect
 - Improvements to touch target sizing
 - Note that, with respect to Compose 1.0, Material components will expand their layout space to meet Material accessibility guidelines for touch target size. For instance, Button touch target will expand to a minimum size of 48x48dp, even if you set the Button's size to be smaller. This aligns Compose Material to the same behavior of Material Design Components, providing consistent behavior if you mix Views and Compose. This change also ensures that when you create your UI using Compose Material components, minimum requirements for touch target accessibility will be met.
 - Stable support for Navigation Rail
 - Graduates a number of previously experimental APIs to stable
 - Support for newer versions of Kotlin
 
Compose Animation: v1.2.0-alpha03
February 9, 2022
androidx.compose.animation:animation:1.2.0-alpha03, androidx.compose.animation:animation-core:1.2.0-alpha03, and androidx.compose.animation:animation-graphics:1.2.0-alpha03 are released. Version 1.2.0-alpha03 contains these commits.
Compose Compiler: v1.1.0
February 9, 2022
androidx.compose.compiler:compiler:1.1.0 is released. Version 1.1.0 contains these commits.
Important changes since 1.0.0
- Stable support for the Android 12 Overscroll effect
 - Improvements to touch target sizing
 - Note that, with respect to Compose 1.0, Material components will expand their layout space to meet Material accessibility guidelines for touch target size. For instance, Button touch target will expand to a minimum size of 
48x48dp, even if you set the Button's size to be smaller. This aligns Compose Material to the same behavior of Material Design Components, providing consistent behavior if you mix Views and Compose. This change also ensures that when you create your UI using Compose Material components, minimum requirements for touch target accessibility wi... 
2022-01-26
Activity: v1.5.0-alpha01
January 26, 2022
androidx.activity:activity:1.5.0-alpha01, androidx.activity:activity-compose:1.5.0-alpha01, and androidx.activity:activity-ktx:1.5.0-alpha01 are released. Version 1.5.0-alpha01 contains these commits.
New Features
ComponentActivitynow integrates with ViewModel CreationExtras, introduced as part of Lifecycle2.5.0-alpha01. (Ie7e00, b/207012584)- Added 
ComponentDialog, a subclass ofDialogthat includes anOnBackPressedDispatcherthat will be called when the system back button is pressed when the dialog is visible. Importantly, this subclass also sets theViewTreeOnBackPressedDispatcherOwner, allowing views a generic way to retrieve the correct dispatcher whether it exists in aComponentActivityor aComponentDialog. (I8a1bc) ComponentActivitynow implements the newOnNewIntentProviderinterface to allow any component to receive these events. (If1f8b)ComponentActivitynow implements the newOnConfigurationChangedProviderinterface to allow any component to receive these events. (If623b)ComponentActivitynow implements the newOnTrimMemoryProviderinterface to allow any component to receive these events. (Ia9295)
API Changes
- The no parameter constructor for 
ActivityResultContracts.CreateDocumenthas been deprecated and replaced with a new constructor that takes a concrete mime type (e.g.,"image/png") as is required byIntent.ACTION_CREATE_DOCUMENT. (I2bec6) - The 
OnBackPressedDispatcherOwnerassociated with a View can now be retrieved via theViewTreeOnBackPressedDispatcherOwner, rather than relying on casting theContext. (I74685) 
Bug Fixes
- Fixed a crash when accessing a 
ViewModelfor the very first time from aregisterForActivityResult()callback or the callbacks to aLifecycleObserveradded as part ofinitof aComponentActivity. (Ife83f) 
Benchmark: v1.1.0-beta02
January 26, 2022
androidx.benchmark:benchmark-*:1.1.0-beta02 is released. Version 1.1.0-beta02 contains these commits.
Bug Fixes
- Microbenchmark Stack Sampling / Method Tracing Profile results are now linked in Studio output, similar to other profiling outputs, and do not suppress the allocation metric. (Idcb65, b/214440748, b/214253245)
 - BaselineProfileRule now prints the 
adb pullcommand in logcat and Studio output for pulling generated BaselineProfile text file. (f08811) 
Camera-Camera2, Camera-Core, Camera-Lifecycle, & Camera-Video: v1.1.0-beta01
January 26, 2022
androidx.camera:camera-*:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.
New Features
- From 1.1.0-beta01, all CameraX libraries will align the same version number. This will help developers track versions much easier and reduce the complexity of large version compatibility matrix.
 
API Changes
- Added 
Camera2CameraControl.clearCaptureRequestOptionsfor clearing the existing capture request options. (Ifa07d) 
Bug Fixes
- Fixed the crash when recording the video on some pre-Android O(API 26) devices. (I88fdf, b/212328261)
 - Fixed the incorrect AF region issue when using 
cameraControl#startFocusAndMetering()on front lens-facing camera in Samsung devices (Ifbf59, b/210548792) - Use torch as flash on Pixel 3a/Pixel 3a XL to improve the speed and the captured image quality in dark (Ib12b6, b/211474332)
 - Enabled applications to resume the camera when camera is interrupted by other higher priority application in the multi-window mode and the focus changes back to the application. Please note that there could be some latency(1 second to 10 seconds or more) between focus changes and camera reopened due to some framework issue. (I4d092)
 
Car App: v1.2.0-beta02
January 26, 2022
androidx.car.app:app-*:1.2.0-beta02 is released. Version 1.2.0-beta02 contains these commits.
Car apps built with this library version targeting the Android Automotive OS platform can now be published to the Play Store open testing channel. Refer to the development guide for more details.
Features annotated with API level 4 and under are compatible with both Android Auto 7.2+ and the new Android Automotive OS platform. See the Known Issues section below for caveats.
API Changes
- Added experimental 
setOnContentRefreshListenerAPI to POI templates (I6bf22) 
Bug Fixes
- Fixed a memory leak in 
CarAppServicewhen the car host unbinds. (I5c9ca, b/203594731) - Updated 
CarAppActivityjavadoc to include requirements for singleTask launchmode (Id2f95) - Reduces the visual glitch on resume. (Iff7e0)
 
Known Issue(s)
- The map 
ActionStrips in thePlaceListNavigationTemplateandRoutePreviewNavigateTemplatewill start becoming ava... 
2022-01-14
Constraintlayout:
January 13, 2022
androidx.constraintlayout:constraintlayout:2.1.3 is released.
For more information, see the GitHub article What's New in 2.1.
Constraintlayout: v1.0.0
January 13, 2022
androidx.constraintlayout:constraintlayout-compose:1.0.0 is released.
Please note MotionLayout api is now experimental and requires opt in.
For more information, see the GitHub article What's New in 1.0 (Compose).
2022-01-10
Appcompat: v1.4.1
January 12, 2022
androidx.appcompat:appcompat:1.4.1 and androidx.appcompat:appcompat-resources:1.4.1 are released. Version 1.4.1 contains these commits.
Bug Fixes
AppCompatEditText,AppCompatAutoCompleteTextView, andAppCompatMultiAutoCompleteTextViewwill not call overridensetKeyListenerduring the constructor. (I5c13a, b/208480173)Emoji2will not wrap instances ofNumberKeyListener, allowing the locale to be configured by textview.- Appcompat will not wrap instances of 
NumberKeyListenerpassed tosetKeyListener, allowingTextViewto correctly configure the locale onNumberKeyListeners. (Ibf113, b/207119921) 
- Appcompat will not wrap instances of 
 - Fixes issue with all 
NumberKeyListenersubclasses introduced in appcompat 1.4.0 that allowed unexpected characters such as punctuation to be input (b/207119921) (Iede7a, b/207119921) 
Benchmark: v1.1.0-beta01
January 12, 2022
androidx.benchmark:benchmark-*:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.
Bug Fixes
- Fixes profiler argument enable being ignored. (I37373, b/210619998)
 - Removed deprecated 
CompliationModes(I98186, b/213467659) - Switched baseline profile arg of 
CompilationMode.Partialto enum for clarity. (Id67ea) 
Compose Animation: v1.2.0-alpha01
January 12, 2022
androidx.compose.animation:animation:1.2.0-alpha01, androidx.compose.animation:animation-core:1.2.0-alpha01, and androidx.compose.animation:animation-graphics:1.2.0-alpha01 are released. Version 1.2.0-alpha01 contains these commits.
API Changes
- Use 
AnimatedImageVector.animatedVectorResourceinstead ofanimatedVectorResourceto load an<animated-vector>resource file.- Use 
rememberAnimatedVectorResourceinstead ofAnimatedImageVector#painterForto render anAnimatedImageVector. (I9c300) 
 - Use 
 
Bug Fixes
- Add toString methods to Animatable and AnimationResult. (Icd3a6)
 
Dependency Updates
- Now depends on Kotlin 
1.6.10. 
Compose Compiler: v1.2.0-alpha01
January 12, 2022
androidx.compose.compiler:compiler:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
- Added support for Kotlin 
1.6.10. 
Compose Foundation: v1.2.0-alpha01
January 12, 2022
androidx.compose.foundation:foundation:1.2.0-alpha01 and androidx.compose.foundation:foundation-layout:1.2.0-alpha01 are released. Version 1.2.0-alpha01 contains these commits.
API Changes
- New parameter 
userScrollEnabledwas added toLazyColumn,LazyRow, andLazyVerticalGridin order to allow users to temporarily or permanently disable the user initiated scroll via touch gestures or accessibility actions. Scrolling programmatically via the methods on the state will still be allowed. (I7eae9, b/201150093) - Add 
onSizeChangedcallback to magnifier modifier. (I6879f) - The magnifier widget now shows when dragging selection handles in a 
SelectionContainer. (I30b38, b/139320979) 
Bug Fixes
- Fixes 
TextFieldcursor handle not hiding when scrolled out of view. (I14552, b/208883748) 
Dependency Updates
- Now depends on Kotlin 
1.6.10. 
Compose Material: v1.2.0-alpha01
January 12, 2022
androidx.compose.material:material-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
Dependency Updates
- Now depends on Kotlin 
1.6.10. 
External Contribution
ModalBottomSheetStatenow has aisSkipHalfExpandedflag. It can be either set through the constructor or updated later on by settingModalBottomSheetState'sisSkipHalfExpandedproperty totrue. UpdatingisSkipHalfExpanded's value causes a recomposition of the sheet. (I18b86, b/186669820)
Compose Material 3: v1.0.0-alpha03
January 12, 2022
androidx.compose.material3:material3:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
Bug Fixes
- Add 
LocalIndicationto Material 3'sMaterialTheme. (I7ce4e) - Fix the corner radius that is applied for Checkboxes (I38b03, b/175198975, b/202309440)
 
Dependency Updates
2021-12-16
Compose Compiler: v1.1.0-rc02
December 16, 2021
androidx.compose.compiler:compiler:1.1.0-rc02 is released. Version 1.1.0-rc02 contains these commits.
Dependency updates
- Compose Compiler 
1.1.0-rc02is compatible with Kotlin1.6.10.