Between layers? Probably not. I don’t know what you’re doing, but I’d generally advise interfaces over expect/actual anyway.
https://vimeo.com/371460823 I’m not sure what you mean by interfaces being less “platform agnostic”. If it has to be expect/actual, I think you’d need multiple jvm versions, or some other mechanism (like an init arg to switch between them at runtime). Not sure how you’d do multiple versions.