<?xml version="1.0" encoding="utf-8"?>
<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" 
  xsi:type="MailApp">

 <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. -->

 <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. -->
 <Id>9E0BD3BC-386E-45D0-97B3-ECA8D7F703BB</Id>

 <!--Version. Updates from the store only get triggered if there is a version change. -->
 <Version>4.0.4.41</Version>
 <ProviderName>Xink</ProviderName>
 <DefaultLocale>en-US</DefaultLocale>
 <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
 <DisplayName DefaultValue="Xink (manifest2)" />
 <Description DefaultValue="Outlook addin for inserting Xink email signatures (version 4.0.4)" />
 <IconUrl DefaultValue="https://addin.xink.io/Images/Icon64.png" />
 <HighResolutionIconUrl DefaultValue="https://addin.xink.io/Images/Icon128.png" />

 <SupportUrl DefaultValue="https://support.xink.io" />

 <Hosts>
  <Host Name="Mailbox" />
 </Hosts>
 <Requirements>
  <Sets>
   <Set Name="Mailbox" MinVersion="1.5" />
  </Sets>
 </Requirements>
 <FormSettings>
  <Form xsi:type="ItemRead">
   <DesktopSettings>
    <SourceLocation DefaultValue="https://addin.xink.io/home/index/lk_e1k23BbKl6XaW416fOGl7Ll-7LKUvwZVQ0PjDC3_PTyv4nCHAPt6CS1UqDGqaFnYLPkad8HoF9nc__72nWNuEApzBTya-0h-y38Gu6_JLaPJLHJ_dBo3R4tx13-Bt6oqcx7P5N-U3kdSyPBjBP0A2kWHIw4pl6NFhRBPxCZEitRFdhkGHlFWm2cqnzWOoPdCRE5d6JXIMPzUeCypRqdRSA_th6KnfcIw4YEJJlnE/?version=4.0.4" />
    <RequestedHeight>250</RequestedHeight>
   </DesktopSettings>
  </Form>
 </FormSettings>

 <Permissions>ReadWriteItem</Permissions>
 <Rule xsi:type="RuleCollection" Mode="Or">
  <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
 </Rule>
 <DisableEntityHighlighting>false</DisableEntityHighlighting>

 <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
   <Requirements>
    <bt:Sets DefaultMinVersion="1.5">
     <bt:Set Name="Mailbox" />
    </bt:Sets>
   </Requirements>
   <Hosts>
    <Host xsi:type="MailHost">
     <!-- Specify the runtime for event-based activation. -->
     <!-- For more information, see https://docs.microsoft.com/office/dev/add-ins/outlook/autolaunch -->
     <Runtimes>
      <Runtime resid="Autorun">
       <Override type="javascript" resid="runtimeJs" />
      </Runtime>
     </Runtimes>

     <DesktopFormFactor>
      <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
      <FunctionFile resid="functionFile" />

      <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
      <!-- Message Compose -->
      <ExtensionPoint xsi:type="MessageComposeCommandSurface">
       <OfficeTab id="TabDefault">
        <Group id="msgComposeCmdGroup">
         <Label resid="groupLabel" />
         <Control xsi:type="Button" id="msgComposeInsertSignature">
          <Label resid="insertSignatureLabel" />
          <Supertip>
           <Title resid="insertSignatureTitle" />
           <Description resid="insertSignatureDesc" />
          </Supertip>
          <Icon>
           <bt:Image size="16" resid="icon16" />
           <bt:Image size="32" resid="icon32" />
           <bt:Image size="80" resid="icon80" />
          </Icon>
          <Action xsi:type="ShowTaskpane">
           <SourceLocation resid="insertSignaturePaneUrl" />
           <SupportsPinning>true</SupportsPinning>
          </Action>
         </Control>
        </Group>
       </OfficeTab>
      </ExtensionPoint>

      <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
       <OfficeTab id="TabDefault">
        <Group id="appointmentComposeCmdGroup">
         <Label resid="groupLabel" />
         <Control xsi:type="Button" id="appointmentComposeInsertSignature">
          <Label resid="insertSignatureLabel" />
          <Supertip>
           <Title resid="insertSignatureTitle" />
           <Description resid="insertSignatureDesc" />
          </Supertip>
          <Icon>
           <bt:Image size="16" resid="icon16" />
           <bt:Image size="32" resid="icon32" />
           <bt:Image size="80" resid="icon80" />
          </Icon>
          <Action xsi:type="ShowTaskpane">
           <SourceLocation resid="insertSignaturePaneUrl" />
           <SupportsPinning>true</SupportsPinning>
          </Action>
         </Control>
        </Group>
       </OfficeTab>
      </ExtensionPoint>
      <ExtensionPoint xsi:type="LaunchEvent">
       <LaunchEvents>
        <LaunchEvent Type="OnNewMessageCompose"
         FunctionName="insertDefaultSignature" />
        <LaunchEvent Type="OnNewAppointmentOrganizer"
         FunctionName="insertDefaultSignature" />
        <LaunchEvent Type="OnMessageFromChanged"
         FunctionName="onMessageFromChanged" />
        <LaunchEvent Type="OnAppointmentFromChanged"
         FunctionName="onMessageFromChanged" />
       </LaunchEvents>
       <SourceLocation resid="Autorun" />
      </ExtensionPoint>
     </DesktopFormFactor>
                    <MobileFormFactor>
                        <ExtensionPoint xsi:type="LaunchEvent">
                            <LaunchEvents>
                                <LaunchEvent Type="OnNewMessageCompose" 
                                    FunctionName="insertDefaultSignature" />
                            </LaunchEvents>
                            <SourceLocation resid="Autorun" />
                        </ExtensionPoint>
                    </MobileFormFactor>
                </Host>
   </Hosts>

   <Resources>
    <bt:Images>
     <bt:Image id="icon16" DefaultValue="https://addin.xink.io/Images/icon16.png" />
     <bt:Image id="icon32" DefaultValue="https://addin.xink.io/Images/icon32.png" />
     <bt:Image id="icon80" DefaultValue="https://addin.xink.io/Images/icon80.png" />
    </bt:Images>
    <bt:Urls>
     <bt:Url id="functionFile" DefaultValue="https://addin.xink.io/Functions/FunctionFile.html" />
     <bt:Url id="insertSignaturePaneUrl" DefaultValue="https://addin.xink.io/home/index/lk_e1k23BbKl6XaW416fOGl7Ll-7LKUvwZVQ0PjDC3_PTyv4nCHAPt6CS1UqDGqaFnYLPkad8HoF9nc__72nWNuEApzBTya-0h-y38Gu6_JLaPJLHJ_dBo3R4tx13-Bt6oqcx7P5N-U3kdSyPBjBP0A2kWHIw4pl6NFhRBPxCZEitRFdhkGHlFWm2cqnzWOoPdCRE5d6JXIMPzUeCypRqdRSA_th6KnfcIw4YEJJlnE/?version=4.0.4" />
     <bt:Url id="Autorun" DefaultValue="https://addin.xink.io/home/Autorun/?domainToken=lk_e1k23BbKl6XaW416fOGl7Ll-7LKUvwZVQ0PjDC3_PTyv4nCHAPt6CS1UqDGqaFnYLPkad8HoF9nc__72nWNuEApzBTya-0h-y38Gu6_JLaPJLHJ_dBo3R4tx13-Bt6oqcx7P5N-U3kdSyPBjBP0A2kWHIw4pl6NFhRBPxCZEitRFdhkGHlFWm2cqnzWOoPdCRE5d6JXIMPzUeCypRqdRSA_th6KnfcIw4YEJJlnE&amp;version=4.0.4"></bt:Url>
     <bt:Url id="runtimeJs" DefaultValue="https://addin.xink.io/home/AutorunOutlookDesktop?domainToken=lk_e1k23BbKl6XaW416fOGl7Ll-7LKUvwZVQ0PjDC3_PTyv4nCHAPt6CS1UqDGqaFnYLPkad8HoF9nc__72nWNuEApzBTya-0h-y38Gu6_JLaPJLHJ_dBo3R4tx13-Bt6oqcx7P5N-U3kdSyPBjBP0A2kWHIw4pl6NFhRBPxCZEitRFdhkGHlFWm2cqnzWOoPdCRE5d6JXIMPzUeCypRqdRSA_th6KnfcIw4YEJJlnE&amp;version=4.0.4"></bt:Url>
    </bt:Urls>
    <bt:ShortStrings>
     <bt:String id="groupLabel" DefaultValue="Xink Signatures" />
     <bt:String id="customTabLabel" DefaultValue="Xink" />
     <bt:String id="insertSignatureLabel" DefaultValue="Insert signature" />
     <bt:String id="insertSignatureTitle" DefaultValue="Insert signature" />
     <bt:String id="insertDefaultSignatureLabel" DefaultValue="Insert default signature" />
     <bt:String id="insertDefaultSignatureTitle" DefaultValue="Insert default signature" />
     <bt:String id="readButtonLabel" DefaultValue="Enter access code" />
     <bt:String id="readButtonTitle" DefaultValue="Enter access code" />
    </bt:ShortStrings>
    <bt:LongStrings>
     <bt:String id="insertSignatureDesc" DefaultValue="Displays a list of your Xink signatures and allows you to insert a signature into the current message" />
     <bt:String id="insertDefaultSignatureDesc" DefaultValue="Inserts the content of your default Xink signature" />
     <bt:String id="readButtonDesc" DefaultValue="Lets you enter your Xink access code sent to you by mail" />
    </bt:LongStrings>
   </Resources>
  </VersionOverrides>
 </VersionOverrides>
</OfficeApp>
