Asked in multiplatform but this channel is more active
Is there any way to anotate a class in common module with java-only lib anotations?
expected/actual didnt work because the anotation has enum inside and i couldnt get it to work
I know that kvision has managed that somehow with their Spring annotations in Kotlin common code
l
Landry Norris
10/13/2022, 12:51 PM
I’ve used optional expectation for android-specific annotations, like Keep in common code. It works well, and as a plus, you only need to actualize it on the platforms you care about.
l
Lucas
10/13/2022, 1:25 PM
Optional expectations work partly, the main problem was typealiasing the enum inside the annotation
It has to be done in 2 separate expect/actual statements