Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for variant aware KSP arguments #861

@runningcode

Description

@runningcode

I would like to provide variant specific KSP arguments. For example, I would like kspDebug and kspRelease to have different arguments.

An example use case is Room or DeepLinkDispatch. Both are kotlin symbol processors which write output to a directory. The directoy must be task specific so that kspDebug and kspRelease do not write to the same directory. Two tasks which write to the same directory disable up-to-date checks and caching in Gradle because the build becomes non-deterministic.

For reference, Java annotation processors and KAPT both provide a way of passing task specific arguments to the annotation processors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAPI changes may be involved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions