hooks/lib/ios/projectEntitlements.js
function generateAssociatedDomainsContent(pluginPreferences) {
  var domainsList = [];

  // generate list of host links
  pluginPreferences.hosts.forEach(function(host) {
    var link = domainsListEntryForHost(host);
    if (domainsList.indexOf(link) == -1) {
      domainsList.push(link);
    }
  });

  return domainsList;
}
function generateAssociatedDomainsContent(pluginPreferences) {
  var domainsList = [];

  // generate list of host links
  pluginPreferences.hosts.forEach(function(host) {
    var link = domainsListEntryForHost(host);
    if (domainsList.indexOf(link) == -1) {
      domainsList.push(link);
    }
  });

  return domainsList;
}
function generateAssociatedDomainsContent ( pluginPreferences ) { var domainsList = [ ] ; // generate list of host links pluginPreferences . hosts . forEach ( function ( host ) { var link = domainsListEntryForHost ( host ) ; if ( domainsList . indexOf ( link ) == - 1 ) { domainsList . push ( link ) ; } } ) ; return domainsList ; }
Generate content for associated-domains dictionary in the entitlements file.

@param {Object} pluginPreferences - list of hosts from conig.xml
@return {Object} associated-domains dictionary content
Generate content for associated - domains dictionary in the entitlements file .