How to use the build function from plist
Find comprehensive JavaScript plist.build code examples handpicked from public code repositorys.
221 222 223 224 225 226 227 228 229
} handleOrientationSettings(platformConfig, infoPlist); updateProjectPlistForLaunchStoryboard(platformConfig, infoPlist); var info_contents = plist.build(infoPlist); info_contents = info_contents.replace(/<string>[\s\r\n]*<\/string>/g, '<string></string>'); fs.writeFileSync(plistFile, info_contents, 'utf-8'); events.emit('verbose', 'Wrote out iOS Bundle Identifier "' + pkg + '" and iOS Bundle Version "' + version + '" to ' + plistFile);
0
5
2
+ 2 other calls in file
213 214 215 216 217 218 219 220 221 222
handleOrientationSettings(platformConfig, infoPlist); /* eslint-disable no-tabs */ // Write out the plist file with the same formatting as Xcode does let info_contents = plist.build(infoPlist, { indent: '\t', offset: -1 }); /* eslint-enable no-tabs */ info_contents = info_contents.replace(/<string>[\s\r\n]*<\/string>/g, '<string></string>'); fs.writeFileSync(plistFile, info_contents, 'utf-8');
1
0
1
GitHub: kertom/TrouvezLeMot
221 222 223 224 225 226 227 228 229 230
handleOrientationSettings(platformConfig, infoPlist); updateProjectPlistForLaunchStoryboard(platformConfig, infoPlist); /* eslint-disable no-tabs */ // Write out the plist file with the same formatting as Xcode does var info_contents = plist.build(infoPlist, { indent: '\t', offset: -1 }); /* eslint-enable no-tabs */ info_contents = info_contents.replace(/<string>[\s\r\n]*<\/string>/g, '<string></string>'); fs.writeFileSync(plistFile, info_contents, 'utf-8');
1
0
1
GitHub: FRC-6390/frc-prodromoi
121 122 123 124 125 126 127 128 129 130
try { var data = plist.parse(fs.readFileSync(filename, 'utf-8')); data.NSAppTransportSecurity = { NSAllowsArbitraryLoads: true }; fs.writeFileSync(filename, plist.build(data)); //console.log('Fixed ATS in ', filename); } catch (err) { console.log('Error when parsing', filename, err); }
0
2
1
140 141 142 143 144 145 146 147 148 149 150 151
console.log("Adding remote-notification and fetch to UIBackgroundModes of info.plist"); backgroundSet.add("remote-notification"); backgroundSet.add("fetch"); infoPlist.UIBackgroundModes = Array.from(backgroundSet); fs.writeFileSync(infoPath, plist.build(infoPlist), "utf8"); } function findMainPath(installDirectory) { if(!fs.existsSync(installDirectory)) {
0
0
0
+ 3 other calls in file
GitHub: loongson/npm-registry
239 240 241 242 243 244 245 246 247 248
this.appPlist[`NS${type}UsageDescription`] = description } } await Promise.all(plists.map(([filename, varName]) => fs.writeFile(filename, plist.build(this[varName])))) } async moveHelpers () { const helpers = [' Helper', ' Helper EH', ' Helper NP', ' Helper (Renderer)', ' Helper (Plugin)', ' Helper (GPU)']
0
0
0
+ 4 other calls in file
GitHub: tahayunus/kepche
238 239 240 241 242 243 244 245 246 247
entitlementsReleasePlist["com.apple.developer.applesignin"] = ["Default"]; entitlementsPlistsModified = true; } if(googlePlistModified) fs.writeFileSync(path.resolve(iosPlatform.dest), plist.build(googlePlist)); if(appPlistModified) fs.writeFileSync(path.resolve(iosPlatform.appPlist), plist.build(appPlist)); if(entitlementsPlistsModified){ fs.writeFileSync(path.resolve(iosPlatform.entitlementsDebugPlist), plist.build(entitlementsDebugPlist)); fs.writeFileSync(path.resolve(iosPlatform.entitlementsReleasePlist), plist.build(entitlementsReleasePlist)); }
0
0
1
+ 3 other calls in file
347 348 349 350 351 352 353 354 355 356
var configPlistObj = plist.parse(plistXml); infoPlist[key] = configPlistObj[key]; }); tempInfoPlist = plist.build(infoPlist); tempInfoPlist = tempInfoPlist.replace(/<string>[\s\r\n]*<\/string>/g, '<string></string>'); fs.writeFileSync(targetFile, tempInfoPlist, 'utf-8'); } };
0
0
1
GitHub: cheo2322/Handyman
220 221 222 223 224 225 226 227 228 229
handleOrientationSettings(platformConfig, infoPlist); updateProjectPlistForLaunchStoryboard(platformConfig, infoPlist); /* eslint-disable no-tabs */ // Write out the plist file with the same formatting as Xcode does var info_contents = plist.build(infoPlist, { indent: ' ', offset: -1 }); /* eslint-enable no-tabs */ info_contents = info_contents.replace(/<string>[\s\r\n]*<\/string>/g, '<string></string>'); fs.writeFileSync(plistFile, info_contents, 'utf-8');
0
0
1
GitHub: ijah-derby/dr
220 221 222 223 224 225 226 227 228
appPlist['CFBundleURLTypes'][i] = entry; appPlistModified = true; } if(googlePlistModified) fs.writeFileSync(googlePlistPath, plist.build(googlePlist)); if(appPlistModified) fs.writeFileSync(appPlistPath, plist.build(appPlist)); } };
0
0
1
+ 3 other calls in file
plist.parse is the most popular function in plist (98 examples)