Beginner Help for Compose Multiplatform

Hey, everyone. I do not know if this is the right subreddit for the question. How does Kotlin (or Android Studio) “detects” classes or functions or packages?

As said in Jetbrains Kotlin Multiplatform Development webpage, the path composeApp/src/commonMain/kotlin contains the App() function.

https://preview.redd.it/z0fnh15nviac1.png?width=758&format=png&auto=webp&s=254227358836aff6679589d80ee9eb1e57055aa3

Can someone explain how does the desktopMain directory able to detect the App() function from commonMain directory without an import statement?

Where is the import statement to use App()?

Is there a rule for importing packages, modules, classes or functions from other location in Kotlin that I do not know or is this a configuration from Android studio that I do not know? I appreciate all answers that will be given.

submitted by /u/gc_g_g
[link] [comments]