Skip to content

Releases: mahozad/androidx-release-notes

2022-03-08

09 Mar 18:44

Choose a tag to compare

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

  • LazyVerticalGrid and LazyHorizontalGrid are now stable. (I307c0)
  • LazyGridItemInfo.Unknown was replaced with separate LazyGridItemInfo.UnknownRow and LazyGridItemInfo.UnknownColumn (I56d51)
  • LazyVerticalGrid/LazyHorizontalGrid and 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)
  • Text: includeFontPadding is now turned off by default. The clipping issues as a result of includeFontPadding=false is handled and no clipping should occur for tall scripts. (I31c84, b/171394808)
  • Measured interface now exposes parentData property (I3313f)
  • Introduced experimental Modifier.onFocusedBoundsChanged to 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 LazyVerticalGrid API 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

  • LazyVerticalGrid and LazyHorizontalGrid are now stable. (I307c0)
  • LazyVerticalGrid/LazyHorizontalGrid and 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. Deprecated ViewCompat.getWindowInsetsController in favor of WindowCompat.getInsetsController to ensure that the correct Window is used (such as if the View is in a dialog). (I660ae, b/219572936)
  • Text:includeFontPadding is now turned off by default. The clipping issues as a result of includeFontPadding=false is handled and no clipping should occur for tall scripts. (I31c84, b/171394808)
  • Added a new LazyVerticalGrid API 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)
  • LazyVerticalGrid and LazyHorizontalGrid are now stable. (I307c0)
  • LazyVerticalGrid/LazyHorizontalGrid and 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. Deprecated ViewCompat.getWindowInsetsController in favor of WindowCompat.getInsetsController to ensure that the correct Window is used (such as if the View is in a dialog). (I660ae, b/219572936)
  • Added a new LazyVerticalGrid
Read more

2022-02-28

02 Mar 09:38

