|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <TargetFrameworks>net8.0-ios;net8.0-android</TargetFrameworks> |
| 4 | + <TargetFrameworks>net9.0-android;net9.0-ios</TargetFrameworks> |
5 | 5 | <!-- Note for MacCatalyst: |
6 | 6 | The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. |
7 | 7 | When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>. |
|
26 | 26 | <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
27 | 27 | <ApplicationVersion>1</ApplicationVersion> |
28 | 28 |
|
29 | | - <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> |
30 | | - <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion> |
| 29 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion> |
| 30 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion> |
31 | 31 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
32 | | - <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
33 | | - <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
34 | | - <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
35 | 32 | </PropertyGroup> |
36 | 33 |
|
37 | 34 | <ItemGroup> |
38 | 35 | <!-- App Icon --> |
39 | | - <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4"/> |
| 36 | + <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> |
40 | 37 |
|
41 | 38 | <!-- Splash Screen --> |
42 | | - <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128"/> |
| 39 | + <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> |
43 | 40 |
|
44 | 41 | <!-- Images --> |
45 | | - <MauiImage Include="Resources\Images\*"/> |
46 | | - <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185"/> |
| 42 | + <MauiImage Include="Resources\Images\*" /> |
| 43 | + <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" /> |
47 | 44 |
|
48 | 45 | <!-- Custom Fonts --> |
49 | | - <MauiFont Include="Resources\Fonts\*"/> |
| 46 | + <MauiFont Include="Resources\Fonts\*" /> |
50 | 47 |
|
51 | 48 | <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
52 | | - <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)"/> |
| 49 | + <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
53 | 50 | </ItemGroup> |
54 | 51 |
|
55 | 52 | <ItemGroup> |
56 | | - <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)"/> |
57 | | - <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)"/> |
| 53 | + <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> |
| 54 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" /> |
58 | 55 | </ItemGroup> |
59 | 56 |
|
60 | 57 | <ItemGroup Condition="$(TargetFramework.Contains('ios')) Or $(TargetFramework.Contains('maccatalyst'))"> |
|
63 | 60 |
|
64 | 61 | <ItemGroup Condition="$(TargetFramework.Contains('android'))"> |
65 | 62 | <ProjectReference Include="..\android\Facebook.Android.Binding\Facebook.Android.Binding.csproj" /> |
66 | | - <!-- Include core facebook dependencies. Starting in .NET 9 these can potentially be replaced with @(AndroidMavenPackage) --> |
67 | | - <AndroidLibrary Include="..\android\native\mauifacebook\bin\Release\$(TargetFramework)\outputs\deps\facebook-android-sdk-17.0.0.aar"> |
68 | | - <Bind>false</Bind> |
69 | | - <Visible>false</Visible> |
70 | | - </AndroidLibrary> |
71 | | - <AndroidLibrary Include="..\android\native\mauifacebook\bin\Release\$(TargetFramework)\outputs\deps\facebook-common-17.0.0.aar"> |
72 | | - <Bind>false</Bind> |
73 | | - <Visible>false</Visible> |
74 | | - </AndroidLibrary> |
75 | | - <AndroidLibrary Include="..\android\native\mauifacebook\bin\Release\$(TargetFramework)\outputs\deps\facebook-core-17.0.0.aar"> |
76 | | - <Bind>false</Bind> |
77 | | - <Visible>false</Visible> |
78 | | - </AndroidLibrary> |
| 63 | + <!-- Add maven dependencies used in Facebook.Android.Binding.csproj to be resolved at runtime. |
| 64 | + See https://learn.microsoft.com/en-us/dotnet/android/binding-libs/advanced-concepts/android-maven-library --> |
| 65 | + <AndroidMavenLibrary Include="com.facebook.android:facebook-core" Version="17.0.2" Bind="false" /> |
| 66 | + <AndroidMavenLibrary Include="com.facebook.android:facebook-bolts" Version="17.0.2" Bind="false" /> |
| 67 | + <PackageReference Include="Xamarin.AndroidX.Annotation" Version="1.8.2.1" /> |
| 68 | + <PackageReference Include="Xamarin.AndroidX.Legacy.Support.Core.Utils" Version="1.0.0.29" /> |
| 69 | + <PackageReference Include="Xamarin.Google.Android.InstallReferrer" Version="1.1.2.6" /> |
| 70 | + <PackageReference Include="Xamarin.AndroidX.Core.Core.Ktx" Version="1.13.1.5" /> |
| 71 | + <PackageReference Include="Xamarin.Kotlin.StdLib" Version="2.0.21" /> |
79 | 72 | </ItemGroup> |
80 | 73 |
|
81 | 74 | </Project> |
0 commit comments