Skip to content

Commit

Permalink
Release 1 1 4 (#51)
Browse files Browse the repository at this point in the history
* fix:iOS namespace issue #45

* fix: added missing info.plist file in iOS bindings

* release 1.1.4
  • Loading branch information
ndesai-newrelic authored Oct 22, 2024
1 parent eab04f5 commit 6676c6b
Show file tree
Hide file tree
Showing 24 changed files with 196 additions and 150 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

# 1.1.4

## Improvements

- Added Support to Record iOS Crash as Handled Exception
- Native Android agent updated to version 7.6.1
- Native iOS agent updated to version 7.5.2

# 1.1.3

- Fixed info Plist issue for iOS Binding

# 1.1.2

- Resolved the iOS bindings namespace issue which was causing conflicts for customers due to the namespace clash with the newrelic package.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Authors>New Relic</Authors>
<PackageTags>newrelic;MAUI;android;new relic;observability;monitoring;telemetry</PackageTags>
<Version>7.5.1</Version>
<Version>7.6.1</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions NewRelic.MAUI.Plugin/NewRelic.MAUI.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>NewRelic.MAUI.Plugin</PackageId>
<Version>1.1.3</Version>
<Version>1.1.4</Version>
<Summary>New Relic Plugin for .NET MAUI mobile apps</Summary>
<Description>With the New Relic .NET MAUI mobile plugin, your team can monitor the performance of .NET MAUI apps and identify code errors. The plugin collects crash data, network traffic, and other information for your apps using native components.</Description>
<Authors>New Relic</Authors>
Expand All @@ -32,9 +32,9 @@
<Folder Include="Shared\" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
<PackageReference Include="NewRelic.MAUI.Android.Binding" Version="7.5.1" />
<PackageReference Include="NewRelic.MAUI.Android.Binding" Version="7.6.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-ios'">
<PackageReference Include="NewRelic.MAUI.iOS.Binding" Version="7.5.1.2" />
<PackageReference Include="NewRelic.MAUI.iOS.Binding" Version="7.5.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

using System.Reflection;
using Android.Runtime;
using Com.Newrelic.Agent.Android.Logging;

using NRAndroidAgent = Com.Newrelic.Agent.Android.NewRelic;
using NRNetworkFailure = Com.Newrelic.Agent.Android.Util.NetworkFailure;
using NRMetricUnit = Com.Newrelic.Agent.Android.Metric.MetricUnit;
Expand Down Expand Up @@ -128,7 +126,7 @@ public void Start(string applicationToken, AgentStartConfiguration agentConfig =


var newRelic = NRAndroidAgent.WithApplicationToken(applicationToken)
.WithApplicationFramework(Com.Newrelic.Agent.Android.ApplicationFramework.Maui, "1.1.3")
.WithApplicationFramework(Com.Newrelic.Agent.Android.ApplicationFramework.Maui, "1.1.4")
.WithLoggingEnabled(agentConfig.loggingEnabled)
.WithLogLevel(logLevelDict[agentConfig.logLevel]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

using Foundation;
using System.Diagnostics;
using NRIosAgent = MauiiOS.NewRelic.NewRelic;

namespace NewRelic.MAUI.Plugin;
Expand Down Expand Up @@ -52,7 +51,7 @@ public void Start(string applicationToken, AgentStartConfiguration agentConfig =

NRIosAgent.EnableCrashReporting(agentConfig.crashReportingEnabled);
NRIosAgent.SetPlatform(MauiiOS.NewRelic.NRMAApplicationPlatform.Maui);
MauiiOS.NewRelic.NewRelic.SetPlatformVersion("1.1.3");
MauiiOS.NewRelic.NewRelic.SetPlatformVersion("1.1.4");


MauiiOS.NewRelic.NRLogger.SetLogLevels((uint)logLevelDict[agentConfig.logLevel]);
Expand Down Expand Up @@ -164,12 +163,15 @@ public bool IncrementAttribute(string name, float value = 1)

public void NoticeHttpTransaction(string url, string httpMethod, int statusCode, long startTime, long endTime, long bytesSent, long bytesReceived, string responseBody)
{
IntPtr statusCodePtr = new IntPtr(statusCode);

NRIosAgent.NoticeNetworkRequestForURL(Foundation.NSUrl.FromString(url),

httpMethod,
startTime,
endTime,
new NSDictionary(),
statusCode,
statusCodePtr,
(nuint)bytesSent,
(nuint)bytesReceived,
new NSData(),
Expand Down
2 changes: 2 additions & 0 deletions NewRelic.MAUI.Plugin/Shared/INewRelicMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/



namespace NewRelic.MAUI.Plugin
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion NewRelic.MAUI.iOS.Binding/NewRelic.MAUI.iOS.Binding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>true</ImplicitUsings>
<PackageId>NewRelic.MAUI.iOS.Binding</PackageId>
<Authors>New Relic</Authors>
<Version>7.5.1.2</Version>
<Version>7.5.2</Version>
<IsBindingProject>true</IsBindingProject>
<summary>NewRelic iOS SDK binding for .NET MAUI</summary>
<description>A .NET iOS library that binds the native New Relic iOS SDK. With NewRelic, you can collect crashes, network traffic, and other information for .NET MAUI iOS apps using native components.</description>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 6676c6b

Please sign in to comment.