Skip to content

Build variant specific generated source dir for proto files #3368

@Zeliret

Description

@Zeliret

Hey everyone 👋

I'm working on a custom task setup, where I download proto files from a remote source. For each flavored build variant I download a set of files or a zip (depends on the task) which can have a Jni or assets, and also a proto file, and I use AGP API to put them into a generated source set: build/generated/*. I know that Wire can automatically detect src/main/proto but how can I tell it to look in generated folder for a specific build variant? I tried to connect my task output (the generated directory property) to the input of the WireTask but so far it doesn't work. Is there any way to do that? I don't want to copy proto files to the src dir, I want to keep them in the build directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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