IGNORE THIS POST - files are still being selectively excluded or not excluded on Android, but I was oversimplifying things, and I still don’t know why some files aren’t being excluded properly. Back to the drawing board.
A ha! I think I figured out the source of the bug. The way I structure my projects is thus: I have my project folder, and inside of that folder I have a folder called “workFiles” which contains all the various files I use to prepare the app that I don’t want to have included in the build. Accordingly, in my build.settings, I include the following:
excludeFiles = { all = { "workFiles/\*" }, iphone = {}, android = {}, },
Inside of that workFiles folder, I may have all manner of stuff: individual files, as well as additional subfolders. By excluding “workFiles/*”, I accomplish the following:
- On iOS, everything gets excluded as expected (yay!)
- On Android, some files get excluded, but not all. Here’s the breakdown:
- All files (i.e. not subfolders) inside of “workFiles” get excluded
- Subfolders that contain no spaces (i.e. “someSubfolder”) also get excluded
- Subfolders that contain spaces (i.e. “some other subfolder”) DO NOT get excluded
I am generating a sample project that exhibits this and will be submitting a bug shortly. Hopefully we’ll get it squashed soon.
Thanks,
Jason