Skip to content

Commit

Permalink
Updated MAUI demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv committed Apr 19, 2023
1 parent d83b621 commit 59e2fe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
24 changes: 3 additions & 21 deletions Emgu.CV.Example/MAUI/BuildInfo/BuildInfo.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net6.0-ios;net6.0-maccatalyst;net6.0-android33.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
Expand Down Expand Up @@ -48,26 +48,8 @@
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-windows10.0.19041.0'">
<PackageReference Include="Emgu.CV.runtime.mini.windows" Version="4.6.0.5131" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'">
<PackageReference Include="Emgu.CV.runtime.maui.mini.android">
<Version>4.6.0.5131</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-ios'">
<PackageReference Include="Emgu.CV.runtime.maui.mini.ios">
<Version>4.6.0.5131</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">
<PackageReference Include="Emgu.CV.runtime.maui.mini.macos">
<Version>4.6.0.5131</Version>
</PackageReference>
<ItemGroup>
<PackageReference Include="Emgu.CV.runtime.maui.mini" Version="4.7.0.5276" />
</ItemGroup>

</Project>
7 changes: 1 addition & 6 deletions Emgu.CV.Example/MAUI/BuildInfo/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ namespace BuildInfo;
public partial class MainPage : ContentPage
{


public MainPage()
{
InitializeComponent();

#if __IOS__
CvInvokeIOS.Init();
#elif __ANDROID__
CvInvokeAndroid.Init();
#endif
Emgu.CV.Platform.Maui.MauiInvoke.Init();
}

private void OnCounterClicked(object sender, EventArgs e)
Expand Down

0 comments on commit 59e2fe0

Please sign in to comment.