<?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"
  xsi:type="MailApp">
  <Id>BADC910C-ECBC-4C9A-B1C7-60DADC488C59</Id>
  <Version>2.1.2.0</Version>
  <ProviderName>Personal</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Copy Message Link"/>
  <Description DefaultValue="Copy a direct link to the Outlook message currently being read."/>
  <IconUrl DefaultValue="https://outlook-deeplinks.bplabs.app/assets/icon-48.png"/>
  <HighResolutionIconUrl DefaultValue="https://outlook-deeplinks.bplabs.app/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://outlook-deeplinks.bplabs.app/"/>
  <AppDomains>
    <AppDomain>https://outlook-deeplinks.bplabs.app</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlook-deeplinks.bplabs.app/taskpane.html"/>
        <RequestedHeight>280</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="And">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>
  <DisableEntityHighlighting>true</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">
          <DesktopFormFactor>
            <FunctionFile resid="FunctionFileUrl"/>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="CopyEmailLinkGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="CopyEmailLinkButton">
                    <Label resid="ButtonLabel"/>
                    <Supertip>
                      <Title resid="ButtonLabel"/>
                      <Description resid="ButtonTooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon16"/>
                      <bt:Image size="32" resid="Icon32"/>
                      <bt:Image size="80" resid="Icon80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>copyEmailLink</FunctionName>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
          <MobileFormFactor>
            <FunctionFile resid="FunctionFileUrl"/>
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
              <Group id="CopyEmailLinkMobileGroup">
                <Label resid="GroupLabel"/>
                <Control xsi:type="MobileButton" id="CopyEmailLinkMobileButton">
                  <Label resid="ButtonLabel"/>
                  <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="Icon32"/>
                    <bt:Image size="25" scale="2" resid="Icon48"/>
                    <bt:Image size="25" scale="3" resid="Icon48"/>
                    <bt:Image size="32" scale="1" resid="Icon32"/>
                    <bt:Image size="32" scale="2" resid="Icon48"/>
                    <bt:Image size="32" scale="3" resid="Icon48"/>
                    <bt:Image size="48" scale="1" resid="Icon48"/>
                    <bt:Image size="48" scale="2" resid="Icon80"/>
                    <bt:Image size="48" scale="3" resid="Icon80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>copyEmailLink</FunctionName>
                  </Action>
                </Control>
              </Group>
            </ExtensionPoint>
          </MobileFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon16" DefaultValue="https://outlook-deeplinks.bplabs.app/assets/icon-16.png"/>
          <bt:Image id="Icon32" DefaultValue="https://outlook-deeplinks.bplabs.app/assets/icon-32.png"/>
          <bt:Image id="Icon48" DefaultValue="https://outlook-deeplinks.bplabs.app/assets/icon-48.png"/>
          <bt:Image id="Icon80" DefaultValue="https://outlook-deeplinks.bplabs.app/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="TaskpaneUrl" DefaultValue="https://outlook-deeplinks.bplabs.app/taskpane.html"/>
          <bt:Url id="FunctionFileUrl" DefaultValue="https://outlook-deeplinks.bplabs.app/function-file.html?v=2.1.1"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Email tools"/>
          <bt:String id="ButtonLabel" DefaultValue="Copy message link"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="ButtonTooltip" DefaultValue="Get a stable link to this Outlook message"/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
