Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency com.google.android.material:material to v1.12.0 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 25, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.android.material:material 1.11.0-alpha01 -> 1.12.0 age adoption passing confidence

Release Notes

material-components/material-components-android (com.google.android.material:material)

v1.12.0

Compare Source

What's new since 1.11.0

  • Slider and Progress Indicator have been updated to better support Non-Text Contrast Accessibility requirements.
  • Predictive Back Fragment/View support added to Material motion transitions (MaterialSharedAxis, MaterialFadeThrough, MaterialFade, MaterialElevationScale).

Important

Required minSdkVersion is now 19 or higher, for Material and AndroidX (blog post).

Dependency Updates

Dependency Previous version New version
androidx.transition 1.2.0 1.5.0

Library Updates

  • Gradle
    • Update library minSdkVersion to 19. (1bbb43d)
    • Upgrade to //third_party/gradle to 8.4 (1756f23)
  • Carousel
    • Shifted keylines in contained strategies when there exists padding, and clipToPadding=false (1ef42e2)
    • Fixed Javadoc formatting error in FullScreenCarouselStrategy class documentation. (a0a1c6e)
    • Added support for cross axis wrap_content RecyclerViews (e88a1b9)
    • Added documentation recommending snapping for multi-browse strategy (9e64a1f)
    • Add attributes to change small item size (92a5444)
  • CollapsingToolbarLayout
    • Fix text shadow fading when transitioning between expanded and collapsed states (7674e12)
  • Checkbox
    • Updated string translations (198e08c)
  • Dialog
    • Unified scrim opacity in Material themes/theme overlays. (f3e4439)
  • Divider
    • Fixed divider instantly appearing or disappearing on insertion or removal (ef4a0c5)
  • i18n
    • Update translated strings (a8307ef)
  • MaterialDatePicker
    • Fix date validation on Samsung devices (5aa6edf)
  • MaterialAutoCompleteTextView
    • Enabled switch access in MaterialAutoCompleteTextView. (14a7b40)
  • NavigationDrawer
    • Fixed wrong item selected after click (a3af20a)
  • NavigationRail
    • Added label padding for when the label is long enough to reach the sides of the nav rail (2439dc0)
    • Increased padding in between items as per design specs (16eca7e)
  • Predictive Back
    • Animated corners during predictive back when no drawerLayoutCornerSize is set (c8b9b1c)
  • ProgressIndicator
    • Updated inactive track color from primary container to secondary container. (c8cb0c6)
    • Updated the setter of track thickness to not update track corner radius. (540f5ee)
    • Added the limit to not have stop indicator size bigger than track thickness. (689e04f)
    • Fixed the rounded ends overlapping bug with semi-transparent track/indicator color in Circular default style. (8167c11)
    • Removed the call to draw a transparent full track. (3f80fdb)
    • Flipped the canvas for different circular directions. (bcc27a3)
    • Split stop indicator drawing from indicator drawing. (76207cb)
    • Added ActiveIndicator to improve readability. (6fd920a)
    • Fixed ESCAPE animation in linear and added ESCAPE animation in circular. (98284e7)
    • Updated to use the same drawing delegate object between determinate drawable and indeterminate drawable to prevent inconsistent drawings when specs update. (52b4845)
    • Added missing graphics updates when spec changes. (93b3010)
    • Update styles for new Accessibility updates (15b533f)
    • Added static drawable for Circular type when system animator is disabled. (22e054b)
  • Search
    • Excluded icons from search bar handwriting bounds (387f59b)
    • Made searchbar_scrolling_view_behavior string public (ce386e4)
    • Updated string translations (198e08c)
  • SideSheet
    • Moved the modal side sheet default width/height into style so they can be customized
    • Updated string translations (198e08c)
  • Slider
    • Made tick size defaults to the stop indicator size if set (92bc02c)
    • Fixed incorrect style of stop indicators near handles (d61cffd)
    • Resolved issues that crash when assigning a large value to valueTo (4d1b9e5)
    • Updated the track drawing for some corner cases. (10484df)
    • Fixed ripple not transparent on API 33 (cd4f618)
    • Updated documentation (a641e18)
    • Updated styles (c218b3c)(3b278d7)
    • Fixed slider label not moving while scrolling (144b515)
  • Tabs
    • Fixed title being announced twice when there's a badge in TalkBack mode. (aaa7034)
  • Theming
    • Add NoActionBar dynamic color themes (81d1b77)
    • Update Shape Theming bottom sheet text color (8ca016f)
  • Tokens
    • Update tokens to v4.0.0. (88acfcd)
    • Added formatting to break long lines and differentiate different comments. (857d6a2)
  • TopAppBar
    • Use an accessibility delegate to add and perform actions (929c80f)
    • Fixed compress effect clipping on API 21-24 (2ac8c1c)
  • TextInputLayout
    • Limited the min height reset in text change listener only when line count changes. (9b9449c)
    • Fixed unnecessary min height when losing focus with multiple lines. (4a2654a)
  • Transitions / Motion
    • Updated androidx transition dep to version 1.5.0-beta01 (8c63848)
    • Added predictive fade through fragment transition demo to Catalog. (6092a7d)
    • Added titles to fade through demo fragments in Catalog. (104043c)
    • Added predictive transition support for fragments and views to the Material motion library, and enabled it in shared axis fragment transition demo. (8ccec33)

