|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + <Target Name="_CleanAarOutputPath" AfterTargets="_CreateAar" BeforeTargets="_IncludeAarInNuGetPackage"> |
| 3 | + <Delete Files="$(_AarOutputPath)" /> |
| 4 | + </Target> |
2 | 5 |
|
3 | 6 | <PropertyGroup>
|
4 |
| - <TargetFrameworks>net6.0-android;net6.0-ios;net7.0-android;net7.0-ios;</TargetFrameworks> |
| 7 | + <TargetFrameworks>net8.0-android;net8.0-ios;</TargetFrameworks> |
5 | 8 | <UseMaui>true</UseMaui>
|
6 | 9 | <SingleProject>true</SingleProject>
|
7 | 10 | <ImplicitUsings>enable</ImplicitUsings>
|
8 | 11 |
|
9 | 12 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.4</SupportedOSPlatformVersion>
|
10 |
| - <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
| 13 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">26.0</SupportedOSPlatformVersion> |
11 | 14 | <RootNamespace>MapboxMaui</RootNamespace>
|
12 | 15 | <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>
|
13 | 16 | </PropertyGroup>
|
|
24 | 27 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
25 | 28 | <LangVersion>latestmajor</LangVersion>
|
26 | 29 | </PropertyGroup>
|
27 |
| - <ItemGroup Condition="$(TargetFramework.Contains('-android')) != true"> |
| 30 | + <ItemGroup Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'android' "> |
28 | 31 | <Compile Remove="**\**\*.Android.cs" />
|
29 | 32 | </ItemGroup>
|
30 | 33 |
|
31 | 34 | <!-- Both iOS and Mac Catalyst -->
|
32 |
| - <ItemGroup Condition="$(TargetFramework.Contains('-ios')) != true AND $(TargetFramework.Contains('-maccatalyst')) != true"> |
| 35 | + <ItemGroup Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'ios' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'maccatalyst' "> |
33 | 36 | <Compile Remove="**\**\*.MaciOS.cs" />
|
34 | 37 | <None Include="**\**\*.MaciOS.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
|
35 | 38 | </ItemGroup>
|
36 | 39 |
|
37 | 40 | <!-- iOS -->
|
38 |
| - <ItemGroup Condition="$(TargetFramework.Contains('-ios')) != true"> |
| 41 | + <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'ios'"> |
39 | 42 | <Compile Remove="**\**\*.iOS.cs" />
|
40 | 43 | </ItemGroup>
|
41 |
| - <ItemGroup Condition="$(TargetFramework.Contains('-ios')) == true"> |
42 |
| - <Compile Include="**\**\*.iOS.cs" /> |
43 |
| - </ItemGroup> |
44 | 44 |
|
45 | 45 | <PropertyGroup>
|
46 | 46 | <PackageId>Mapbox.Maui</PackageId>
|
|
53 | 53 | <RepositoryUrl>https://github.com/tuyen-vuduc/mapbox-maui</RepositoryUrl>
|
54 | 54 | <PackageProjectUrl>https://mapbox.tuyen-vuduc.tech</PackageProjectUrl>
|
55 | 55 | <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
56 |
| - <PackageVersion>10.11.1.1</PackageVersion> |
| 56 | + <PackageVersion>11.3.0-alpha03</PackageVersion> |
57 | 57 | <PackageReadmeFile>README.md</PackageReadmeFile>
|
58 | 58 | <PackageLicenseFile>LICENSE</PackageLicenseFile>
|
59 | 59 | <PackageIcon>tv-mapbox.png</PackageIcon>
|
60 | 60 | </PropertyGroup>
|
| 61 | + <PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'"> |
| 62 | + <CreatePackage>false</CreatePackage> |
| 63 | + </PropertyGroup> |
61 | 64 | <ItemGroup>
|
62 | 65 | <None Include="../../../assets/tv-mapbox.png" Pack="True" PackagePath="tv-mapbox.png" />
|
63 | 66 | <None Include="../../../LICENSE" Pack="True" PackagePath="" />
|
64 | 67 | <None Include="../../../README.md" Pack="True" PackagePath="README.md" />
|
65 | 68 |
|
66 |
| - <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" /> |
| 69 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> |
67 | 70 | <PackageReference Include="Xamarin.Build.Download" Version="0.11.4" />
|
68 | 71 | <PackageReference Include="GeoJSON.Text" Version="1.0.2" />
|
| 72 | + <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.40" /> |
69 | 73 | </ItemGroup>
|
70 |
| - |
71 | 74 | <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
|
72 |
| - <PackageReference Include="Com.Mapbox.Maps.Android" Version="10.11.1" /> |
73 |
| - <PackageReference Include="Xamarin.Kotlin.StdLib.Jdk8" Version="1.9.0.1" /> |
74 |
| - <PackageReference Include="Square.OkHttp3" Version="4.10.0.1" /> |
75 |
| - <PackageReference Include="Xamarin.Kotlin.StdLib" Version="1.9.0.1" /> |
76 |
| - <PackageReference Include="Xamarin.AndroidX.Annotation" Version="1.6.0.4" /> |
| 75 | + <PackageReference Include="Com.Mapbox.Maps.Android" Version="11.3.1.7" /> |
| 76 | + <PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.6.1.8" /> |
| 77 | + <PackageReference Include="Xamarin.AndroidX.Fragment.Ktx" Version="1.6.2.3" /> |
| 78 | + <PackageReference Include="Xamarin.Kotlin.StdLib" Version="1.9.23.1" PrivateAssets="none" /> |
| 79 | + <PackageReference Include="Xamarin.Kotlin.StdLib.Common" Version="1.9.23.1" PrivateAssets="none" /> |
77 | 80 | </ItemGroup>
|
78 |
| - |
79 | 81 | <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
|
80 |
| - <PackageReference Include="MapboxMapsObjC.iOS" Version="10.11.1.1" /> |
81 |
| - <PackageReference Include="MapboxMobileEvents.iOS" Version="1.0.10.1" /> |
| 82 | + <PackageReference Include="MapboxMapsObjC.iOS" Version="11.3.0.3" /> |
| 83 | + <PackageReference Include="MapboxMaps.iOS" Version="11.3.0.2" /> |
82 | 84 | </ItemGroup>
|
83 | 85 | <ItemGroup>
|
84 | 86 | <Folder Include="Models\Styles\" />
|
|
102 | 104 | </Properties>
|
103 | 105 | </MonoDevelop>
|
104 | 106 | </ProjectExtensions>
|
| 107 | + <ItemGroup> |
| 108 | + <PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="8.0.40" /> |
| 109 | + </ItemGroup> |
105 | 110 | </Project>
|
0 commit comments