From 61041aee49aafd12028785fbf96120113b6795f1 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Wed, 18 Sep 2024 09:57:18 +0200 Subject: [PATCH] feat: Uno.UI.GooglePlay --- Directory.Build.props | 1 + .../Properties/AssemblyInfo.cs | 7 ++ .../Uno.UI.GooglePlay.netcoremobile.csproj | 77 +++++++++++++++++++ .../Uno.WinUI.GooglePlay.targets | 8 ++ ...BindingHelper.Android.netcoremobile.csproj | 2 +- 5 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 src/AddIns/Uno.UI.GooglePlay/Properties/AssemblyInfo.cs create mode 100644 src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj create mode 100644 src/AddIns/Uno.UI.GooglePlay/buildTransitive/Uno.WinUI.GooglePlay.targets diff --git a/Directory.Build.props b/Directory.Build.props index 0d481f59ff94..1a293b95a86b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -28,6 +28,7 @@ $(NetCurrent)-windows $(NetPreviousNetCoreMobile);$(NetCurrentNetCoreMobile) + $(NetPrevious)-android;$(NetCurrent)-android $(NetPreviousWpf);$(NetCurrentWpf) $(NetPrevious);$(NetCurrent) $(NetPrevious);$(NetCurrent) diff --git a/src/AddIns/Uno.UI.GooglePlay/Properties/AssemblyInfo.cs b/src/AddIns/Uno.UI.GooglePlay/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..c8ea7d3394c7 --- /dev/null +++ b/src/AddIns/Uno.UI.GooglePlay/Properties/AssemblyInfo.cs @@ -0,0 +1,7 @@ +using System.Reflection; +using Uno.Foundation.Extensibility; +using Uno.UI.Xaml.Media.Imaging.Svg; + +[assembly: AssemblyMetadata("IsTrimmable", "True")] + +[assembly: ApiExtension(typeof(IInAppReviewExtension), typeof(InAppReviewExtension))] diff --git a/src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj b/src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj new file mode 100644 index 000000000000..8559b9fa077f --- /dev/null +++ b/src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj @@ -0,0 +1,77 @@ + + + + $(NetAndroidPreviousAndCurrent) + + + + + + $(NoWarn);Uno0001 + true + enable + Uno.UI.GooglePlay + Uno.UI.GooglePlay + + $(DefineConstants);HAS_SKOTTIE + + + + + + + + + build + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_OverrideTargetFramework>$(TargetFramework) + + + <_OverrideTargetFramework Condition="$(_OverrideTargetFramework.EndsWith('.0-android'))">$(_OverrideTargetFramework)30.0 + + <_TargetNugetFolder>$(NuGetPackageRoot)\uno.ui.GooglePlay\$(UnoNugetOverrideVersion)\lib\$(_OverrideTargetFramework) + + + <_OutputFiles Include="$(TargetDir)**" /> + + + + + + + + + diff --git a/src/AddIns/Uno.UI.GooglePlay/buildTransitive/Uno.WinUI.GooglePlay.targets b/src/AddIns/Uno.UI.GooglePlay/buildTransitive/Uno.WinUI.GooglePlay.targets new file mode 100644 index 000000000000..1302828ad5ad --- /dev/null +++ b/src/AddIns/Uno.UI.GooglePlay/buildTransitive/Uno.WinUI.GooglePlay.targets @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/Uno.UI.BindingHelper.Android/Uno.UI.BindingHelper.Android.netcoremobile.csproj b/src/Uno.UI.BindingHelper.Android/Uno.UI.BindingHelper.Android.netcoremobile.csproj index 2ff5c6a50366..4f8e91f290a8 100644 --- a/src/Uno.UI.BindingHelper.Android/Uno.UI.BindingHelper.Android.netcoremobile.csproj +++ b/src/Uno.UI.BindingHelper.Android/Uno.UI.BindingHelper.Android.netcoremobile.csproj @@ -1,6 +1,6 @@  - $(NetPrevious)-android;$(NetCurrent)-android + $(NetAndroidPreviousAndCurrent) true 1701;1702;1705;109