Full list of release notes

Full list of changes

v1.11.0

Compare Source

Important

Elevation Overlays within default component styles have been replaced by the new Tonal Surface Color system. Instead of blending the Primary color with the Surface color based on an elevation value, components now use a specific Surface color role that can be more easily understood and customized.

Documentation for the affected components and which Surface color roles they use has been updated in material-components/material-components-android@2114a11.

What's new since 1.10.0

Dependency Updates

None.

Note: Earlier versions of 1.11.0 used other versions of the androidx.activity 1.8.0 library dependency, but there is no change in the dependency from 1.10.0, the last stable MDC library version.

Library Updates

  • Badging
    • Adjusted badge vertical offset for certain components to fit design requirements (78cc54b)
    • Added note in attachBadgeDrawable method docs about menu item views being re-used when there is a structural change in the menu. Since badges are attached to the views, this may change the menu item that the badge is intended for (5e6ea58)
  • BottomNavigationView
    • Set badges to be null instead of removing them from the sparse array so that removing badges before restoring badge states will not override the current state (9f2e686)
  • BottomSheet
    • Fix sheet corners animation (de27132)
  • Carousel
    • Ensure that extra small size is not larger than the large size (17baf71)
    • Fixed crash when recyclerview has a size of zero. (26c3129)
    • When navigating with keyboard, scroll focused item to nearest focal keyline, not the first focal keyline (fb9c1c6)
    • Force hero strategy to be start-aligned if there are not enough items to make it center-aligned (9a2347b)
    • Add logic for multibrowse strategy to change strategy when number of items is less than the number of keylines (cbb380d)
    • Fixed focus order when using keyboard navigation for hero carousels. (0356f24)
    • Cleaning up multi-browse strategy and removing compact arrangement (ed4647d)
    • Disallowing center aligned hero strategy with only 2 items since it does not make any sense. With only 2 items there can only be a start state and end state with the hero strategy. (d5d604d)
    • Fix issue with uncontained carousel not having a proper end scroll value due to assumption made in end scroll calculation (8cb444b)
    • Added tests for hero and multibrowse strategies when the carousel container is very small. (8312162)
    • Update scroll offset to scroll to the estimated position that it was at upon an initial load (4a6ae4d)
    • Fixed strategies crashing when there is not enough available space for a large and a small item (c418063)
    • Tweak uncontained strategy logic to adjust medium size items to improve motion (93660d4)
    • Fixed formatted for KeylineState and KeylineStateList (b80d9a5)
    • Fixed keyline shifting in RTL for uncontained carousels (7151714)
    • Reduce the number of truncations in intermediate calculations (4ce7e4c)
    • Update vertical scroll speed to be faster (c6ea2d4)
    • Fix some a11y bugs in Carousel (3d84841)
    • Center aligned uncontained carousel (b6f6eb5)
    • Add left-aligned uncontained strategy (9d81cac)
    • Fix orientation not correct in item decoration calculations (966f7da)
    • Update mask size on size change if mask x percentage has been set (dc91b39)
    • Fix issue with next carousel item not being masked properly (a16f180)
    • Add a layout listener to recyclerview to refresh keyline state upon size change (ff52862)
    • Remove default list from Carousel catalog demos as it is not an example of a carousel (0171624)
    • Add carousel alignment attribute (547156e)
    • Fix issue with not refreshing keylines (674ec44)
    • Fixed MaskableFrameLayout not updating mask after size change when setting the mask using setMaskXPercentage. (14023d2)
    • Adding docs for fullscreen carousel strategy (7c40359)
    • Add fullscreen demo to catalog (ad6afbf)
    • Add full screen strategy (bc54f2e)
  • Catalog
    • Use BottomSheetDialogFragment (2c53952)
    • Update navigation drawer state handling to be more accurate in demo (74ac87c)
    • Update navigation drawer state handling to be more accurate in custom drawer demo (1252d4f)
    • When bottom sheet is collapsed, back callback is enabled (98439df)
    • Update side sheet state handling to be more accurate in demos (357cf2d)
    • Update bottom sheet state handling to be more accurate in demos (f9102c7)
    • Fixed demos in RTL (4e1b130)
    • Make side sheet demo icon easier to see in dark mode (79a1953)
    • Remove explicit Catalog dependency on androidx.activity now that library depends on it (3bb69f5)
    • buid.gradle update. (4847799)
    • Remove edge-to-edge to top app bar demos due to glitches in ActionBar demo (c40e468)
    • Update slider position when carousel is scrolled in uncontained carousel demo (480bbc6)
    • Applied edge-to-edge to top app bar demos (aa5b5bc)
    • Add uncontained carousel demo to catalog (ef9f918)
    • Update slider position when carousel is scrolled in catalog demos (3652fde)
    • Applied edge-to-edge to bottom sheet in Carousel demo (6c2dd5d)
    • Fix fullscreen vertical carousel to use vertical dividers (af7d09a)
    • Add alignment option to hero carousel (7cfd30f)
  • Chip
    • Fix a typo in attributes table in documentation (7289aa6)
  • CollapsingToolbarLayout
    • Fix issue where expanded text gets ellipsized too aggressively when using title fade mode and the toolbar has menu items (094e3e2)
    • Fixed title collapse fade mode color to use a Tonal Surface role instead of elevation overlay (5f2b4b2)
  • Color
    • Delete unused contrast resources (541df07)
    • Updated focused and pressed state from 0.12 to 0.10 to increase the contrast ratio with tonal surface color. (bc824b4)
    • Updated colors of container transform demo (d16f223)
    • Add ColorStateListDrawable support (0663019)
    • Removed layered drawable for the background after tonal surface color. (b5d6f1a)
    • Upgraded to v0.170 for tonal surface colors. (8204856)
    • Update constructor comments (ba465a2)
  • Divider
  • Documentation
    • Add note to clarify that automatic back handling in components is only for API 33+ (ad2b5f8)
    • Update Predictive Back doc to recommend 1.10.0 stable version (b8b1a66)
    • Update doc to explain how to allow Top App Bar to grow taller in response to system font setting (a01a68d)
    • Fix carousel docs (247240c)
    • Add uncontained variant docs (9ee4aba)
    • Minor code block improvements (d7e75bb)
    • Add guidance in fullscreen strategy docs about portrait orientation (caec8d2)
    • Update chip documentation to use setOnCheckedStateChangeListener instead of setOnCheckedChangeListener which was deprecated in favour of the former (0582b1a)
    • Update example in docs to use colorContainer and colorOnContainer instead of colorPrimary and colorOnPrimary. (44bfe2d)
    • Updated Color dev doc with tonal surface colors. (9a4c21d)
    • Updated dev doc for tonal surface colors in affected components. (2114a11)
    • Crosslink github docs in javadocs (e3b255b)
    • Cross-reference m.io and DAC in Github docs (1785bbf)
  • Material 3
    • Introduce U color tokens (ad63d3f)
    • Add Meizu to dynamic colors allowlist (faf9a32)
    • Remove resources loader support for tonal surface update (1a9d54f)
    • Added default framework text colors (d3dda60)
    • Updated contrast documentation (1d3b8e1)
    • Add shift to dynamic colors allowlist (fde37cf)
    • Expose attr contrastColorThemeOverlay (839b14c)
    • Add dynamic contrast support (862a7e1)
  • MaterialCardView
    • Support android:duplicateParentState. (31af945)
  • MaterialDatePicker
    • Added builder methods for customizing the positive and negative button content descriptions (a00ee50)
    • Fix header layout overlapping (5f1cab6)
    • Fixing the "Column of Days:" announcement causing Talkback verbosity (a782e7a)
  • NavigationView
    • Set material drawable background if the background has been set as a ColorStateList (eba40e9)
  • Predictive Back
    • Update to use decelerate interpolator (5559cbc)
    • Fix issue where predictive back is not enabled in NavigationView after rotating the screen or restarting the activity when the NavigationView is already opened as a drawer (bccbd4f)
    • Fix issue where modal accessibility is not reset after collapsing search view predictively, which caused the screen to appear frozen when using TalkBack (8d83a31)
    • Fixed IllegalStateException crashes caused by MaterialBackAnimationHelper. (02dc779)
    • Fixed UnsupportedOperationException AnimatorSet crash in SearchView. (f101532)
  • ProgressIndicator
    • Allow extending LinearProgressIndicator and CircularProgressIndicator (Closes #​2361) (3b0fd58)
  • Search
    • Set the editable property within SearchBar's AccessibilityNodeInfo representation. (be1395b)
    • Fix issue where predictive back is not enabled in SearchView after rotating the screen or restarting the activity when the SearchView is already expanded (a51561d)
    • Enforced outline variant to use colorSurface as container color. (720998d)
    • Added support to set a default content description if a content description is not set explicitly. (c15a323)
  • SideSheet
    • Add left sheet/sheet edge documentation. (d440e3c)
    • Fix mixed language snippet (f91f17b)
  • Switch
    • Fix drawable scaling for API < 23 (a10c508)
    • Amendments to thumb icon size support (db9a641)
  • Tabs
    • Integrated divider token output into the background drawables. (6b627c2)
  • TextInputLayout
    • Fix editText paddings on pre-Lollipop (2590c42)
    • Fix onMeasure() infinite loop bug caused by posting requestLayout() before endLayout is fully rendered. (93360a5)
    • Mutate cursor drawable before tinting it. (9a4888f)
  • Theming
    • Fix swapped error colors for dynamic contrast theme in light mode (f2ccc11)
  • TimePicker
    • Fix layout getting cut on narrow screens (d10201d)
  • Tokens
  • TopAppBar
    • Simplified logics to animate the container color between lifted state and the default state. (1e9f5f0)
    • Fix dynamic status bar foreground lift on scroll color when using Tonal Surface Color on API Level 33 (c4ae01a)
    • Fix dynamic status bar foreground lift on scroll color when using Tonal Surface Color (569ddac)
    • Fixed that liftOnScrollColor doesn't respect to setLifted when liftOnScroll is set to false. (43242f2)
    • Added liftOnScroll and lifted toggles to the catalog. (4e995d1)
    • Added getMaterialShapeBackground() to return a MaterialShapeDrawable object of the background (non-lifted layer). (c7a0adf)
    • Updated the handling of liftOnScrollColor not override android:background. (2b476b3)
  • Other
    • Cleanup date formats that specify the same field multiple times. (f1da3c3)
    • Update androidx.activity dependency to version 1.8.0 (733fe20)
    • Update androidx.activity dependency to version 1.8.0-rc01 (2cfb127)
    • Remove android:targetSdk where it's not needed (09382b8)
    • Update androidx.activity dependency to version 1.8.0-beta01 (f93c65c)
    • Added a comment before overridden resources. (7d8681f)
    • Delete BackLayer component (4c89301)
    • Stop running Robolectric tests on APIs < 19. (0a6a8a9)
    • Fixed corrupt gradle jar file. (ed9b541)
    • Upgrade Gradle to 7.6.2. (04c0582)
    • Consistently use window coordinates to calculate Snackbar offsets. In one place screen and window coordinates are mixed, which leads to bad behavior in split screen apps. (57b2663)
    • 1.11.0-alpha01 Release. (76a681a)

Full list of release notes

Full list of changes

v1.11.0-rc01

Compare Source

Important

Elevation Overlays within default component styles have been replaced by the new Tonal Surface Color system. Instead of blending the Primary color with the Surface color based on an elevation value, components will now use a specific Surface color role which can be more easily understood and customized.

Documentation for the affected components and which Surface color roles they use has been updated in 2114a11.

Dependency Updates

  • None

Library Updates

  • Gradle
    • Update library version to 1.11.0-rc01 (8bf55e7)

Full list of changes

v1.11.0-beta01

Compare Source

Important

Elevation Overlays within default component styles have been replaced by the new Tonal Surface Color system. Instead of blending the Primary color with the Surface color based on an elevation value, components will now use a specific Surface color role which can be more easily understood and customized.

Documentation for the affected components and which Surface color roles they use has been updated in 2114a11.

Dependency Updates

Dependency Previous version New version
androidx.activity 1.8.0-beta01 1.8.0

Library Updates

  • Badging
    • Adjust badge vertical offset for certain components to fit design requirements (78cc54b)
    • Add note in attachBadgeDrawable method docs about menu item views being re-used when there is a structural change in the menu. Since badges are attached to the views, this may change the menu item that the badge is intended for (5e6ea58)
  • Carousel
    • Ensure that extra small size is not larger than the large size (17baf71)
    • Fixed crash when recyclerview has a size of zero. (26c3129)
    • When navigating with keyboard, scroll focused item to nearest focal keyline, not the first focal keyline (fb9c1c6)
    • Force hero strategy to be start-aligned if there are not enough items to make it center-aligned (9a2347b)
    • Add logic for multibrowse strategy to change strategy when number of items is less than the number of keylines (cbb380d)
    • Fixed focus order when using keyboard navigation for hero carousels. (0356f24)
    • Cleaning up multi-browse strategy and removing compact arrangement (ed4647d)
    • Disallowing center aligned hero strategy with only 2 items since it does not make any sense. With only 2 items there can only be a start state and end state with the hero strategy. (d5d604d)
    • Fix issue with uncontained carousel not having a proper end scroll value due to assumption made in end scroll calculation (8cb444b)
    • Added tests for hero and multibrowse strategies when the carousel container is very small. (8312162)
    • Update scroll offset to scroll to the estimated position that it was at upon an initial load (4a6ae4d)
    • Fixed strategies crashing when there is not enough available space for a large and a small item (c418063)
  • Catalog
    • Use BottomSheetDialogFragment (2c53952)
    • Update navigation drawer state handling to be more accurate in demo (74ac87c)
    • Update navigation drawer state handling to be more accurate in custom drawer demo (1252d4f)
    • When bottom sheet is collapsed, back callback is enabled (98439df)
  • CollapsingToolbarLayout
    • Fix issue where expanded text gets ellipsized too aggressively when using title fade mode and the toolbar has menu items (094e3e2)
  • Color
    • Introduce U color tokens (ad63d3f)
    • Delete unused contrast resources (541df07)
  • Documentation
    • Add note to clarify that automatic back handling in components is only for API 33+ (ad2b5f8)
    • Update Predictive Back doc to recommend 1.10.0 stable version (b8b1a66)
    • Update doc to explain how to allow Top App Bar to grow taller in response to system font setting (a01a68d)
    • Fix carousel docs (247240c)
  • MaterialCardView
    • Support android:duplicateParentState. (31af945)
  • MaterialDatePicker
    • Added builder methods for customizing the positive and negative button content descriptions
    • Cleanup date formats that specify the same field multiple times. (f1da3c3)
      (a00ee50)
  • Predictive Back
    • Update to use decelerate interpolator (5559cbc)
    • Fix issue where predictive back is not enabled in NavigationView after rotating the screen or restarting the activity when the NavigationView is already opened as a drawer (bccbd4f)
  • Search
    • Set the editable property within SearchBar's AccessibilityNodeInfo representation. (be1395b)
    • Fix issue where predictive back is not enabled in SearchView after rotating the screen or restarting the activity when the SearchView is already expanded (a51561d)
  • TextInputLayout
    • Fix editText paddings on pre-Lollipop (2590c42)
    • Fix onMeasure() infinite loop bug caused by posting requestLayout() before endLayout is fully rendered. (93360a5)
  • Tokens
  • Other
    • Update androidx.activity dependency to version 1.8.0 (733fe20)

Full list of changes

v1.11.0-alpha03

Compare Source

Important

Elevation Overlays within default component styles have been replaced by the new Tonal Surface Color system. Instead of blending the Primary color with the Surface color based on an elevation value, components will now use a specific Surface color role which can be more easily understood and customized.

Documentation for the affected components and which Surface color roles they use has been updated in 2114a11.

Dependency Updates

Dependency Previous version New version
androidx.activity 1.8.0-alpha06 1.8.0-beta01

Library Updates

  • BottomSheet
    • Fix sheet corners animation (de27132)
  • Carousel
    • Tweak uncontained strategy logic to adjust medium size items to improve motion (93660d4)
    • Fixed formatted for KeylineState and KeylineStateList (b80d9a5)
    • Fixed keyline shifting in RTL for uncontained carousels (7151714)
    • Reduce the number of truncations in intermediate calculations (4ce7e4c)
    • Update vertical scroll speed to be faster (c6ea2d4)
    • Fix some a11y bugs in Carousel (3d84841)
    • Center aligned uncontained carousel (b6f6eb5)
    • Add left-aligned uncontained strategy (9d81cac)
    • Fix orientation not correct in item decoration calculations (966f7da)
    • Update mask size on size change if mask x percentage has been set (dc91b39)
  • Catalog

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/material branch from b13d982 to 2e8c025 Compare May 2, 2024 19:44
@renovate renovate bot changed the title Update dependency com.google.android.material:material to v1.11.0 Update dependency com.google.android.material:material to v1.12.0 May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants