Skip to content

Bump R8 past 8.9.35 so it can parse Kotlin 2.3 class metadata #112

@OmarAlJarrah

Description

@OmarAlJarrah

Summary

The shrink-survival test module pins R8 8.9.35, which emits non-fatal Info/Warning lines
during the shrink run reporting that it cannot parse Kotlin 2.3 @Metadata (R8 8.9.x supports
Kotlin metadata up to 2.1).

This does not affect output correctness — the @Metadata annotation is retained via
-keepattributes RuntimeVisibleAnnotations and -keep class kotlin.Metadata, and the shrunk
program's Jackson Kotlin-reflection round-trip passes — but it adds log noise to every shrink run
and could mask a genuinely relevant warning.

Suggested direction

Bump the r8 version in gradle/libs.versions.toml to a release whose Kotlin-metadata support
covers the Kotlin version this project compiles with (currently 2.3), once such a release is
available, and confirm the shrink-survival run is quiet. Until then the warnings are expected and
harmless.

Follow-up to the R8 shrink-survival module (PR adding sdk-shrink-test).

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild / CI / packagingtech-debtsimplification / cleanup

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions