Skip to content

[Feature Request] apoption support for KSP pluginsΒ #1104

@xinzhengzhang

Description

@xinzhengzhang

In some ksp usage scenarios, you need to pass in apoption. But now rules does not implement this function.
I tried to implement it with a options params. #1103
Here's how it's used.

kt_ksp_plugin(
    name = "kotlin-native-coroutine-ksp",
    processor_class = "",
    deps = [
        "@maven//:com_rickclephas_kmp_kmp_nativecoroutines_ksp",
        "@maven//:com_rickclephas_kmp_kmp_nativecoroutines_annotations_jvm",
        "@maven//:com_rickclephas_kmp_kmp_nativecoroutines_core_jvm"
    ],
    options = {
        "nativeCoroutines.suffix" : "Native",
        "nativeCoroutines.flowValueSuffix": "Value",
        "nativeCoroutines.flowReplayCacheSuffix": "ReplayCache",
        "nativeCoroutines.stateSuffix": "Value",
        "nativeCoroutines.stateFlowSuffix": "Flow",
    },
    visibility = ["//visibility:public"],
)

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