I am building a very simple game, for which (for now anyway) I am not using Box2D, nor advertising. And I was wondering how I can strip down the size of the .apk by removing unneeded native libraries.
Looking at the list of .so files included in the build of the Android project, I see the following:
libbitop.so
libggooglebilling.so
libgideros.so
libgvfs.so
libjson.so
liblfs.so
liblsqlite3.so
liblua.so
libluasocket.so
libzlib.so
From those, I gather that I need at least libgideros.so and liblua.so. I am assuming that I don't need libgooglebilling.so or libsqlite3.so. I see examples for writing files that require libjson.so (though I am not doing that yet). But do I need libluasocket.so and libzlib.so? And what are liblfs.so, libgvfs.so and libbitop.so needed for?
Comments
libgideros.so
libgvfs.so
liblua.so
possibly (depending on version)
libzlib.so
Just don't forget to remove loading them from Main activity too
If you want to decrease size even more, you can remove all x86 binaries (they emulate armv either way, only performance might be slower on x86 devices, but there are not that much x86 tablets either)
And if you need to reduce size even more, then you can remove all armv6 binaries (there are very little of those devices left, and many frameworks like Corona or Unity removed support for them already some time ago
Comments on libs:
libbitop.so - BitOp plugin (http://docs.giderosmobile.com/reference/plugin/bit#bit)
libggooglebilling.so - Google Billing plugin (http://docs.giderosmobile.com/reference/plugin/GoogleBilling#GoogleBilling)
libgideros.so - Gideros core
libgvfs.so - Gideros virtual file system
libjson.so - Native json plugin (http://docs.giderosmobile.com/reference/plugin/json#json)
liblfs.so - Lua File system plugin (http://docs.giderosmobile.com/reference/plugin/lfs#lfs)
liblsqlite3.so - SQLite plugin (http://docs.giderosmobile.com/reference/plugin/sqlite3#sqlite3)
liblua.so - Lua
libluasocket.so - Lua Socket Plugin (http://w3.impa.br/~diego/software/luasocket/reference.html)
libzlib.so - zlib binary (for some versions it is linked inside libgideros.so)
0_0
Soccer Plugin! WC 2014 still with us!