Background Assets file diff?

Background Assets can support a maximum of 200G. Will the Apple server perform file comparison? For example, file0 is included in both a.aar file and b.aar file. On the Apple server, does it occupy twice the size of a single file?

Answered by Frameworks Engineer in 856627022

Hello! No, Apple servers don’t deduplicate files between separate asset packs. If you include the same file in two asset packs, then it’ll count twice towards the storage limit. If that puts you too close to the limit, then I suggest that you break out the duplicated file into a third asset pack that you download in conjunction with either the first or the second as is needed. Note that the system merges the directory hierarchies in your different asset packs on users’ devices, so the part of your code that loads the file doesn’t need to care that it came from a third asset pack.

Hello! No, Apple servers don’t deduplicate files between separate asset packs. If you include the same file in two asset packs, then it’ll count twice towards the storage limit. If that puts you too close to the limit, then I suggest that you break out the duplicated file into a third asset pack that you download in conjunction with either the first or the second as is needed. Note that the system merges the directory hierarchies in your different asset packs on users’ devices, so the part of your code that loads the file doesn’t need to care that it came from a third asset pack.

Background Assets file diff?
 
 
Q