Skip to content

Remove Kotlin Metadata annotations #129

Open

Description

@ctadlock

Kotlin adds a Metadata annotationto every class which includes the class name and all function names; mostly defeating the purpose of renaming. There in an unmeta plugin, but it would be better if it was incorporated into this one so didnt have to deal with both.

Activity

  1. changed the title [-]Remove Kotlin Metadata annotation[/-] [+]Remove Kotlin Metadata annotations[/+] on Nov 22, 2022
  2. yGuy commented on Nov 22, 2022

    @yGuy
    Member

    IIRC, by default yGuard already removes annotations that are not marked as runtime visible annotations. Can you please provide more information about how these annotations work (are annotated) and how they are used? Because if they don't get removed, then these should be runtime visible annotations which again would indicate that Kotlin might need them at runtime. Pointing to relevant documentation would be helpful to decide on how to proceed. Thanks

  3. added
    enhancementNew feature or request
    needs-informationThere is far too little information available to proceed.
    on Nov 22, 2022
  4. Fohlen commented on Mar 18, 2023

    @Fohlen
    Member

    There's a comprehensive blog article from the R8 team here. The Gist is that:

    • removing the annotations breaks Kotlin support
    • the annotation references superclass names (these need to be adjusted)

    To correctly support Kotlin we should therefore adjust superclass references in Kotlin annotations

  5. added and removed
    needs-informationThere is far too little information available to proceed.
    on Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions