<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net10.0-android</TargetFramework>
    <SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <AcceptAndroidSDKLicenses>True</AcceptAndroidSDKLicenses>
    <!--
      Enable trim analyzers for Android class libraries.
      To learn more, see: https://learn.microsoft.com/dotnet/core/deploying/trimming/prepare-libraries-for-trimming
    -->
    <IsTrimmable>true</IsTrimmable>
    <!--
      NOTE: you can simply add .aar or .jar files in this directory to be included in the project.
      To learn more, see: https://learn.microsoft.com/dotnet/maui/migration/android-binding-projects
    -->
  </PropertyGroup>

  <!-- 添加必要的 NuGet 包引用以解决缺失的类型 -->
  <ItemGroup>
    <!-- Kotlin 支持 -->
    <PackageReference Include="Xamarin.Kotlin.StdLib" Version="2.0.21.3" />
    <PackageReference Include="Xamarin.KotlinX.Coroutines.Core" Version="1.9.0.3" />
    <PackageReference Include="Xamarin.KotlinX.Serialization.Core" Version="1.7.3.4" />
    
    <!-- AndroidX 支持 -->
    <PackageReference Include="Xamarin.AndroidX.Activity" Version="1.10.1.1" />
    <PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.7.0.6" />
    <PackageReference Include="Xamarin.AndroidX.Core" Version="1.16.0.1" />
    <PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime" Version="2.8.7.3" />
    <PackageReference Include="Xamarin.AndroidX.Lifecycle.ViewModel" Version="2.8.7.3" />
    
    <!-- 其他可能需要的依赖 -->
    <PackageReference Include="Xamarin.AndroidX.Collection" Version="1.5.0.1" />
    <PackageReference Include="Xamarin.AndroidX.Annotation" Version="1.9.1.3" />
  </ItemGroup>
</Project>