bod
07/05/2020, 1:21 PMkotlin
root folder, and added a package
declaration. I'm used to see a warning for this case, saying that the package doesn't match the directory structure (with an intention to move it). But it doesn't currently do it (no warning) - I'm on a Multiplatorm project, not sure if that's a factor. Ideas?wasyl
07/05/2020, 2:07 PMbod
07/05/2020, 2:45 PMr4zzz4k
07/06/2020, 7:33 AMorg.example.mylib.listeners.MyListener
in module mylib
you'll have the following file: mylib/src/main/kotlin/listeners/MyListener.kt
. This doesn't work properly for projects with mixed Kotlin and Java (or Android, IIRC), and also of course there are heuristics which detect mismatches in packages seeing old style of package<>directory mapping. So it's quite a possibility you've seen this for the first time, and this is as intended :) If you don't want to follow this route, creating first Kotlin class with a full path should reenable the warning for next ones.bod
07/06/2020, 7:35 AM