summaryrefslogtreecommitdiff
path: root/StoneIsland/scripts/plist-hook.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-10 16:45:35 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-10 16:45:35 +0200
commitaa14cf56259f7e7ffb4c18af013cdfcfc56953fa (patch)
treee5b90f703afde73c1ba485443c929b9cf8bc704c /StoneIsland/scripts/plist-hook.js
parentc53933dbbe11ebc0f3d9cb3ce9d2e5d0f6ebf7bc (diff)
sizing footer. phook script
Diffstat (limited to 'StoneIsland/scripts/plist-hook.js')
-rw-r--r--StoneIsland/scripts/plist-hook.js16
1 files changed, 16 insertions, 0 deletions
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' });
+
+};