code: function addAssociatedDomains(preferences) {
      const files = getEntitlementFiles(preferences);
  
      for (let i = 0; i < files.length; i++) {
        const file = files[i];
        let entitlements = getEntitlements(file);
  
        entitlements = updateEntitlements(entitlements, preferences);
        setEntitlements(file, entitlements);
      }
    }
docs: updates the associated domains from the link-domain field of the app's config.xml