<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
    xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
    xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
    IgnorableNamespaces= "uap mp">
  <Identity Name="Microsoft.Windows.InsiderHub" Publisher="CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1000.10130.0.0" ResourceId="neutral" />    
  <mp:PhoneIdentity PhoneProductId="53821c3f-b654-4ea5-955b-9a32cba70c8a" PhonePublisherId="95d94207-0c7c-47ed-82db-d75c81153c35" />
  <Properties>
    <DisplayName>ms-resource:AppStoreName</DisplayName>
    <PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>
  <Resources>
    <Resource Language="en-us" />
  </Resources>
    
  <Applications>
    <Application Id="App" 
                 Executable="Microsoft.InsiderHub.exe" 
                 EntryPoint="Microsoft.InsiderHub.App">
      <uap:VisualElements DisplayName="ms-resource:AppStoreName" 
                          Square150x150Logo="Assets\Logo.png" 
                          Square44x44Logo="Assets\SmallLogo.png" 
                          Description="ms-resource:AppDescription" 
                          BackgroundColor="#0078d7">
        <uap:DefaultTile ShortName="ms-resource:AppStoreName" Square310x310Logo="Assets\Logo.scale-310.png" Wide310x150Logo="Assets\WideLogo.png">
          <uap:ShowNameOnTiles>
            <uap:ShowOn Tile="square150x150Logo" />
            <uap:ShowOn Tile="wide310x150Logo" />
            <uap:ShowOn Tile="square310x310Logo" />
          </uap:ShowNameOnTiles>
        </uap:DefaultTile>
        <uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#0078d7" />
      </uap:VisualElements>
      <Extensions>
        <uap:Extension Category="windows.protocol">
          <uap:Protocol Name="insiderhub">
            <uap:DisplayName>Insider Hub</uap:DisplayName>
          </uap:Protocol>
        </uap:Extension>
        <Extension Category="windows.preInstalledConfigTask" EntryPoint="PilotsHubApp.BackgroundWorker.PreinstallBackroundTaskDesktop" />
        <Extension Category="windows.backgroundTasks" EntryPoint="PilotsHubApp.BackgroundWorker.PreinstallBackroundTaskDesktop">
          <BackgroundTasks>
            <Task Type="systemEvent" />
          </BackgroundTasks>
        </Extension>
        <Extension Category="windows.backgroundTasks" EntryPoint="PilotsHubApp.BackgroundWorker.PilotsHubBackgroundTasks">
          <BackgroundTasks>
            <Task Type="systemEvent" />
          </BackgroundTasks>
        </Extension>
        <Extension Category="windows.backgroundTasks" EntryPoint="PilotsHubApp.BackgroundWorker.BuildNotifierBackgroundTask">
          <BackgroundTasks>
            <Task Type="systemEvent" />
          </BackgroundTasks>
        </Extension>
        <Extension Category="windows.backgroundTasks" EntryPoint="PilotsHubApp.BackgroundWorker.ToastBackgroundTask">
          <BackgroundTasks>
            <Task Type="systemEvent" />
          </BackgroundTasks>
        </Extension>
      </Extensions>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
    <Capability Name="privateNetworkClientServer" />
    <!--<uap:Capability Name="enterpriseAuthentication" />-->
  </Capabilities>
  <Extensions>
    <Extension Category="windows.activatableClass.proxyStub">
      <ProxyStub ClassId="6847e256-d8b6-470c-943d-6834b0ddf864">
        <Path>PilotsHub.NativeHelper.dll</Path>
        <Interface InterfaceId="e1e0b342-3413-4ee7-a1a1-a97f7b19e4e4" Name="IFlightInformation" />
        <Interface InterfaceId="cadc300f-476e-4bdb-bd3f-ac05f3e8fa4a" Name="IInsiderHubBrokerProxy" />
      </ProxyStub>
    </Extension>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>CLRHost.dll</Path>
        <ActivatableClass ActivatableClassId="PilotsHubApp.BackgroundWorker.AuthenticationService" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="PilotsHubApp.BackgroundWorker.BuildNotifierBackgroundTask" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="PilotsHubApp.BackgroundWorker.PreinstallBackroundTaskMobile" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="PilotsHubApp.BackgroundWorker.ToastBackgroundTask" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="PilotsHubApp.BackgroundWorker.PilotsHubBackgroundTasks" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="PilotsHubApp.BackgroundWorker.PreinstallBackroundTaskDesktop" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>PilotsHub.NativeHelper.dll</Path>
        <ActivatableClass ActivatableClassId="PilotsHub.NativeHelper.UTCStatsProvider" ThreadingModel="both"/>
        <ActivatableClass ActivatableClassId="PilotsHub.NativeHelper.FlightInformation" ThreadingModel="both"/>
        <ActivatableClass ActivatableClassId="PilotsHub.NativeHelper.NativeWrapper" ThreadingModel="both"/>
        <ActivatableClass ActivatableClassId="PilotsHub.NativeHelper.InsiderHubBrokerProxy" ThreadingModel="both"/>
      </InProcessServer>
    </Extension>
  </Extensions>
</Package>