-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(maps): Restore iOS/Android maps control
- Loading branch information
1 parent
d60ba29
commit 814bd7e
Showing
6 changed files
with
326 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<Project Sdk="MSBuild.Sdk.Extras" ToolsVersion="15.0"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks> | ||
<TargetFrameworks>$(TargetFrameworks);net8.0-maccatalyst;net8.0-macos</TargetFrameworks> | ||
|
||
<TargetFrameworks>$(TargetFrameworks);net7.0-android;net7.0-ios</TargetFrameworks> | ||
<TargetFrameworks>$(TargetFrameworks);net7.0-maccatalyst;net7.0-macos</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<Authors>uno platform</Authors> | ||
<PackageProjectUrl>https://github.com/unoplatform/uno</PackageProjectUrl> | ||
<PackageIcon>uno.png</PackageIcon> | ||
<RepositoryUrl>https://github.com/unoplatform/uno</RepositoryUrl> | ||
<Description>This package provides the ability for Uno Platform based apps to use the MapControl</Description> | ||
<Copyright>Copyright (C) 2015-2023 nventive inc. - all rights reserved</Copyright> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>Uno.UI.Maps</AssemblyName> | ||
<RootNamespace>Uno.UI.Maps</RootNamespace> | ||
|
||
<PackageId Condition="'$(UNO_UWP_BUILD)'!='true'">Uno.WinUI.Maps</PackageId> | ||
|
||
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild> | ||
</PropertyGroup> | ||
|
||
|
||
<ItemGroup> | ||
<None Include="..\Common\uno.png" Pack="true" PackagePath="\" Visible="false"/> | ||
</ItemGroup> | ||
|
||
<Import Project="../targetframework-override.props" /> | ||
|
||
<PropertyGroup> | ||
<NoWarn>$(NoWarn);NU1701</NoWarn> | ||
|
||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Uno.UI\Uno.UI.netcoremobile.csproj" /> | ||
<ProjectReference Include="..\Uno.UWP\Uno.netcoremobile.csproj" TreatAsPackageReference="false" PrivateAssets="all" /> | ||
<ProjectReference Include="..\Uno.Foundation\Uno.Foundation.netcoremobile.csproj" TreatAsPackageReference="false" PrivateAssets="all" /> | ||
<ProjectReference Include="..\Uno.UI.BindingHelper.Android\Uno.UI.BindingHelper.Android.netcoremobile.csproj" Condition="$(IsAndroid)" TreatAsPackageReference="false" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0-android'"> | ||
<PackageReference Include="Xamarin.GooglePlayServices.Location" Version="120.0.0.1" /> | ||
<PackageReference Include="Xamarin.GooglePlayServices.Maps" Version="118.1.0.1" /> | ||
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.v4" PrivateAssets="none" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0-android'"> | ||
<PackageReference Include="Xamarin.GooglePlayServices.Location" Version="120.0.0.1" /> | ||
<PackageReference Include="Xamarin.GooglePlayServices.Maps" Version="118.1.0.1" /> | ||
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.v4" PrivateAssets="none" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\SourceGenerators\Uno.UI.SourceGenerators\Content\Uno.UI.SourceGenerators.props" /> | ||
|
||
<Target Name="_UnoToolkitOverrideNuget" AfterTargets="AfterBuild" DependsOnTargets="BuiltProjectOutputGroup" Condition="'$(UnoNugetOverrideVersion)'!=''"> | ||
|
||
<PropertyGroup> | ||
<_OverrideTargetFramework>$(TargetFramework)</_OverrideTargetFramework> | ||
<_baseNugetPath Condition="'$(USERPROFILE)'!=''">$(USERPROFILE)</_baseNugetPath> | ||
<_baseNugetPath Condition="'$(HOME)'!=''">$(HOME)</_baseNugetPath> | ||
<_TargetNugetFolder>$(_baseNugetPath)\.nuget\packages\$(PackageId)\$(UnoNugetOverrideVersion)\lib\$(_OverrideTargetFramework)</_TargetNugetFolder> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<_OutputFiles Include="$(TargetDir)**" /> | ||
</ItemGroup> | ||
<MakeDir Directories="$(_TargetNugetFolder)" /> | ||
|
||
<Message Importance="high" Text="OVERRIDING NUGET PACKAGE CACHE: $(_TargetNugetFolder)" /> | ||
|
||
<Copy SourceFiles="@(_OutputFiles)" DestinationFiles="@(_OutputFiles->'$(_TargetNugetFolder)\%(RecursiveDir)%(Filename)%(Extension)')" /> | ||
<Copy SourceFiles="@(_OutputFilesPDB)" DestinationFiles="@(_OutputFilesPDB->'$(_TargetNugetFolder)\%(RecursiveDir)%(Filename).pdb')" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<None Update="themes\Generic.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Page Update="themes\Generic.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
</Page> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(UNO_UWP_BUILD)'!='true'"> | ||
<!-- Maps are not yet supported by WinUI 3.0 --> | ||
<Compile Remove="**\*.cs" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition="'$(UNO_UWP_BUILD)'!='true'"> | ||
<!-- Maps are not yet supported by WinUI 3.0 --> | ||
<EnableAutomaticXamlPageInclusion>false</EnableAutomaticXamlPageInclusion> | ||
</PropertyGroup> | ||
|
||
</Project> |
Oops, something went wrong.