<?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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <Id>a1b2c3d4-e5f6-7890-abcd-ef1234567890</Id>
  <Version>1.0.8.0</Version>
  <ProviderName>Qeychain</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Qeychain for Excel" />
  <Description DefaultValue="Live crypto portfolio, tax, and cost basis data directly in Excel. Type =QC.HOLDINGS() to get started." />
  <IconUrl DefaultValue="https://addin.qeychain.xyz/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://addin.qeychain.xyz/assets/icon-128.png" />
  <SupportUrl DefaultValue="https://qeychain.com/support" />

  <AppDomains>
    <AppDomain>https://api.qeychain.com</AppDomain>
    <AppDomain>https://api.qeychain.xyz</AppDomain>
    <AppDomain>https://qeychain.com</AppDomain>
    <AppDomain>https://addin.qeychain.xyz</AppDomain>
  </AppDomains>

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://addin.qeychain.xyz/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">

        <!-- Shared runtime: taskpane + custom functions run in one webview -->
        <Runtimes>
          <Runtime resid="Taskpane.Url" lifetime="long" />
        </Runtimes>

        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script>
              <SourceLocation resid="Taskpane.Url" />
            </Script>
            <Page>
              <SourceLocation resid="Taskpane.Url" />
            </Page>
            <Metadata>
              <SourceLocation resid="Functions.Metadata.Url" />
            </Metadata>
            <Namespace resid="Functions.Namespace" />
          </ExtensionPoint>
        </AllFormFactors>

        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <FunctionFile resid="Taskpane.Url" />

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <CustomTab id="QeychainTab">
              <Group id="QeychainGroup">
                <Label resid="Tab.GroupLabel" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>

                <Control xsi:type="Button" id="ConnectButton">
                  <Label resid="Connect.Label" />
                  <Supertip>
                    <Title resid="Connect.Label" />
                    <Description resid="Connect.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">
                    <TaskpaneId>QeychainTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>

                <Control xsi:type="Button" id="RefreshAllButton">
                  <Label resid="RefreshAll.Label" />
                  <Supertip>
                    <Title resid="RefreshAll.Label" />
                    <Description resid="RefreshAll.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="ExecuteFunction">
                    <FunctionName>refreshAll</FunctionName>
                  </Action>
                </Control>

              </Group>
              <Label resid="Tab.Label" />
            </CustomTab>
          </ExtensionPoint>
        </DesktopFormFactor>

      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://addin.qeychain.xyz/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://addin.qeychain.xyz/assets/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://addin.qeychain.xyz/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://addin.qeychain.xyz/functions.json" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://addin.qeychain.xyz/taskpane.html" />
        <bt:Url id="Commands.Url" DefaultValue="https://addin.qeychain.xyz/commands.html" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://qeychain.com/excel" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="QC" />
        <bt:String id="Tab.Label" DefaultValue="Qeychain" />
        <bt:String id="Tab.GroupLabel" DefaultValue="Qeychain" />
        <bt:String id="Connect.Label" DefaultValue="Connect" />
        <bt:String id="RefreshAll.Label" DefaultValue="Refresh All" />
        <bt:String id="GetStarted.Title" DefaultValue="Get Started with Qeychain" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Connect.Tooltip" DefaultValue="Connect to your Qeychain account to pull live crypto data into Excel" />
        <bt:String id="RefreshAll.Tooltip" DefaultValue="Refresh all Qeychain formulas in this workbook" />
        <bt:String id="GetStarted.Description" DefaultValue="Type =QC.HOLDINGS to pull your crypto portfolio into Excel. Click Connect to authenticate first." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
