Skip to content

Android R8 seems to alter the tag name when companion object extends KLogging() #115

@1951FDG

Description

@1951FDG

Hello,

Thanks for this library, I'm using it :)

I have a class MainActivity with a companion object that extends KLogging():

I noticed that the tag name changes when R8 is on:

When R8 is on: io.github.getsixtyfour.openpyn.MainActivity$b

When R8 is off: io.github.getsixtyfour.openpyn.MainActivity

Browsing the code I noticed that KLoggerNameResolver is responsible for unwrapping the companion class to the enclosing class, I am however uncertain if there is a bug in the implementation or if R8 is doing something funky of which I am unfamiliar with...

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions