Skip to content

fix(deps): update metro to v0.8.0#4

Merged
ShadowRZ merged 2 commits into
masterfrom
renovate/metro
Dec 2, 2025
Merged

fix(deps): update metro to v0.8.0#4
ShadowRZ merged 2 commits into
masterfrom
renovate/metro

Conversation

@renovate

@renovate renovate Bot commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin 0.7.7 -> 0.8.0 age confidence
dev.zacsweers.metro:runtime 0.7.7 -> 0.8.0 age confidence

Release Notes

ZacSweers/metro (dev.zacsweers.metro:dev.zacsweers.metro.gradle.plugin)

v0.8.0

Compare Source

2025-12-01

  • New: New dev.zacsweers.metro:metrox-android artifact for Android AppComponentFactory support. See the docs for more information.

  • New: New dev.zacsweers.metro:metrox-viewmodel and metrox-viewmodel-compose artifacts for AndroidX ViewModel support. See the docs (compose docs ) for more information.

    • Should I use this?

      • Well, that's up to you! This artifact is mostly for projects coming from heavy use of more vanilla Android architecture components or hiltViewModel() use. Modern Android apps should use higher level architectures like Circuit* (Disclosure: I am one of the authors of Circuit, and I'm a big fan of it!), Voyager, etc. that abstract away ViewModel management.
  • New: Add generateMetroGraphMetadata Gradle task that writes a merged JSON dump of all binding graphs in the project. This can be chained from the GenerateGraphMetadataTask for further processing.

  • New: Add analyzeMetroGraph Gradle task that performs comprehensive graph analysis including fan-in/fan-out, betweenness centrality, dominator analysis, and longest path detection.

  • New: Add generateMetroGraphHtml Gradle task that generates interactive HTML visualizations of dependency graphs using ECharts. Features include force/circular layouts, filtering by package/scope/synthetic bindings, metrics heatmaps, and longest path highlighting. See the graph analysis docs for more information.

  • New: Add MetroArtifacts Gradle API for accessing Metro reports and graph metadata directories.

  • New: Add supportedHintContributionPlatforms Gradle DSL property to manually override supported hint contribution generation on different platforms. By default this computes default supported platforms based on the platform and Kotlin tooling version.

  • API Change: Rename generateJvmContributionHintsInFir Gradle DSL property to generateContributionHintsInFir. Note this property/mode still doesn't really work and is highly experimental at the moment.

  • Behavior Change: Add @DelicateMetroGradleApi annotations to relevant Gradle extension APIs.

  • Behavior Change: The generateContributionHints property now computes defaults per platform and per Kotlin compilation as a convention and can be overridden.

  • Behavior Change: All non-final classes with member injections or that extend classes with member injections must now be annotated with @HasMemberInjections. This is enforced with a new diagnostic check.

  • Enhancement: Lazily validate multibindings. Previously, multibindings were validated eagerly even if they were unused in a graph.

  • Enhancement: Report all duplicate bindings errors during graph construction rather than failing at first.

  • Enhancement: Support FirFunctionCall evaluation in annotation arguments during FIR.

  • Enhancement: Order before the Compose compiler on Kotlin 2.3.0+.

  • Enhancement: Only print Metro Gradle version configuration mismatch warnings once rather than per-compilation.

  • Enhancement: Report Metro Gradle configuration issues to Gradle's Problems API.

    • While this is nice for the IDE integration/Develocity integration, it's wholly hidden away from CLI users. So, Metro will still print these warnings to console too.
  • Fix: Support member injection of classes that have no member injections but do extend superclasses with member injections.

  • Fix: Catch more IrErrorType error types cases and report context/advice where possible.

  • Fix: Dedupe binding containers contributed to both parent and child graphs.

  • Fix: Fix support for Anvil's exclude argument in dependency graph annotations when Anvil interop is enabled.

  • Fix: Fix colliding reports destinations in KMP projects by disambiguating with the target path as another subdir indirection.

  • Fix: Fix qualifiers not being propagated to generated MembersInjector classes for multibindings.

  • Fix: Remove misleading "doesn't appear to be visible to this compilation" hint, as this hint was misreporting.

  • Fix: Fix not reserving properties multibinding contributors that are behind aliases.

  • Fix: Stub hint function bodies if FIR-generated.

  • Fix: Hide FIR-generated hint functions.

  • Fix: Full support injected Java fields from Dagger-processed Java supertypes.

  • Fix: Use correct type args for empty map provider return types.

  • Fix: Add Dagger's internal SetFactory, MapFactory and MapProviderFactory to known Dagger ClassIds in Provider interop.

  • Removed: Removed deprecated enableScopedInjectClassHints Gradle DSL property.

  • Removed: Removed deprecated enableStrictValidation Gradle DSL property.

  • Removed: Removed deprecated contributesGraphExtension Gradle DSL property.

  • Removed: Removed deprecated contributesGraphExtensionFactory Gradle DSL property.

  • Removed: Removed deprecated optionalDependencyBehavior Gradle DSL property.

  • Removed: Removed deprecated OptionalDependencyBehavior Gradle plugin class.

  • Removed: Removed deprecated includeAnvil Gradle DSL function.

  • Removed: Removed deprecated ContributesGraphExtension annotation.

  • Removed: Removed deprecated OptionalDependency annotation.

Special thanks to the following contributors for contributing to this release!


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 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.

@renovate renovate Bot added the dependencies Project dependencies related issue / PR label Dec 1, 2025
POMs are not resolved in dependencies task but resolved in actual build.

TODO: Fix
@hanekokoro-bot

hanekokoro-bot Bot commented Dec 2, 2025

Copy link
Copy Markdown

Download Debug Artifacts: projectkafka-debug.zip

@ShadowRZ
ShadowRZ merged commit 23c8ad8 into master Dec 2, 2025
2 checks passed
@ShadowRZ
ShadowRZ deleted the renovate/metro branch December 2, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Project dependencies related issue / PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant