blob: 2b5cb82bc458c3733853c676550f387efff95a20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 your location to show you product drops, which are only available in select locations."
obj.NSLocationAlwaysAndWhenInUseUsageDescription = "Stone Island needs your location to show you product drops, which are only available in select locations."
obj.NSLocationAlwaysUsageDescription = "Stone Island needs your location to show you product drops, which are only available in select locations."
obj.ITSAppUsesNonExemptEncryption = false
xml = plist.build(obj);
fs.writeFileSync(FILEPATH, xml, { encoding: 'utf8' });
};
|