See https://wiki.mozilla.org/Gaia/Shared for the details on how this works. Not having this mechanism would be pretty crappy.
See https://github.com/taratatach/FFDoku/blob/erwan/index.html for a third party app that reuses code from shared/ (a sudoku game).
Re:Building Firefox OS
by ndesaulniers on Sunday January 27, 2013 @06:22PM
(#5126141)
RE: the first link, it looks like you need a custom profile, therefore a custom build of Gaia, for it to "Probably" work.
FFDoku just copies the assets, as I had originally recommended. That repo contains a 'shared' folder in the root dir, so it's not using the assets shared by Gaia, it's using a literal copy of them. So the same asset winds up on the device twice.
Nick, you were absolutely right, and I was wrong. This is a pain, though, but is understandable. I'll ask the right people if we can do something, because I like not copying stuff all over.
Or maybe we can we can do a static analyzer to make the whole process easier.
Re:Building Firefox OS
by ndesaulniers on Thursday January 31, 2013 @02:52AM
(#5143990)
No worries, we were both unsure. :fabrice verified this today with me.
An example that was a third party app, not certified or made by Mozilla or partners, would be more definitive.