From aa3ed0d7435257a056d82ddc550f31d12707da8b Mon Sep 17 00:00:00 2001 From: ndesai Date: Thu, 10 Oct 2024 13:33:24 -0500 Subject: [PATCH] chore: update ios agent version in podspec --- CHANGELOG.md | 5 +++++ README.md | 2 +- .../com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt | 4 ++-- ios/Classes/SwiftNewrelicMobilePlugin.swift | 2 +- ios/newrelic_mobile.podspec | 2 +- lib/newrelic_mobile.dart | 3 +-- pubspec.yaml | 2 +- test/newrelic_mobile_test.dart | 2 +- 8 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bc18d8..25652fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 1.1.4 + +## Updates +- Updated the underlying native iOS agent to version 7.5.2 for improved performance and compatibility. + ### 1.1.3 ## Bug Fixes diff --git a/README.md b/README.md index 0e1a969..8506c35 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Install NewRelic plugin into your dart project by adding it to dependecies in yo ```yaml dependencies: - newrelic_mobile: 1.1.3 + newrelic_mobile: 1.1.4 ``` diff --git a/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt b/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt index d599f1c..9c89c57 100644 --- a/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt +++ b/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt @@ -132,7 +132,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler { "crashCollectorAddress" ) as String); NewRelic.withApplicationToken(applicationToken) - .withApplicationFramework(ApplicationFramework.Flutter, "1.1.3") + .withApplicationFramework(ApplicationFramework.Flutter, "1.1.4") .withLoggingEnabled(loggingEnabled!!) .withLogLevel(LogLevel.valueOf(logLevel!!).ordinal) .usingCollectorAddress(collectorAddress) @@ -141,7 +141,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler { } NewRelic.setAttribute("DartVersion", dartVersion) - StatsEngine.get().inc("Supportability/Mobile/Android/Flutter/Agent/1.1.3") + StatsEngine.get().inc("Supportability/Mobile/Android/Flutter/Agent/1.1.4") result.success("Agent Started") } diff --git a/ios/Classes/SwiftNewrelicMobilePlugin.swift b/ios/Classes/SwiftNewrelicMobilePlugin.swift index 097b993..e96a8b3 100644 --- a/ios/Classes/SwiftNewrelicMobilePlugin.swift +++ b/ios/Classes/SwiftNewrelicMobilePlugin.swift @@ -107,7 +107,7 @@ public class SwiftNewrelicMobilePlugin: NSObject, FlutterPlugin { NewRelic.setPlatform(NRMAApplicationPlatform.platform_Flutter) let selector = NSSelectorFromString("setPlatformVersion:") - NewRelic.perform(selector, with:"1.1.3") + NewRelic.perform(selector, with:"1.1.4") if collectorAddress == nil && crashCollectorAddress == nil { NewRelic.start(withApplicationToken: applicationToken!) diff --git a/ios/newrelic_mobile.podspec b/ios/newrelic_mobile.podspec index 4610e30..93ebddb 100644 --- a/ios/newrelic_mobile.podspec +++ b/ios/newrelic_mobile.podspec @@ -22,7 +22,7 @@ Flutter plugin for NewRelic Mobile. s.dependency 'Flutter' s.platform = :ios, '9.0' - s.dependency 'NewRelicAgent', '~>7.5.1' + s.dependency 'NewRelicAgent', '~>7.5.2' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } diff --git a/lib/newrelic_mobile.dart b/lib/newrelic_mobile.dart index 6cde9da..d8ff2ec 100644 --- a/lib/newrelic_mobile.dart +++ b/lib/newrelic_mobile.dart @@ -41,7 +41,7 @@ class NewrelicMobile { await NewrelicMobile.instance.startAgent(config); runApp(); await NewrelicMobile.instance - .setAttribute("Flutter Agent Version", "1.1.3"); + .setAttribute("Flutter Agent Version", "1.1.4"); }, (Object error, StackTrace stackTrace) { NewrelicMobile.instance.recordError(error, stackTrace); FlutterError.presentError( @@ -95,7 +95,6 @@ class NewrelicMobile { final Map eventParams = Map.from(params); if (attributes != null) { - for (final String key in attributes.keys) { if (key == 'attributes') { continue; diff --git a/pubspec.yaml b/pubspec.yaml index 79a421a..10ada21 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: newrelic_mobile description: Flutter plugin for NewRelic Mobile. This plugin allows you to instrument Flutter apps with help of native New Relic Android and iOS agents. -version: 1.1.3 +version: 1.1.4 homepage: https://github.com/newrelic/newrelic-flutter-agent diff --git a/test/newrelic_mobile_test.dart b/test/newrelic_mobile_test.dart index 812e900..ee8badd 100644 --- a/test/newrelic_mobile_test.dart +++ b/test/newrelic_mobile_test.dart @@ -53,7 +53,7 @@ void main() { const megaBytes = 100; const maxBufferTime = 300; const metricUnitBytes = "bytes"; - const agentVersion = "1.1.3"; + const agentVersion = "1.1.4"; const traceData = { "id": "1", "guid": "2",