https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Marc

03/15/2024, 10:53 AM
Does anyone know if there is any plan to provide support for
Context Receivers
on
KMP
? It’s an amazing feature I’m planning to add in one of my libs but make no sense if there won’t be any support 😕
p

Pavel S

03/15/2024, 11:19 AM
It’s supported in KMP
m

Marc

03/15/2024, 11:38 AM
oh really? last time I checked didn’t find out. will try, thanks!
does we need any compile args? did you implement them already? any tip or config I should be aware of?
p

Pavel S

03/15/2024, 12:41 PM
You probably need to enable the feature explicitly in gradle
j

Jeff Lockhart

03/15/2024, 6:38 PM
It depends what platforms you're targeting. Context receivers are only supported for the JVM target currently. It's most likely a KMP project would be targeting more than JVM targets. Also, context receivers have been superseded by the new context parameters proposal. So context receivers won't be released in their current form.
m

Marc

03/15/2024, 6:39 PM
oh, i need at least iOS as well :/ thanks for the clarification!
2 Views