Hi folks, is it possible to instance objects using...
# multiplatform
m
Hi folks, is it possible to instance objects using reflection at the common level?
g
afaik kotlin/native doesn't support creating instance of object with reflection (or ever will?) so probably not
stuck with kotlin jvm I guess
p
Not possible through reflection, but you can use KSP for that (generate dynamic adapters in KSP and then instantiate your stuff via them). I am doing exactly that in my ObjectForms library, check this talk for more details:

https://www.youtube.com/watch?v=5ZeF24yXigk

g
Oh cool to know, thx for the info!
m
Thanks!