Choose a tag to compare

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 of DefaultRenderersFactory that override buildVideoRenderers() or buildAudioRenderers() can access the codec adapter factory and pass it to MediaCodecRenderer instances they create.
    • Propagate ICY header fields name and genre to MediaMetadata.station and MediaMetadata.genre respectively so that they reach the app via Player.Listener.onMediaMetadataChanged() (#9677).
    • Remove null keys from DefaultHttpDataSource#getResponseHeaders.
    • Sleep and retry when creating a MediaCodec instance 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 from MediaCodec. (#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#inputBufferCount to queuedInputBufferCount.
    • Make SimpleExoPlayer.renderers private. Renderers can be accessed via ExoPlayer.getRenderer.
    • Updated some AnalyticsListener.EventFlags constant values to match values in Player.EventFlags.
    • Split AnalyticsCollector into an interface and default implementation to allow it to be stripped by R8 if an app doesn't need it.
  • 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 a TrackGroupArray. TrackGroups can always be made distinguishable by setting an id in the TrackGroup constructor. This fixes a crash when resuming playback after backgrounding the app with an active track override (#9718).
    • Amend logic in AdaptiveTrackSelection to 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 AudioCapabilities APIs to require passing explicitly AudioCapabilities.DEFAULT_AUDIO_CAPABILITIES instead of null.
    • Allow customization of the AudioTrack buffer size calculation by injecting an AudioTrackBufferSizeProvider to DefaultAudioSink. (#8891).
    • Retry AudioTrack creation if the requested buffer size was > 1MB. (#9712).
  • Extractors:
    • WAV: Add support for RF64 streams (#9543).
    • Fix incorrect parsing of H.265 SPS NAL units (#9719).
    • Parse Vorbis Comments (including METADATA_BLOCK_PICTURE) in Ogg Opus and Ogg Vorbis files.
  • Text:
    • Add a MediaItem.SubtitleConfiguration.id field which is propagated to the Format.id field of the subtitle track created from the configuration (#9673).
    • Add basic support for WebVTT subtitles in Matroska containers (#9886).
    • Prevent Cea708Decoder from reading more than the declared size of a service block.
  • DRM:
    • Remove playbackLooper from DrmSessionManager.(pre)acquireSession. When a DrmSessionManager is used by an app in a custom MediaSource, the playbackLooper needs to be passed to DrmSessionManager.setPlayer instead.
  • Ad playback / IMA:
    • Add support for IMA Dynamic Ad Insertion (DAI) (#8213).
    • Add a method to AdPlaybackState to 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:
    • Fix the color of the numbers in StyledPlayerView rewind and fastforward buttons when using certain themes (#9765).
    • Correctly translate playback speed strings (#9811).
  • DASH:
    • Add parsed essential and supplemental properties to the Representation (#9579).
    • Support the forced-subtitle track role (#9727).
    • Stop interpreting the main track role as C.SELECTION_FLAG_DEFAULT.
    • Fix base URL exclusion logic for manifests that do not declare the DVB namespace (#9856).
    • Support relative MPD.Location URLs (#9939).
  • HLS:
    • Correctly populate
Read more

2022-02-23

23 Feb 18:43

Choose a tag to compare

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 CreationExtras to the activity by 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 NoSuchElementException caused by process names not being captured correctly in traces. (Ib4c17, b/218668335)

  • Use PowerManager for 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 measureRepeated thread 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 of androidx.profileinstaller and 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

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

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 NullPointerException at androidx.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/...
Read more

2022-02-15

15 Feb 21:38

Choose a tag to compare

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-alpha04
  • androidx.test.espresso:espresso-core:3.5.0-alpha04
  • androidx.test.espresso:espresso-contrib:3.5.0-alpha04
  • androidx.test.espresso:espresso-idling-resource:3.5.0-alpha04
  • androidx.test.espresso:espresso-intents:3.5.0-alpha04
  • androidx.test.espresso:espresso-remote:3.5.0-alpha04
  • androidx.test.espresso:espresso-web:3.5.0-alpha04
  • androidx.test.espresso,idling:idling-concurrent:3.5.0-alpha04
  • androidx.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

15 Feb 03:39

Choose a tag to compare

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-alpha04
  • androidx.test.espresso:espresso-core:3.5.0-alpha04
  • androidx.test.espresso:espresso-contrib:3.5.0-alpha04
  • androidx.test.espresso:espresso-idling-resource:3.5.0-alpha04
  • androidx.test.espresso:espresso-intents:3.5.0-alpha04
  • androidx.test.espresso:espresso-remote:3.5.0-alpha04
  • androidx.test.espresso:espresso-web:3.5.0-alpha04
  • androidx.test.espresso,idling:idling-concurrent:3.5.0-alpha04
  • androidx.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

09 Feb 18:43

Choose a tag to compare

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

  • ComponentActivity now implements the OnPictureInPictureModeChangedProvider interface to allow any component to receive picture-in-picture mode change events. (I9f567)
  • ComponentActivity now implements the OnMultiWindowModeChangedProvider interface 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, @EmptySuper and @DeprecatedSinceApi annotations. (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 AudioUnderrunMetric into macrobenchmark library under experimental flag to allow detection of audio underruns (Ib5972)
  • BaselineProfileRule no longer accepts a setup block as this functioned the same as the profileBlock. (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 -> FrameDurationUi to 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...
Read more

2022-01-26

26 Jan 18:45

Choose a tag to compare

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

  • ComponentActivity now integrates with ViewModel CreationExtras, introduced as part of Lifecycle 2.5.0-alpha01. (Ie7e00, b/207012584)
  • Added ComponentDialog, a subclass of Dialog that includes an OnBackPressedDispatcher that will be called when the system back button is pressed when the dialog is visible. Importantly, this subclass also sets the ViewTreeOnBackPressedDispatcherOwner, allowing views a generic way to retrieve the correct dispatcher whether it exists in a ComponentActivity or a ComponentDialog. (I8a1bc)
  • ComponentActivity now implements the new OnNewIntentProvider interface to allow any component to receive these events. (If1f8b)
  • ComponentActivity now implements the new OnConfigurationChangedProvider interface to allow any component to receive these events. (If623b)
  • ComponentActivity now implements the new OnTrimMemoryProvider interface to allow any component to receive these events. (Ia9295)

API Changes

  • The no parameter constructor for ActivityResultContracts.CreateDocument has been deprecated and replaced with a new constructor that takes a concrete mime type (e.g., "image/png") as is required by Intent.ACTION_CREATE_DOCUMENT. (I2bec6)
  • The OnBackPressedDispatcherOwner associated with a View can now be retrieved via the ViewTreeOnBackPressedDispatcherOwner, rather than relying on casting the Context. (I74685)

Bug Fixes

  • Fixed a crash when accessing a ViewModel for the very first time from a registerForActivityResult() callback or the callbacks to a LifecycleObserver added as part of init of a ComponentActivity. (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 pull command 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.clearCaptureRequestOptions for 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 setOnContentRefreshListener API to POI templates (I6bf22)

Bug Fixes

  • Fixed a memory leak in CarAppService when the car host unbinds. (I5c9ca, b/203594731)
  • Updated CarAppActivity javadoc to include requirements for singleTask launchmode (Id2f95)
  • Reduces the visual glitch on resume. (Iff7e0)

Known Issue(s)

  • The map ActionStrips in the PlaceListNavigationTemplate and RoutePreviewNavigateTemplate will start becoming ava...
Read more

2022-01-14

18 Jan 22:03

Choose a tag to compare

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

12 Jan 18:47
f9fae75

Choose a tag to compare

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, and AppCompatMultiAutoCompleteTextView will not call overriden setKeyListener during the constructor. (I5c13a, b/208480173)
  • Emoji2 will not wrap instances of NumberKeyListener, allowing the locale to be configured by textview.
    • Appcompat will not wrap instances of NumberKeyListener passed to setKeyListener, allowing TextView to correctly configure the locale on NumberKeyListeners. (Ibf113, b/207119921)
  • Fixes issue with all NumberKeyListener subclasses 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.Partial to 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.animatedVectorResource instead of animatedVectorResource to load an <animated-vector> resource file.
    • Use rememberAnimatedVectorResource instead of AnimatedImageVector#painterFor to render an AnimatedImageVector. (I9c300)

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 userScrollEnabled was added to LazyColumn, LazyRow, and LazyVerticalGrid in 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 onSizeChanged callback to magnifier modifier. (I6879f)
  • The magnifier widget now shows when dragging selection handles in a SelectionContainer. (I30b38, b/139320979)

Bug Fixes

  • Fixes TextField cursor 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

  • ModalBottomSheetState now has a isSkipHalfExpanded flag. It can be either set through the constructor or updated later on by setting ModalBottomSheetState's isSkipHalfExpanded property to true. Updating isSkipHalfExpanded'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

Dependency Updates

Read more

2021-12-16

21 Dec 10:08
63e75aa

Choose a tag to compare

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-rc02 is compatible with Kotlin 1.6.10.