As we’re all aware, Android devices can’t play M4A or CAF files and require OGG/WAV files in its place, and Apple devices could make better use of M4A/CAF instead of OGG/WAV. The tiny issue I’m dealing with is when I have to go back and forth to make builds for each device, I’d rather not include all four file types, resulting in a bloated build to send to everyone on TestFlight/Dropbox, etc. So, with each build, I find myself having to pull the files out of the folder before building.
Is there something in the build.settings file that we can tell Corona to ignore when building for a specific device? I recall finding a parameter to specify when adding certain plug-ins, i.e. iAds and Game Circle, that only worked on one platform and not the other. I used to have to cut and paste the plug-in section and add remarks on the top of the file until someone pointed out the supportedPlatforms parameter (thank you, whoever you are!).
settings = { plugins = { ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, } }
Can we do that with files?