App Store 支持增量更新后带来哪些变化,对开发者有何影响

如题所述

简单地说,App Store 会读取开发者所提交 application bundle 里面的所有内容,然后对比此前的每一个旧版本,只取每一次对比不同的部分,然后生成不同的多个 patch package,给不同旧版本的用户下载。

最显著的变化是,假设 Numbers for iOS 有一个 bug fixed 新版本,完全包可能是 700MB,但增量更新版可能只有十多 MB,下载需要更少的时间使用更少的流量。不过依据具体情况不同,安装时间可能会变长。

至于对开发者的影响,上面说了不需要特别做什么,不过要想为用户提供更好的体验,有两个提示和一个特别注意事项:

别做不必要的文件更改 ── Do not make unnecessary modifications to files. Compare the contents of the prior and new versions of your app with diff or another directory comparison tool and verify that you've only changed what you expect within your app bundle.

需要更改的内容最好独立独立放置,避免修改大尺寸的旧内容文件 ── Content that you expect to change in an update should be stored in separate files from content that you don't expect to change. This reduces the size of the update package and increases its install speed.

Warning: 不要依赖不同的文件创建或修改时间,App Store 的 diff 对比会忽略 metadata,即前后同样名字和大小的文件会被当成同一个 ── Your app should not rely on the creation and modification dates of files in your application bundle. When your app is updated using an update package, files are updated only if their content changes and will not be updated if only their metadata (e.g. creation and modification date) changes.
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网