Skip to content

Updating Blockly Library (Major Update)

Aboubakar Mountapmbeme edited this page Jan 10, 2019 · 2 revisions

Updating Accessibleblockly with the newest version of Blockly (This is a major update)

Depending on the magnitude and type of changes made in the Blockly Library, updating might require more efforts than simply pulling down the latest version of the Blockly Library as is the case with this current update.

Blockly still depends on the closure-library and the latest version of Blockly works well with the latest verstion of the closure-library. Thus we should update both Blockly and the closure-library.

This update constitutes a major update because the new version of Blockly has undergone tremendous changes. Blockly has been completely refactored with new functionalities added. Some functions have been renamed, others deprecated and others moved under different namespaces. After pulling down the newest version of Blockly and closure-library, all the functionalities of accessibleblockly are broken due to the changes in Blockly that are not reflected in accessibleblockly files.

Accessibleblockly overrides some of the core Blockly functions which unfortunately have been refactored in the latest version of Blockly. The following accessibleblockly files contain some of the overrides: menu_nav.js, core_overwrites.js.

The file menu_nav.js is responsible for navigation and rendering the flyout. It partly does so by overriding some of the main Blockly functions. All the overridden functions in this file should be updated to reflect their implementation as it is in the latest Blockly.

Care should be taken when doing these updates because inside these functions, accessibleblockly logic are mixed with the main Blockly logic.