From 2eb9b4748d83e9c6d87c37e6b8dbfa091d5a6db6 Mon Sep 17 00:00:00 2001 From: Brian Quinn Date: Wed, 23 Jan 2019 11:54:17 +0000 Subject: [PATCH] Issue #2247, adds shim for preserving 'adapt_manifest' identifier This is a backport of the v4.0.0 change. --- grunt/config/replace.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grunt/config/replace.js b/grunt/config/replace.js index ed50c3f66..11373c6ef 100644 --- a/grunt/config/replace.js +++ b/grunt/config/replace.js @@ -62,7 +62,13 @@ module.exports = function (grunt, options) { grunt.log.writeln('WARNING: xAPI activityID has not been set'); } } - + + // Shim to preserve the 'adapt_manifest' identifier. + if (configJson.hasOwnProperty('_spoor')) { + configJson._spoor._advancedSettings = configJson._spoor._advancedSettings || {}; + configJson._spoor._advancedSettings._manifestIdentifier = spoor._advancedSettings._manifestIdentifier || 'adapt_manifest'; + } + // Combine the course and config JSON so both can be passed to replace. return { 'course': filterNullValues(courseJson),