You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, we have a problem when apply NativeCoroutines, we currently use ksp with k2mode=false to generated code. we found @NativeCoroutines can not be applied to the subclass, but must be applied to the parent class or interface
Currently, when it is applied to the parent class or interface, it only generates the corresponding method in the parent class or inferface. For example, for the following classes:
we found @NativeCoroutines can not be applied to the subclass, but must be applied to the parent class or interface
That's correct. The KMP-NativeCoroutines annotations inherit the @HiddenFromObjC behaviour.
Hiding declarations from ObjC must be done on the base declaration, and is inherited by all overrides.
just for FooStore, not BarStore, any way except modify kmp-nativecoroutines-ksp can do this? thank you very much!
The only way to achieve that is to manually define the extensions, instead of using the annotations.
Note: you won't be able to reuse the original name of the declaration since it can't be hidden from ObjC.
Sorry for the delayed reply.
Most of the time, we use the Store(interface), but sometimes we also want to use FooStore(impl). However, the currently generated code doesn’t allow us to access FooStore’s methods directly. Given the scenario, would you consider supporting overridden declarations? Thanks.
hi, we have a problem when apply NativeCoroutines, we currently use ksp with k2mode=false to generated code. we found @NativeCoroutines can not be applied to the subclass, but must be applied to the parent class or interface
Currently, when it is applied to the parent class or interface, it only generates the corresponding method in the parent class or inferface. For example, for the following classes:
if we add @NativeCoroutines annatations to interface
the generated code will be
and in bin framework header we have
but we expect generated code to be
and in bin framework header
just for FooStore, not BarStore, any way except modify kmp-nativecoroutines-ksp can do this? thank you very much!
The text was updated successfully, but these errors were encountered: