Skip to content

Commit

Permalink
Specific maui version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhindrik committed Oct 29, 2024
1 parent 67cd060 commit 7377adc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
12 changes: 1 addition & 11 deletions TinyInsights.TestApp/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,7 @@ public static MauiApp CreateMauiApp()
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.UseTinyInsights("InstrumentationKey=8b51208f-7926-4b7b-9867-16989206b950;IngestionEndpoint=https://swedencentral-0.in.applicationinsights.azure.com/;ApplicationId=0c04d3a0-9ee2-41a5-996e-526552dc730f",
(provider, serviceProvider) =>
{
provider.IsTrackErrorsEnabled = true;
provider.IsTrackCrashesEnabled = true;
provider.IsTrackPageViewsEnabled = true;
provider.IsAutoTrackPageViewsEnabled = true;
provider.IsTrackEventsEnabled = true;
provider.IsTrackDependencyEnabled = true;
provider.IsAutoTrackPageViewsEnabled = true;
});
.UseTinyInsights("InstrumentationKey=8b51208f-7926-4b7b-9867-16989206b950;IngestionEndpoint=https://swedencentral-0.in.applicationinsights.azure.com/;ApplicationId=0c04d3a0-9ee2-41a5-996e-526552dc730f");

builder.Services.AddSingleton<ILogger>((serviceProvider) =>
{
Expand Down
4 changes: 2 additions & 2 deletions TinyInsights/InsightsExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder)
return appBuilder;
}

public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder, string? applicationInsightsConnectionString = null, Action<IInsightsProvider, IServiceProvider>? configureProvider = null)
public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder, string applicationInsightsConnectionString)
{
return UseTinyInsights(appBuilder, applicationInsightsConnectionString, null, configureProvider);
return UseTinyInsights(appBuilder, applicationInsightsConnectionString, null);
}

public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder, string? applicationInsightsConnectionString = null, Action<IInsightsProvider>? configureProvider = null)
Expand Down
4 changes: 2 additions & 2 deletions TinyInsights/TinyInsights.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)"/>
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)"/>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.92"/>
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.92"/>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />
</ItemGroup>

Expand Down

0 comments on commit 7377adc

Please sign in to comment.