I have a multi-platform multi-module project. Is t...
# multiplatform
m
I have a multi-platform multi-module project. Is there any way to allow other modules of the same project to see each other’s
internal
declarations?
r
internal
is by-definition limited to the same module. (That's just a kotlin thing, not MPP-specific)
You could define a
@RequiresOptIn
annotation and use that, if you want. See
@InternalCoroutinesApi
in
kotlinx.coroutines
for example.
m
Yeah I was thinking about that. Too bad it’s not (easily) possible but good to know for sure
(I’m using
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
until I’ve refactored it in a proper way 😉)