diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5165125 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "docs/shared"] + path = docs/shared + url = git@github.com:bfn-tech/bfn-tech.github.io.git diff --git a/Matomo.Maui.sln b/Matomo.Maui.sln index 9354b45..f841878 100644 --- a/Matomo.Maui.sln +++ b/Matomo.Maui.sln @@ -10,6 +10,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution README.md = README.md EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample", "Sample", "{84FA4430-CA33-4436-98E6-E421058A0973}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Matomo.Maui.Sample", "Sample\Matomo.Maui.Sample\Matomo.Maui.Sample.csproj", "{F33C9D2B-FDF0-469A-9704-0154B9B87E3B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -20,6 +24,10 @@ Global {160D13D6-14DC-4030-9504-4E29EAD09749}.Debug|Any CPU.Build.0 = Debug|Any CPU {160D13D6-14DC-4030-9504-4E29EAD09749}.Release|Any CPU.ActiveCfg = Release|Any CPU {160D13D6-14DC-4030-9504-4E29EAD09749}.Release|Any CPU.Build.0 = Release|Any CPU + {F33C9D2B-FDF0-469A-9704-0154B9B87E3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F33C9D2B-FDF0-469A-9704-0154B9B87E3B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F33C9D2B-FDF0-469A-9704-0154B9B87E3B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F33C9D2B-FDF0-469A-9704-0154B9B87E3B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -31,5 +39,6 @@ Global {F98A6817-2895-47D3-9FC3-E93BB5747555} = {199F81EB-3FE7-451F-BD77-41E680A31F0B} {EBD1EEA9-0CB1-42E1-B01E-17FEB3B1E2C0} = {F98A6817-2895-47D3-9FC3-E93BB5747555} {C7882A5C-EE2F-4B30-AE11-530F33F4CF2A} = {F98A6817-2895-47D3-9FC3-E93BB5747555} + {F33C9D2B-FDF0-469A-9704-0154B9B87E3B} = {84FA4430-CA33-4436-98E6-E421058A0973} EndGlobalSection EndGlobal diff --git a/README.md b/README.md index 1e65808..b1d77be 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ This library provides [Matomo](https://matomo.org) Tracking for .NET MAUI Apps. This library is published for .NET 6.0 and .NET 7.0, please use the v. 6.x and v. 7.x versions accordingly. +## Documentation + +You can find a reference documentation [here](https://bfn-tech.github.io/Matomo.Maui/html/index.html). + +And a sample project in the `Sample/` folder. + ## Credit This work is based on the work done at [zauberzeug/xamarin.piwik](https://github.com/zauberzeug/xamarin.piwik) diff --git a/Sample/Matomo.Maui.Sample/App.xaml b/Sample/Matomo.Maui.Sample/App.xaml new file mode 100644 index 0000000..1286b3e --- /dev/null +++ b/Sample/Matomo.Maui.Sample/App.xaml @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/Sample/Matomo.Maui.Sample/App.xaml.cs b/Sample/Matomo.Maui.Sample/App.xaml.cs new file mode 100644 index 0000000..5b42885 --- /dev/null +++ b/Sample/Matomo.Maui.Sample/App.xaml.cs @@ -0,0 +1,12 @@ +namespace Matomo.Maui.Sample; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} + diff --git a/Sample/Matomo.Maui.Sample/AppShell.xaml b/Sample/Matomo.Maui.Sample/AppShell.xaml new file mode 100644 index 0000000..cfc8ebc --- /dev/null +++ b/Sample/Matomo.Maui.Sample/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + + diff --git a/Sample/Matomo.Maui.Sample/AppShell.xaml.cs b/Sample/Matomo.Maui.Sample/AppShell.xaml.cs new file mode 100644 index 0000000..f514d01 --- /dev/null +++ b/Sample/Matomo.Maui.Sample/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace Matomo.Maui.Sample; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} + diff --git a/Sample/Matomo.Maui.Sample/MainPage.xaml b/Sample/Matomo.Maui.Sample/MainPage.xaml new file mode 100644 index 0000000..9d06632 --- /dev/null +++ b/Sample/Matomo.Maui.Sample/MainPage.xaml @@ -0,0 +1,42 @@ + + + + + + + + +