<?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>daf62074-1b96-4d59-b8b7-1e87c82c9522</Id>
  <Version>3.0.25</Version>
  <ProviderName>EsReal BV</ProviderName>
  <DefaultLocale>nl-BE</DefaultLocale>
  <DisplayName DefaultValue="EsReal Public"/>
  <Description DefaultValue="EsReal - Trust becomes verifiable"/>
  <IconUrl DefaultValue="https://studio.esreal.be/office365/icons/icon32.png"/>
  <HighResolutionIconUrl DefaultValue="https://studio.esreal.be/office365/icons/icon80.png"/>
  <SupportUrl DefaultValue="https://esreal.org"/>

  <AppDomains>
    <AppDomain>esreal.org</AppDomain>
    <AppDomain>studio.esreal.be</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://studio.esreal.be/office365/taskpane.html"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>

  <VersionOverrides
    xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
    xsi:type="VersionOverridesV1_0">

    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <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="esrealGroupIosD">
                <Label resid="GroupLabel"/>
                <Control xsi:type="Button" id="esrealBtnIosD">
                  <Label resid="BtnLabel"/>
                  <Supertip>
                    <Title resid="BtnLabel"/>
                    <Description resid="BtnTooltip"/>
                  </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="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon16" DefaultValue="https://studio.esreal.be/office365/icons/icon16.png"/>
        <bt:Image id="Icon32" DefaultValue="https://studio.esreal.be/office365/icons/icon32.png"/>
        <bt:Image id="Icon80" DefaultValue="https://studio.esreal.be/office365/icons/icon80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://studio.esreal.be/office365/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://studio.esreal.be/office365/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="EsReal"/>
        <bt:String id="BtnLabel"   DefaultValue="EsReal Public"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="BtnTooltip" DefaultValue="EsReal - Trust becomes verifiable"/>
      </bt:LongStrings>
    </Resources>

    <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="Commands.Url"/>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="esrealGroupIosV11">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="esrealBtnIosV11">
                    <Label resid="BtnLabel"/>
                    <Supertip>
                      <Title resid="BtnLabel"/>
                      <Description resid="BtnTooltip"/>
                    </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="Taskpane.Url"/>
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>

          <MobileFormFactor>
            <FunctionFile resid="Commands.Url"/>
            <ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
              <Group id="esrealGroupMobile">
                <Label resid="GroupLabel"/>
                <Control xsi:type="MobileButton" id="esrealBtnMobile">
                  <Label resid="BtnLabel"/>
                  <Icon xsi:type="bt:MobileIconList">
                    <bt:Image size="25" scale="1" resid="Icon32"/>
                    <bt:Image size="25" scale="2" resid="Icon80"/>
                    <bt:Image size="25" scale="3" resid="Icon80"/>
                    <bt:Image size="32" scale="1" resid="Icon32"/>
                    <bt:Image size="32" scale="2" resid="Icon80"/>
                    <bt:Image size="32" scale="3" resid="Icon80"/>
                    <bt:Image size="48" scale="1" resid="Icon80"/>
                    <bt:Image size="48" scale="2" resid="Icon80"/>
                    <bt:Image size="48" scale="3" resid="Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </ExtensionPoint>
          </MobileFormFactor>

        </Host>
      </Hosts>

      <Resources>
        <bt:Images>
          <bt:Image id="Icon16" DefaultValue="https://studio.esreal.be/office365/icons/icon16.png"/>
          <bt:Image id="Icon32" DefaultValue="https://studio.esreal.be/office365/icons/icon32.png"/>
          <bt:Image id="Icon80" DefaultValue="https://studio.esreal.be/office365/icons/icon80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://studio.esreal.be/office365/commands.html"/>
          <bt:Url id="Taskpane.Url" DefaultValue="https://studio.esreal.be/office365/taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="EsReal"/>
          <bt:String id="BtnLabel"   DefaultValue="EsReal Public"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="BtnTooltip" DefaultValue="EsReal - Trust becomes verifiable"/>
        </bt:LongStrings>
      </Resources>

    </VersionOverrides>

  </VersionOverrides>

</OfficeApp>
