<?xml version="1.0" encoding="utf-8"?>

<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
  <Identity Name="Microsoft.XboxIdentityProvider" Version="1000.10586.0.0" Publisher="CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" ResourceId="neutral"/>
  <mp:PhoneIdentity PhoneProductId="ba88225b-059a-45a2-a8eb-d3580283e49d" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
  
  <Properties>
    <DisplayName>ms-resource:PkgDisplayName</DisplayName>
    <PublisherDisplayName>ms-resource:PublisherDisplayName</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>

  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="0.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>

  <Resources>
    <Resource Language="en-US"/>
  </Resources>

  <Applications>
    <Application Id="Microsoft.XboxIdentityProvider" Executable="XboxIdp.exe" EntryPoint="XboxIdp.App">
      <uap:VisualElements DisplayName="Xbox Identity Provider" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="Xbox Identity Provider" BackgroundColor="#1a1a1a" AppListEntry="none">
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>

      <Extensions>
        <uap:Extension Category="windows.webAccountProvider">
          
        <!--Url defines the Plugin ID. 
           BackgroundEntryPoint defines the Plugin's interfact for the background task that handles 
               GetTokenSilently() request. The value should be the same as the one defined in 
               Windows.ActivatableClass.inProcessServer/ActivatableClassId below.-->
            
          <uap:WebAccountProvider Url="https://xsts.auth.xboxlive.com" BackgroundEntryPoint="XboxIdp.Tasks.GetTokenSilentlyTask"/>
        </uap:Extension>
      </Extensions>

    </Application>
  </Applications>

  <Extensions>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>CLRHost.dll</Path>
        <!-- Value of ActivatableClassId should be the same as BackgroundEntryPoint 
             value in WebAccountProvider extension.
          -->
        <ActivatableClass ActivatableClassId="XboxIdp.Tasks.GetTokenSilentlyTask" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>AuthManAuthProvider.dll</Path>
        <ActivatableClass ActivatableClassId="XboxIdp.Native.AuthManAuthProvider" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
  </Extensions>

  <Capabilities>
    <Capability Name="internetClient" />
  </Capabilities>

</Package>