<?xml version="1.0" encoding="UTF-8"?>
<!--
  SignaturePier - add-in only (XML) manifest, generated by the service from its configuration.
  Deployed once per customer by an admin: Microsoft 365 admin center > Settings > Integrated apps > Upload custom apps > Office Add-in.
  ANY change to this file needs every customer admin to accept the update, and users are blocked until then.
  Do not change <Id>: it identifies the add-in in every customer tenant.
-->
<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">
  <Id>dc6d1e82-c67b-48ea-9d9c-08a521418c70</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Solutions Group Unlimited, LLC</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="SignaturePier"/>
  <Description DefaultValue="Adds your company's email signature to new messages, replies and forwards."/>
  <IconUrl DefaultValue="https://signaturepier.com/addin/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://signaturepier.com/addin/icon-128.png"/>
  <SupportUrl DefaultValue="https://signaturepier.com/"/>
  <AppDomains>
    <AppDomain>https://signaturepier.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://signaturepier.com/addin/commands.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </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">
          <!-- One runtime: commands.html (web, new Outlook, Mac, mobile) and the script directly (classic Outlook on Windows). -->
          <Runtimes>
            <Runtime resid="WebViewRuntime.Url">
              <Override type="javascript" resid="JSRuntime.Url"/>
            </Runtime>
          </Runtimes>

          <!-- Outlook on Windows (new and classic), on the web and on Mac. -->
          <DesktopFormFactor>
            <!-- Also run for shared/delegate mailboxes. The server signs only mailboxes of the user's own tenant. -->
            <SupportsSharedFolders>true</SupportsSharedFolders>
            <FunctionFile resid="WebViewRuntime.Url"/>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                <LaunchEvent Type="OnMessageFromChanged" FunctionName="onMessageFromChangedHandler"/>
              </LaunchEvents>
              <SourceLocation resid="WebViewRuntime.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>

          <!-- Outlook on iPhone/iPad and Android. -->
          <MobileFormFactor>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                <LaunchEvent Type="OnMessageFromChanged" FunctionName="onMessageFromChangedHandler"/>
              </LaunchEvents>
              <SourceLocation resid="WebViewRuntime.Url"/>
            </ExtensionPoint>
          </MobileFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://signaturepier.com/addin/icon-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://signaturepier.com/addin/icon-32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://signaturepier.com/addin/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="WebViewRuntime.Url" DefaultValue="https://signaturepier.com/addin/commands.html"/>
          <bt:Url id="JSRuntime.Url" DefaultValue="https://signaturepier.com/addin/launchevent.js"/>
        </bt:Urls>
      </Resources>
      <!-- Legacy Office SSO (OfficeRuntime.auth.getAccessToken), the fallback when nested app authentication is not available. -->
      <WebApplicationInfo>
        <Id>7869cf09-ab6b-4fe7-989b-c5d009780caf</Id>
        <Resource>api://signaturepier.com/7869cf09-ab6b-4fe7-989b-c5d009780caf</Resource>
        <Scopes>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>