hooks/lib/ios/projectEntitlements.js
function injectPreferences(currentEntitlements, pluginPreferences) {
  var newEntitlements = currentEntitlements;
  var content = generateAssociatedDomainsContent(pluginPreferences);

  newEntitlements[ASSOCIATED_DOMAINS] = content;

  return newEntitlements;
}
function injectPreferences(currentEntitlements, pluginPreferences) {
  var newEntitlements = currentEntitlements;
  var content = generateAssociatedDomainsContent(pluginPreferences);

  newEntitlements[ASSOCIATED_DOMAINS] = content;

  return newEntitlements;
}
function injectPreferences ( currentEntitlements , pluginPreferences ) { var newEntitlements = currentEntitlements ; var content = generateAssociatedDomainsContent ( pluginPreferences ) ; newEntitlements [ ASSOCIATED_DOMAINS ] = content ; return newEntitlements ; }
Inject list of hosts into entitlements file.

@param {Object} currentEntitlements - entitlements where to inject preferences
@param {Object} pluginPreferences - list of hosts from config.xml
@return {Object} new entitlements content
Inject list of hosts into entitlements file .