I have a shared KMM module which target iOS and An...
# multiplatform
s
I have a shared KMM module which target iOS and Android. Is it possible to slim down the number of folder in the
src
folder as there is code only in
androidMain
,
commonMain
, and
iOSMain
. Thanks!
c
Just delete the other folders
s
I never created them so my first guest would be that they will be re-created šŸ¤”
c
No, maybe the project setup wizard created them.
s
This project is like 3-4 years old so not sure it was created with the wizard but I’ll remove the unnecessary folders and see how it goes šŸ˜… thanks!
l
Which view are you in? One of the project views shows these folders even though they don’t ā€˜exist’. I generally use the ā€˜Project files’ view.
j
s
@Landry Norris I’m in the project view @John O'Reilly Thanks I’ll have a look
j
l
I think Project view often shows source sets that don’t exist, but are technically ā€˜registered’
I like Project Files, since it matches the folder structure, but also highlights folders like the Project view does, but it’s a matter of preference. Try out a few different views.
s
I have deleted the folder and project still builds so that’s a good starting point šŸ˜… I’ll see how it goes @John O'Reilly I had already set it to false, probably after seeing that tweet a few months ago šŸ˜ @Landry Norris Thanks for the tip! I like the Project Files view a lot since it filters a lot of folder that I don’t want to see but still be able to get them in a special subfolder. Pretty cool
m
Is there any way to hide them in
Android
view ?