8000 `null` value annotation, when referecing Android's `BuildConfig.` · Issue #350 · google/ksp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
null value annotation, when referecing Android's BuildConfig. #350
Open
@gmazzo

Description

@gmazzo

We have a custom processor for our FeatureToggles solution:

@FeatureToggle(key = "MOB_DEBUG_REQUEST_ENABLED", defaultsTo = BuildConfig.HTTP_REQUEST_DEBUGGING)

With kapt, the value correctly read from Android's BuildConfig class (generated by buildConfigField).
With ksp, we get null instead on KSValueArgument[name = 'defaultsTo'].value.

I've seen a similar issue when there are compilations issues (like a missing class). I've not confirmed it, but I'm pretty sure that generated code from generate${variant}BuildConfig task's output is getting added as classpath for ksp task.

Metadata

Metadata

Assignees

Labels

P1major features or blocking bugsbugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0