Hi, I’m seeing a somewhat weird issue with KAPT. Might be meant to be like that, so I’m wondering if anyone could provide me with some guidance here.
I’m trying to make this annotation processor support multiple
@Preview
annotation stacked on top of each other. So I’m using the function
xroundEnvironment.getElementsAnnotatedWith(PREVIEW_CLASS_NAME)
to check the generated output of this test
@Preview(
name = "small font",
group = "font scales",
fontScale = 0.5f
)
@Preview(
name = "large font",
group = "font scales",
fontScale = 1.5f
)
@Composable
public fun ComposablePreviewFont() {
}
So with KSP, this generates an output and I can see that the
getElementsAnnotatedWith
function actually has the element. However, with KAPT, the same function does not hold any elements. Is there a reason to this? 😄 And is there a workaround?