Skip to content

IndexJar fails to index .aar files #1489

@pettermahlen

Description

@pettermahlen

When adding dependencies to .aar files (Android resource archives), the 'packages' field in maven_install.json doesn't get populated. It seems like the issue is in IndexJar. It would need to understand that if the file in question is an AAR, it needs to look for class files in the classes.jar file.

Probably, a good idea would be to separate out the logic for extracting packages information from class files into a separate method taking a ZipInputStream as a parameter, and either invoke that with the whole JAR file normally, or the classes.jar file if IndexJar is invoked with an AAR.

Does that make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions