Fixes
- [FIR] Treat
@Multibindsdeclarations as accessors to fix a false positiveCONTRIBUTES_TO_COULD_BE_BINDING_CONTAINERwarning. - [IR] Fix a
ClassCastExceptionduring member injection when a class declares an injected method before an injected property. - [Gradle] Restore
ExperimentalMetroGradleApito thegradle-pluginartifact.
Changes
- Update a few misc kdocs.
- Use
AnalysisFlagsAPI to detect IDE mode in newer Kotlin versions. - [Gradle] Move shared graph report models into the
graphsartifact and makegraph-vieweran implementation dependency of the Gradle plugin. Model APIs now require opting into@ExperimentalMetroGraphApi. Existing model packages and the public experimentalBindingGraphandGraphAnalyzerAPIs are preserved. - [Gradle] Graph reports now have tasks for individual compilations, such as
generateMainMetroGraphHtml. Outputs move tobuild/reports/metro/{target}/{compilation}/. See migration details. - Update
androidx.tracingdependency to2.0.3. - Test against Kotlin
2.5.0-Beta1.
Contributors
Special thanks to the following contributors for contributing to this release!
Consider sponsoring Metro's development
What's Changed
- Update IDE version mappings by @ZacSweers in #2846
- Update Metro bootstrap to v1.4.4 by @renovate[bot] in #2847
- Update IDE version mappings by @ZacSweers in #2850
- Update plugin buildConfig to v6.1.1 by @renovate[bot] in #2851
- Update poko to v0.23.2 by @renovate[bot] in #2849
- Fix false binding-container warnings for multibinding accessors by @vRallev in #2852
- Update dependency zensical to v0.0.63 by @renovate[bot] in #2853
- Misc fixes by @ZacSweers in #2854
- Update dependency pymdown-extensions to v12.1 by @renovate[bot] in #2859
- Update dependency zensical to v0.0.64 by @renovate[bot] in #2858
- Update dependency org.slf4j:slf4j-nop to v2.0.20 by @renovate[bot] in #2857
- Update dependency org.jetbrains.androidx.navigation3:navigation3-ui to v1.1.2 by @renovate[bot] in #2855
- Update dependency androidx.fragment:fragment-ktx to v1.9.1 by @renovate[bot] in #2862
- Test 2.5.0-Beta1 by @ZacSweers in #2861
- Fix member injects when functions appear before properties by @ZacSweers in #2864
- Update dependency androidx.tracing:tracing-wire to v2.0.3 by @renovate[bot] in #2863
- Small IDE and compiler report cleanups by @ZacSweers in #2867
- Use
AnalysisFlagsAPI to detect IDE mode by @ZacSweers in #2848 - Update dependency androidx.work:work-runtime to v2.12.0 by @renovate[bot] in #2868
Full Changelog: 1.4.4...1.4.5