<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp 
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" 
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" 
  xsi:type="MailApp">

  <!-- Unique ID for the NextSync Outlook Add-in (fixed production GUID) -->
  <Id>56b3c6c5-d9ba-4d12-80bf-aae2c54bf6c4</Id>
  <Version>1.0.3.0</Version>
  <ProviderName>NextSync Solutions</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  
  <!-- Multi-language support -->
  <DisplayName DefaultValue="NextSync - ERPNext Integration">
    <Override Locale="de-de" Value="NextSync - ERPNext Integration"/>
    <Override Locale="en-us" Value="NextSync - ERPNext Integration"/>
  </DisplayName>
  
  <Description DefaultValue="Sync emails, contacts, and tasks between Outlook and ERPNext. Streamline your business workflow with seamless integration.">
    <Override Locale="de-de" Value="E-Mails, Kontakte und Aufgaben zwischen Outlook und ERPNext synchronisieren. Optimieren Sie Ihren Geschäftsablauf mit nahtloser Integration."/>
    <Override Locale="en-us" Value="Sync emails, contacts, and tasks between Outlook and ERPNext. Streamline your business workflow with seamless integration."/>
  </Description>
  
  <!-- Production URLs -->
  <IconUrl DefaultValue="https://outlook.nextfiresync.com/assets/icon32.png"/>
  <HighResolutionIconUrl DefaultValue="https://outlook.nextfiresync.com/assets/icon80.png"/>
  <SupportUrl DefaultValue="https://nextfiresync.com"/>
  
  <!-- Trusted domains for the add-in -->
  <AppDomains>
    <AppDomain>https://outlook.nextfiresync.com</AppDomain>
  </AppDomains>
  
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  
  <!-- Minimum Outlook version requirements -->
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5"/>
    </Sets>
  </Requirements>
  
  <!-- Form settings for different contexts -->
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
        <RequestedHeight>450</RequestedHeight>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
      </PhoneSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
      </PhoneSettings>
    </Form>
  </FormSettings>
  
  <!-- ReadItem: the panel reads the open item and shows a notification. -->
  <Permissions>ReadItem</Permissions>
  
  <!-- Activation rules - when the add-in appears -->
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
  </Rule>
  
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.5">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>
          
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadGroup">
                <Label resid="GroupLabel"/>
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://outlook.nextfiresync.com/assets/icon16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://outlook.nextfiresync.com/assets/icon32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://outlook.nextfiresync.com/assets/icon80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://outlook.nextfiresync.com/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://outlook.nextfiresync.com/?v=1.0.3"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="NextSync"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="Open NextSync"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Open NextSync ERPNext Integration"/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
