Are all the files in the folder included in the app or only files referenced by the app?

Does the build process only include the files used by the app in the final app or does it include image files and other idle files, not currently in use by the app?

Does it make sense to cull the un-used files from the app folder before a build?

Thanks!
stu

Hi Stu,

The build will bundle files that you put in the project folder. Thus, you shouldn’t include any “source” files like source artwork (Photoshop, Illustrator, etc.) in the project folder. Only include the production assets required by the app.

I suppose you could leave a few small, random files in there and it probably wouldn’t harm anything, if there were no conflicts as a result.

Take care,

Brent

Thanks! I was wondering why the app was 16mb and was fairly simple in my mind.

Are the versioning files ignored at least? Like .svn folder for subversion?

Hi @johnlangone,

Thanks for reminding me, I forgot to clarify that: the build server does ignore/disregard folders and files starting with a dot/period, like “.svn”. This is done so that source control and hidden files/folders are ignored.

Brent

so anything in a folder is skipped?

What about the “assets” folder I see in some of the sample apps?

I made an archive folder (for backups)  and found my app getting much larger which caused the question. Now I moved the archive folder somewhere else. hopefully it will go down in app filesize.

thanks!
stu

Hi Stu,

Certainly, things in non-dot-prefixed folders are bundled in! I meant that if you prefix the folder with a dot, like “.svn”, it will not be built in.

So, a folder “assets” will definitely be built in, along with its contents. But a folder named “.assets” will not.

Brent

Hi Stu,

The build will bundle files that you put in the project folder. Thus, you shouldn’t include any “source” files like source artwork (Photoshop, Illustrator, etc.) in the project folder. Only include the production assets required by the app.

I suppose you could leave a few small, random files in there and it probably wouldn’t harm anything, if there were no conflicts as a result.

Take care,

Brent

Thanks! I was wondering why the app was 16mb and was fairly simple in my mind.

Are the versioning files ignored at least? Like .svn folder for subversion?

Hi @johnlangone,

Thanks for reminding me, I forgot to clarify that: the build server does ignore/disregard folders and files starting with a dot/period, like “.svn”. This is done so that source control and hidden files/folders are ignored.

Brent

so anything in a folder is skipped?

What about the “assets” folder I see in some of the sample apps?

I made an archive folder (for backups)  and found my app getting much larger which caused the question. Now I moved the archive folder somewhere else. hopefully it will go down in app filesize.

thanks!
stu

Hi Stu,

Certainly, things in non-dot-prefixed folders are bundled in! I meant that if you prefix the folder with a dot, like “.svn”, it will not be built in.

So, a folder “assets” will definitely be built in, along with its contents. But a folder named “.assets” will not.

Brent