10.1.60 upgrade guide

Updated at:

The 10.1.32 baseline is no longer maintained. If your project uses the 10.1.32 baseline, upgrade to the 10.1.60 baseline by following the steps below.

Initialize the container

  • Call the initialization method before the framework loads. Place this call in the - (void)application:(UIApplication *)application beforeDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions method of DTFrameworkInterface. image.png

  • If your project uses the 10.1.32 baseline:

    • Update the paths for custom JSAPIs, preset offline packages, and package information by calling initNebulaWithCustomPresetApplistPath. Move this call from the afterDidFinishLaunchingWithOptions method to the beforeDidFinishLaunchingWithOptions method in DTFrameworkInterface. image.png

    • Set the base class for all H5 pages, the global resource plan, the User Agent (UA), and signature verification settings. Configure these in the - (void)application:(UIApplication *)application afterDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions method of DTFrameworkInterface after the container is initialized. Otherwise, the container default configurations overwrite them. image.png

Container base class

  • Make sure the base class for all custom H5 pages is a subclass of H5WebViewController.H5WebViewController

  • If your original H5 base class implements the back method, remove it.delete back

Custom navigation bar

To customize the default navigation bar style, configure the back button to listen for the kNBEvent_Scene_NavigationItem_Left_Back_Create_Before event.

image.png