<Project Sdk="Microsoft.NET.Sdk">

	<PropertyGroup>
    <TargetFrameworks>net9.0-ios</TargetFrameworks>
		<OutputType>Exe</OutputType>
		<RootNamespace>AsReaderSDK4MAUIDemo</RootNamespace>
		<UseMaui>true</UseMaui>
		<SingleProject>true</SingleProject>
		<ImplicitUsings>enable</ImplicitUsings>

		<!-- Display name -->
		<ApplicationTitle>AsReaderSDK4MAUIDemo</ApplicationTitle>

		<!-- App Identifier -->
		<ApplicationId>com.asreader.sdk4.maui.demo</ApplicationId>
		<ApplicationIdGuid>96d513e8-621b-454e-8096-f6dcc42b9c41</ApplicationIdGuid>

		<!-- Versions -->
		<ApplicationDisplayVersion>1.1.0</ApplicationDisplayVersion>
		<ApplicationVersion>1</ApplicationVersion>

    <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.1</SupportedOSPlatformVersion>
    <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
    <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
    <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
    <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
    <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
	</PropertyGroup>

	<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-ios|AnyCPU'">
	  <CreatePackage>false</CreatePackage>
	</PropertyGroup>
	<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-ios|AnyCPU'">
	  <CreatePackage>false</CreatePackage>
	</PropertyGroup>
	<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-ios|AnyCPU'">
	  <CreatePackage>false</CreatePackage>
	  <CodesignProvision>iOS Team Provisioning Profile: *</CodesignProvision>
	  <CodesignKey>iPhone Developer</CodesignKey>
	</PropertyGroup>
	<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-ios|AnyCPU'">
	  <CreatePackage>false</CreatePackage>
	  <CodesignProvision>Dist_Asterisk_Profile</CodesignProvision>
	  <CodesignKey>iPhone Distribution: Asterisk Inc.</CodesignKey>
	</PropertyGroup>
	<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
	  <WarningLevel>4</WarningLevel>
	  <PlatformTarget>anycpu</PlatformTarget>
	</PropertyGroup>
	<PropertyGroup Condition="'$(TargetFramework)'=='net9.0-ios'">
	  <ProvisioningType>manual</ProvisioningType>
	  <CodesignKey>iPhone Distribution: Asterisk Inc.</CodesignKey>
	  <CodesignProvision />
	</PropertyGroup>

  <PropertyGroup Condition="'$(TargetFramework)'=='net9.0-ios'">
    <ProvisioningType>manual</ProvisioningType>
    <CodesignKey>iPhone Distribution: Asterisk Inc.</CodesignKey>
  </PropertyGroup>
  
	<ItemGroup>
		<!-- App Icon -->
		<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />

		<!-- Splash Screen -->
		<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />

		<!-- Images -->
		<MauiImage Include="Resources\Images\*" />
		<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />

		<!-- Custom Fonts -->
		<MauiFont Include="Resources\Fonts\*" />

		<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
		<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
	</ItemGroup>
  
	<ItemGroup>
	  <Compile Remove="net9.0-ios\**" />
	  <EmbeddedResource Remove="net9.0-ios\**" />
	  <MauiCss Remove="net9.0-ios\**" />
	  <MauiXaml Remove="net9.0-ios\**" />
	  <None Remove="net9.0-ios\**" />
	</ItemGroup>

	<ItemGroup>
    <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.5" />
		<PackageReference Include="Drastic.MBProgressHUD" Version="1.0.0" />
	</ItemGroup>

	<ItemGroup>
	  <None Remove="Resources\Images\unsetting.png" />
	  <None Remove="Resources\Images\setting.png" />
	  <None Remove="Resources\Images\bat_charge_0.png" />
	  <None Remove="Resources\Images\bat_charge_1.png" />
	  <None Remove="Resources\Images\bat_charge_2.png" />
	  <None Remove="Resources\Images\bat_charge_3.png" />
	  <None Remove="Resources\Images\bat_charge_4.png" />
	  <None Remove="Resources\Images\bat_normal_0.png" />
	  <None Remove="Resources\Images\bat_normal_1.png" />
	  <None Remove="Resources\Images\bat_normal_2.png" />
	  <None Remove="Resources\Images\bat_normal_3.png" />
	  <None Remove="Resources\Images\bat_normal_4.png" />
	  <None Remove="Resources\Images\battery.png" />
	  <None Remove="Resources\Images\blecon.png" />
	  <None Remove="Resources\Images\bledis.png" />
	  <None Remove="Resources\Images\icon_barcode.png" />
	  <None Remove="Resources\Images\icon_nfc.png" />
	  <None Remove="Resources\Images\icon_rfid.png" />
	  <None Remove="MBProgressHud.dll" />
	</ItemGroup>
	<ItemGroup>
	  <BundleResource Include="Resources\Images\unsetting.png" />
	  <BundleResource Include="Resources\Images\setting.png" />
	  <BundleResource Include="Resources\Images\bat_charge_0.png" />
	  <BundleResource Include="Resources\Images\bat_charge_1.png" />
	  <BundleResource Include="Resources\Images\bat_charge_2.png" />
	  <BundleResource Include="Resources\Images\bat_charge_3.png" />
	  <BundleResource Include="Resources\Images\bat_charge_4.png" />
	  <BundleResource Include="Resources\Images\bat_normal_0.png" />
	  <BundleResource Include="Resources\Images\bat_normal_1.png" />
	  <BundleResource Include="Resources\Images\bat_normal_2.png" />
	  <BundleResource Include="Resources\Images\bat_normal_3.png" />
	  <BundleResource Include="Resources\Images\bat_normal_4.png" />
	  <BundleResource Include="Resources\Images\battery.png" />
	  <BundleResource Include="Resources\Images\blecon.png" />
	  <BundleResource Include="Resources\Images\bledis.png" />
	  <BundleResource Include="Resources\Images\icon_barcode.png" />
	  <BundleResource Include="Resources\Images\icon_nfc.png" />
	  <BundleResource Include="Resources\Images\icon_rfid.png" />
	</ItemGroup>
	<ItemGroup>
	  <Reference Include="AsReaderBLESDK.IOS">
	    <HintPath>net9.0-ios\AsReaderBLESDK.IOS.dll</HintPath>
	  </Reference>
	  <Reference Include="AsReaderSDK4.IOS">
	    <HintPath>net9.0-ios\AsReaderSDK4.IOS.dll</HintPath>
	  </Reference>
	</ItemGroup>
</Project>
