<?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"
>
    <Id>eab0042f-5cdc-4cd3-9f27-0abeb96cf73e</Id>
    <Version>1.0.0.2</Version>
    <ProviderName>Paminga</ProviderName>
    <DefaultLocale>en-US</DefaultLocale>
    <DisplayName DefaultValue="Paminga Add-in" />
    <Description DefaultValue="An Add-in Built For Paminga." />
    <IconUrl DefaultValue="https://outlook-addin.paminga.com/assets/paminga128.png" />
    <HighResolutionIconUrl DefaultValue="https://outlook-addin.paminga.com/assets/paminga128.png" />
    <SupportUrl DefaultValue="https://www.paminga.com/faq" />

    <AppDomains>
        <AppDomain>https://api.paminga.com</AppDomain>
        <AppDomain>https://outlook-addin.paminga.com</AppDomain>
    </AppDomains>

    <Hosts>
        <Host Name="Mailbox" />
    </Hosts>

    <Requirements>
        <Sets>
            <Set Name="Mailbox" MinVersion="1.12" />
        </Sets>
    </Requirements>

    <FormSettings>
        <Form xsi:type="ItemRead">
            <DesktopSettings>
                <SourceLocation DefaultValue="https://outlook-addin.paminga.com/src/taskpane/taskpane.html" />
                <RequestedHeight>250</RequestedHeight>
            </DesktopSettings>
        </Form>
    </FormSettings>

    <Permissions>ReadWriteItem</Permissions>

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

    <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.12">
                    <bt:Set Name="Mailbox" />
                </bt:Sets>
            </Requirements>

            <Hosts>
                <Host xsi:type="MailHost">
                    <Runtimes>
                        <Runtime resid="WebViewRuntime.Url" />
                    </Runtimes>

                    <DesktopFormFactor>
                        <FunctionFile resid="Commands.Url" />

                        <ExtensionPoint xsi:type="MessageComposeCommandSurface">
                            <OfficeTab id="TabDefault">
                                <Group id="PamingaGroup">
                                    <Label resid="Paminga.Group.Label" />
                                    <Control xsi:type="Button" id="PamingaTaskpaneButton">
                                        <Label resid="Paminga.Taskpane.Label" />
                                        <Supertip>
                                            <Title resid="Paminga.Taskpane.Label" />
                                            <Description resid="Paminga.Taskpane.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>

                        <ExtensionPoint xsi:type="LaunchEvent">
                            <LaunchEvents>
                                <LaunchEvent
                                    Type="OnMessageSend"
                                    FunctionName="onMessageSendHandler"
                                    SendMode="PromptUser"
                                />
                            </LaunchEvents>
                            <SourceLocation resid="WebViewRuntime.Url" />
                        </ExtensionPoint>

                    </DesktopFormFactor>
                </Host>
            </Hosts>

            <Resources>
                <bt:Images>
                    <bt:Image id="Icon.16x16" DefaultValue="https://outlook-addin.paminga.com/assets/paminga16.png" />
                    <bt:Image id="Icon.32x32" DefaultValue="https://outlook-addin.paminga.com/assets/paminga32.png" />
                    <bt:Image id="Icon.80x80" DefaultValue="https://outlook-addin.paminga.com/assets/paminga80.png" />
                </bt:Images>

                <bt:Urls>
                    <bt:Url id="Commands.Url" DefaultValue="https://outlook-addin.paminga.com/src/commands/commands.html" />
                    <bt:Url id="Taskpane.Url" DefaultValue="https://outlook-addin.paminga.com/src/taskpane/taskpane.html" />
                    <bt:Url id="WebViewRuntime.Url" DefaultValue="https://outlook-addin.paminga.com/src/commands/commands.html" />
                </bt:Urls>

                <bt:ShortStrings>
                    <bt:String id="Paminga.Group.Label" DefaultValue="Paminga" />
                    <bt:String id="Paminga.Taskpane.Label" DefaultValue="Paminga pane" />
                </bt:ShortStrings>

                <bt:LongStrings>
                    <bt:String id="Paminga.Taskpane.Tooltip" DefaultValue="Open the Paminga task pane." />
                </bt:LongStrings>
            </Resources>
        </VersionOverrides>
    </VersionOverrides>
</OfficeApp>
