Is it normal to see the Android source set as the ...
# multiplatform
j
Is it normal to see the Android source set as the ios targets sourcesets when using the
Android
view on the file explorer panel?
l
Do you have the same issue when viewing with the Project view (drop-down at the top)?
j
When I use the Project view I can only see the iosMain source set, I believe that is the expected behaviour isn't it?
l
Why do you say "only"? The other ones are just above.
j
I meant, sorry I meant the only iOS sourceSet I see is the iosMain (not the iosSimulatorX64Main)
l
Because you don't have such a directory, right?
j
That's right
But I think that is expected, as that would mean to have unwanted duplication and that would defeat the point of KMP isn't it?
l
Anyway, avoid the Android view, it's very confusing and hides important files (like markdown files). I wish it was removed from Android Studio, may @jim advocate for us 🙏🙏
4
j
Fair play 🙂
Thanks Louis
j
haha, fwiw, I also avoid the Android view. Not sure why it exists, but maybe there is a reason and maybe not worth advocating for its removal since it's easy enough to just change views? I'll poke a couple people and see if there is appetite to do something about it, thanks for raising!
Also, feel free to file bugs on AndroidStudio as you find them.
l
It should not be the default because it hides READMEs and other important files. Second, there's no visible way to change that default. I raised this at least two times a long time ago, and while there was agreement, nothing was done. I hope I'm not losing my time this 3rd time. Anyway, thank you for responding 🙂
j
setting project as default and a better integration of AGP into Kotlin multiplatform and the IDE would be great. It is weird having to apply agp for KMP projects with Android instead of being applied by Kotlin if
android()
exists. And source sets looks different in the IDE when "they are the same".