Odin
08/28/2022, 4:19 PM@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?ephemient
08/28/2022, 4:48 PMOdin
08/28/2022, 4:50 PMOdin
11/03/2022, 2:12 PM<http://kapt.use.jvm.ir|kapt.use.jvm.ir>=true
from my gradel.properties
file, but I am still getting the same output. Do you know if there is something else I need to test this out 🙂