From f60d8680a46506bf56bf6106c3017b183fbd9390 Mon Sep 17 00:00:00 2001 From: Toru HOTTA Date: Fri, 26 Oct 2018 22:01:06 +0900 Subject: [PATCH] add XML parser's option for short application name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I can't swizzle, when I use short application name attribution. EX. ApplicationName --- src/ios/after_prepare_hook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/after_prepare_hook.js b/src/ios/after_prepare_hook.js index 224f679..db49b6c 100644 --- a/src/ios/after_prepare_hook.js +++ b/src/ios/after_prepare_hook.js @@ -28,7 +28,7 @@ module.exports = function(context) { fs.writeFileSync(PATH, '#define CDVREPRO_ENABLE_SWIZZLING ' + value); } - var parser = new xml2js.Parser(); + var parser = new xml2js.Parser({ignoreAttrs: true}); var CONFIG_XML_PATH = path.join(context.opts.projectRoot, 'config.xml'); var config = fs.readFileSync(CONFIG_XML_PATH, 'utf8');