Issue with wav files and building for Android

So to summarise I changed:

“Project/Corona/Resource/Sounds/keypads” to “Project/Corona/Resource/Sounds/Keypads” but after running the build script “Project/android/assets/Resource/Sounds/keypads” remained lower case.  I deleted the whole “assets” folder, ran the script again and it was OK after that.

As I mentioned though I also noticed files I had moved previously, had not had their old locations deleted.  So for example I had something like:

Project/Corona/Resource/Sounds/myWavFile.wav

Then moved it to:

Project/Corona/Resource/Sounds/Keypads/myWavFile.wav

In assets, the file appeared in both those locations which is why I mentioned that it obviously doesn’t strip out its contents before copying new stuff in.

Yeah, that would make sense.  Since the Mac file system is not case sensitive by default, it ended up copying your Corona project’s “Keypads” folder to your Android assets “keypads” folder, since that was the original name.  It doesn’t know to rename the folder to change the casing.  Windows would have done the same.  Thanks for bringing this up.  I’ll have to remember in case someone else runs into something similar.

Does it not make more sense for the build script to delete the contents of the android/assets folder altogether though when it is run to avoid stuff like this?

>> Does it not make more sense for the build script to delete the contents of the android/assets folder altogether

I personally wouldn’t like that because it would assume that the native Android developer is *only* using Corona.  With the way it’s set up now, it respects whatever files the native Android developer copied to the assets directory because they may be using them for their own purposes outside of Corona.  Plus, most experienced native Android developers wouldn’t expect a prebuild step to outright delete that folder.

Yeah fair enough i suppose, I was looking at it from the point of developing using corona as the primary tool.