code: function updateEntitlements(entitlements, preferences) {
      const domains = [];
      let prev = entitlements[ASSOCIATED_DOMAINS];
      const next = updateAssociatedDomains(preferences);
  
      prev = removePreviousAssociatedDomains(preferences, prev);
      entitlements[ASSOCIATED_DOMAINS] = domains.concat(prev, next);
  
      return entitlements;
    }
docs: appends Branch link domains to the Associated Domain entitlement's file <dict> <key>com.apple.developer.associated-domains</key> <array> <string>applinks:rawsr.app.link</string> <string>applinks:rawsr-alternate.app.link</string> </array> </dict>