Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build variant specific generated source dir for proto files #3368

Open
@Zeliret

Description

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

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /