https://kotlinlang.org logo
Title
s

Suraj

10/30/2018, 6:20 AM
hello folks, I was trying to understand
internal
modifier and found that visibility is restricted to a module. And definition of module in context of gradle as per doc is :
a Gradle source set (with the exception that the test source set can access the internal declarations of main);
a)What does
gradle source set
mean? Does it mean a gradle module(talking in terms of an android project) or some subset of it? b)Do we have any advantages of using internal in a multi module project? like reduces incremental build time or so?
y

yole

10/30/2018, 9:06 AM
the advantage of reducing visibility is always the same: ensuring a clean structure of your codebase and avoiding unwanted dependencies. you should always think about that, and not about build time
s

Suraj

10/30/2018, 4:59 PM
okay: 👍 thanks man