I’m trying to create a Retrofit-like mp lib ( declaring interfaces for API, which will be implemented at runtime through a proxy instance ).
Well, I know reflection is basically unavailable on
js ATM, but it could wait.
I’ve already created something for JVM ( Kotlin ), but I would like to keep as much as possible in common code ( I guess all of us want that ); so I’m asking,
is there a “common” way for “proxy” an interface at runtime? Or I better keep using
Proxy
for jvm, and something other for native ( what? 😄 I don’t know much about native ) and try to keep in common as much code as possible?