Skip to content

Update layoutlib to v16.1.1#2185

Merged
jrodbx merged 2 commits intomasterfrom
renovate/layoutlib
Dec 6, 2025
Merged

Update layoutlib to v16.1.1#2185
jrodbx merged 2 commits intomasterfrom
renovate/layoutlib

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Dec 6, 2025

This PR contains the following updates:

Package Change Age Confidence
com.android.tools.layoutlib:layoutlib-runtime (source) 16.0.1 -> 16.1.1 age confidence
com.android.tools.layoutlib:layoutlib-resources (source) 16.0.1 -> 16.1.1 age confidence
com.android.tools.layoutlib:layoutlib (source) 16.0.1 -> 16.1.1 age confidence

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 is behind base branch, or you tick the rebase/retry checkbox.

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


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

This PR was generated by Mend Renovate. View the repository job log.

@jrodbx jrodbx force-pushed the renovate/layoutlib branch from a449d1d to 9594971 Compare December 6, 2025 03:26
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Dec 6, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@jrodbx jrodbx merged commit 677585a into master Dec 6, 2025
16 checks passed
@jrodbx jrodbx deleted the renovate/layoutlib branch December 6, 2025 05:39
@jrodbx jrodbx mentioned this pull request Dec 6, 2025
@SimonMarquis
Copy link
Copy Markdown
Contributor

SimonMarquis commented Dec 10, 2025

👋 Hi @jrodbx @geoff-powell, it seems like this layoutlib update introduces unexpected changes regarding colors.

For instance:

Is it directly related to this update? Is it known?

@geoff-powell
Copy link
Copy Markdown
Contributor

Yes, I assume that is due to the layoutlib updates. I can try and look in the source for any recent changes

@SimonMarquis
Copy link
Copy Markdown
Contributor

With more logs, here is what I observe:

On alpha-02 (layoutlib 15.2.3)

WARNING: A Java agent has been loaded dynamically (X:\.gradle\caches\9.2.1\transforms\4124d097c23e8552b0c3161720d7c580\workspace\transformed\byte-buddy-agent-1.17.6.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Dec 10, 2025 1:49:49 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: SystemFonts [2]: Loading font config from X:\.gradle\caches\9.2.1\transforms\984fd1d85cb3cd13482a3e16ddbbe7db\workspace\transformed\layoutlib-runtime-15.2.3-win\data\fonts\fonts.xml
Dec 10, 2025 1:49:49 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: SystemFonts [2]: Loading font config from X:\.gradle\caches\9.2.1\transforms\984fd1d85cb3cd13482a3e16ddbbe7db\workspace\transformed\layoutlib-runtime-15.2.3-win\data\fonts\font_fallback.xml
Dec 10, 2025 1:49:49 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: java.exe [4]: Unable to find pattern file or unable to map it for am
Color(0.98039216, 0.972549, 1.0, 1.0, sRGB IEC61966-2.1), fffaf8ff
Color(0.07058824, 0.07450981, 0.09411765, 1.0, sRGB IEC61966-2.1), ff121318

On latest SNAPSHOT (layoutlib 16.1.1)

WARNING: A Java agent has been loaded dynamically (X:\.gradle\caches\9.2.1\transforms\9d4a979ea54750b3e8eb10306de278f9\workspace\transformed\byte-buddy-agent-1.18.2.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.Toast"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "textColor" in style "NotificationAction"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.DeviceDefault.Notification"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.DeviceDefault.Notification.Title"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.DeviceDefault.Notification.BigTitle"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.DeviceDefault.Notification.Reply"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.DeviceDefault.Notification.Info"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.resources.base.BasicStyleResourceItem <init>
WARNING: Conflicting definitions of "fontFamily" in style "TextAppearance.DeviceDefault.Notification.Time"
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: SystemFonts [2]: Loading font config from X:\.gradle\caches\9.2.1\transforms\e6bfb8746335e0b01cd9800f97b49e63\workspace\transformed\layoutlib-runtime-16.1.1-win\data\fonts\fonts.xml
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: SystemFonts [2]: Loading font config from X:\.gradle\caches\9.2.1\transforms\e6bfb8746335e0b01cd9800f97b49e63\workspace\transformed\layoutlib-runtime-16.1.1-win\data\fonts\font_fallback.xml
Dec 10, 2025 1:50:27 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: HWUI [2]: Using Fontation backend (prop=Auto)
Dec 10, 2025 1:50:28 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: FeatureFlagsImplExport [4]: android.os.flagging.AconfigStorageReadException: ERROR_PACKAGE_NOT_FOUND: package android.xr cannot be found on the device
Color(0.98039216, 0.972549, 0.99607843, 1.0, sRGB IEC61966-2.1), fffaf8fe
Dec 10, 2025 1:50:28 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: ImageReader_JNI [3]: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
Color(0.050980393, 0.05490196, 0.07058824, 1.0, sRGB IEC61966-2.1), ff0d0e12
Dec 10, 2025 1:50:29 PM app.cash.paparazzi.internal.PaparazziLogger logAndroidFramework
INFO: ImageReader_JNI [3]: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers

In these logs, I've added a dump of the ColorScheme.background, and as you can see, it changed

- Light: Color(0.98039216, 0.972549, 1.0, 1.0, sRGB IEC61966-2.1), fffaf8ff
+ Light: Color(0.98039216, 0.972549, 0.99607843, 1.0, sRGB IEC61966-2.1), fffaf8fe
- Dark:  Color(0.07058824, 0.07450981, 0.09411765, 1.0, sRGB IEC61966-2.1), ff121318
+ Dark:  Color(0.050980393, 0.05490196, 0.07058824, 1.0, sRGB IEC61966-2.1), ff0d0e12

@SimonMarquis
Copy link
Copy Markdown
Contributor

SimonMarquis commented Dec 10, 2025

And the actual color is defined as

<color name="system_background_light">#FAF8FF</color>
<color name="system_background_dark">#121318</color>

in https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/core/res/res/values/colors.xml#398

@TWiStErRob
Copy link
Copy Markdown
Contributor

Previous PR was #2066 which introduced the Java 21 requirement.

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.

4 participants