问题
I read on how to reduce SKMaps.zip file size by deleting some of the files. Regarding to the same I need more information.
I deleted grayscalestyle, outdoorstyle and nightstyle folders and all the contents of sound_files (Maps/Advisor/en) directory.
There are two folders .Common and .Routing, .Common is of 28.5MB!! Are all the contents of this directory required? I tried deleting these two folders completely which resulted in map crash. If can be deleted which all files in these two folders can be deleted?
PreInstalledMaps directory is >10MB, which files can be deleted from this? I don't have preinstalled maps feature at all.
I read this, I need much more clarifications WRT other directories. Please let me know which all directories/files can be deleted as I need to reduce final APK size as much as possible.
No Routing/directions in this app.
回答1:
The common directory contains files shared by all styles - the biggest file in there is the fonts file.
The fonts file provides all the required glyphs for all the character sets that the SDK supports (latin, arabic, cyrillic, chinese, etc.) - for the time being you cannot delete anything in there. In a future update there will be the option to use system fonts (instead of a fonts file).
The only workaround (at this time) would be to separate this file from the bundle, host it on your servers and download it before starting the SDK - this will be a one time operation - it will reduces the initial app size but it will increase the startup time (the first time).
The PreInstalledMaps folder - you can delete the meta folder.
来源:https://stackoverflow.com/questions/27590673/skmaps-bundle-size-is-big