Bundle System Design
Procedure
The bundle index is downloaded at the start of the application.
When a bundle is requested, it will go through these steps:
-
Receive string identifier of desired bundle.
-
Version can be specific as
1_3, latest minor patch as1_X, or latest version asX_X.
-
-
Resolve latest version and patch, check if version exists.
-
Download the bundle.
Each bundle is downloaded by executing these steps:
-
Download the
.manifestfile for the bundle.-
Check CRC to verify if it was downloaded correctly.
-
-
Check if a bundle with a hash matching the content of the manifest file is cached.
-
If yes, load the bundle.
-
If no, download the bundle (recursive call).
-