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:

  1. Receive string identifier of desired bundle.

    • Version can be specific as 1_3, latest minor patch as 1_X, or latest version as X_X.

  2. Resolve latest version and patch, check if version exists.

  3. Download the bundle.

Each bundle is downloaded by executing these steps:

  1. Download the .manifest file for the bundle.

    • Check CRC to verify if it was downloaded correctly.

  2. 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).