Is it possible to make all the classes from the `s...
# multiplatform
i
Is it possible to make all the classes from the
shared
module
internal
by default? I would like to expose use case interfaces only to my
iosApp
and
androidApp
, as they have no business instantiating anything else from the shared module.
🙏 1
🚫 1
e
you can turn on explicit api mode: https://github.com/Kotlin/KEEP/blob/master/proposals/explicit-api-mode.md it doesn't make everything internal by default, but it does warn/error if you use the default visibility
1
i
Interesting, thanks! I'll check it out
j
maybe you can clone the open all compiler plugin and try to modify it to transform them to
internal
i
Appreciate the idea, but I'm already using
explicitApi
- that's even better than I originally asked