From fd3e420d735fe75fce3b308e439670ea51d8b987 Mon Sep 17 00:00:00 2001 From: ndesai-newrelic <89222514+ndesai-newrelic@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:56:47 -0600 Subject: [PATCH] chore: update newrelic android and ios native agents. (#131) --- CHANGELOG.md | 8 ++++++++ android/build.gradle | 4 +--- .../com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt | 2 +- example/android/settings.gradle | 2 +- ios/Classes/SwiftNewrelicMobilePlugin.swift | 2 +- ios/newrelic_mobile.podspec | 4 ++-- lib/newrelic_mobile.dart | 2 +- pubspec.yaml | 2 +- test/newrelic_mobile_test.dart | 2 +- 9 files changed, 17 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c534a54..93bc2f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +### 1.1.6 + +## Enhancements + +- Upgraded native Android agent to version 7.6.2 +- Upgraded native iOS agent to version 7.5.3 + + ### 1.1.5 ## Updates diff --git a/android/build.gradle b/android/build.gradle index 4692eae..9c44b12 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,7 +6,6 @@ version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.7.10' repositories { - mavenLocal() google() mavenCentral() } @@ -19,7 +18,6 @@ buildscript { rootProject.allprojects { repositories { - mavenLocal() google() mavenCentral() @@ -59,7 +57,7 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'com.newrelic.agent.android:android-agent:7.6.1' + implementation 'com.newrelic.agent.android:android-agent:7.6.2' implementation "com.newrelic.agent.android:agent-ndk:1.1.1" 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 15731c0..af2098c 100644 --- a/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt +++ b/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt @@ -119,7 +119,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler { applicationToken ).withLoggingEnabled(loggingEnabled!!) .withLogLevel(LogLevel.valueOf(logLevel!!).ordinal) - .withApplicationFramework(ApplicationFramework.Flutter, "1.1.5") + .withApplicationFramework(ApplicationFramework.Flutter, "1.1.6") .start(context) } else { diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 5a50d99..a0f2c13 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -20,7 +20,7 @@ plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "7.4.2" apply false id "org.jetbrains.kotlin.android" version "1.7.10" apply false - id "com.newrelic.agent.android" version "7.5.1" apply false + id "com.newrelic.agent.android" version "7.6.2" apply false } diff --git a/ios/Classes/SwiftNewrelicMobilePlugin.swift b/ios/Classes/SwiftNewrelicMobilePlugin.swift index 326d1ac..9214312 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.5") + NewRelic.perform(selector, with:"1.1.6") if collectorAddress == nil && crashCollectorAddress == nil { NewRelic.start(withApplicationToken: applicationToken!) diff --git a/ios/newrelic_mobile.podspec b/ios/newrelic_mobile.podspec index 93ebddb..9eef3a4 100644 --- a/ios/newrelic_mobile.podspec +++ b/ios/newrelic_mobile.podspec @@ -9,7 +9,7 @@ # Pod::Spec.new do |s| s.name = 'newrelic_mobile' - s.version = '1.1.2' + s.version = '1.1.6' s.summary = 'Flutter plugin for NewRelic Mobile.' s.description = <<-DESC Flutter plugin for NewRelic Mobile. @@ -22,7 +22,7 @@ Flutter plugin for NewRelic Mobile. s.dependency 'Flutter' s.platform = :ios, '9.0' - s.dependency 'NewRelicAgent', '~>7.5.2' + s.dependency 'NewRelicAgent', '~>7.5.3' # 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 7408652..430f19b 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.5"); + .setAttribute("Flutter Agent Version", "1.1.6"); }, (Object error, StackTrace stackTrace) { NewrelicMobile.instance.recordError(error, stackTrace); FlutterError.presentError( diff --git a/pubspec.yaml b/pubspec.yaml index bb52bb2..5706ff7 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.5 +version: 1.1.6 homepage: https://github.com/newrelic/newrelic-flutter-agent diff --git a/test/newrelic_mobile_test.dart b/test/newrelic_mobile_test.dart index cccfc84..4f4c53b 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.5"; + const agentVersion = "1.1.6"; const traceData = { "id": "1", "guid": "2",