From aa14cf56259f7e7ffb4c18af013cdfcfc56953fa Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 May 2018 16:45:35 +0200 Subject: sizing footer. phook script --- StoneIsland/scripts/plist-hook.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 StoneIsland/scripts/plist-hook.js (limited to 'StoneIsland/scripts') diff --git a/StoneIsland/scripts/plist-hook.js b/StoneIsland/scripts/plist-hook.js new file mode 100644 index 00000000..a1827079 --- /dev/null +++ b/StoneIsland/scripts/plist-hook.js @@ -0,0 +1,16 @@ +var fs = require('fs'); // nodejs.org/api/fs.html +var plist = require('plist'); // www.npmjs.com/package/plist + +var FILEPATH = 'platforms/ios/Stone Island/Stone Island-Info.plist' + +module.exports = function (context) { + + var xml = fs.readFileSync(FILEPATH, 'utf8'); + var obj = plist.parse(xml); + + obj.NSLocationWhenInUseUsageDescription = "Stone Island needs to serve content based on your location." + + xml = plist.build(obj); + fs.writeFileSync(FILEPATH, xml, { encoding: 'utf8' }); + +}; -- cgit v1.2.3-70-g09d2