aptabase / aptabase-maui

MAUI SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
https://aptabase.com
MIT License
10 stars 6 forks source link

Remove Maui dependency #4

Open prin53 opened 5 months ago

prin53 commented 5 months ago

We have .NET iOS/Android project and not using Maui, so using the library end ups with:

Could not find Microsoft.Maui referenced by assembly Aptabase.Maui, Version=0.0.9.0, Culture=neutral, PublicKeyToken=null.

I am sure that reference is needed to extend the MauiAppBuilder, and can be safely removed in favour of compatibility.

cristipufu commented 5 months ago

Hi @prin53,

This is a very good idea, we were planning on having a lighter nuget package w/o the Maui dependency, which could be used with WPF / WinUI as well.

Besides the MauiAppBuilder extension method, we need a way to detect the OS Name and Device Model

var platform = DeviceInfo.Current.Platform;
var deviceModel = DeviceInfo.Current.Model;