Skip to content

Commit

Permalink
chore: update android agent version (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndesai-newrelic authored Oct 18, 2024
1 parent 5c1edb5 commit 3df2a92
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 1.1.5

## Updates
- Updated the underlying native Android agent to version 7.6.1 for improved performance and compatibility.


### 1.1.4

## Updates
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.newrelic.agent.android:android-agent:7.6.0'
implementation 'com.newrelic.agent.android:android-agent:7.6.1'
implementation "com.newrelic.agent.android:agent-ndk:1.1.1"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler {
applicationToken
).withLoggingEnabled(loggingEnabled!!)
.withLogLevel(LogLevel.valueOf(logLevel!!).ordinal)
.withApplicationFramework(ApplicationFramework.Flutter, "1.1.3")
.withApplicationFramework(ApplicationFramework.Flutter, "1.1.5")
.start(context)
} else {

Expand All @@ -132,7 +132,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler {
"crashCollectorAddress"
) as String);
NewRelic.withApplicationToken(applicationToken)
.withApplicationFramework(ApplicationFramework.Flutter, "1.1.4")
.withApplicationFramework(ApplicationFramework.Flutter, "1.1.5")
.withLoggingEnabled(loggingEnabled!!)
.withLogLevel(LogLevel.valueOf(logLevel!!).ordinal)
.usingCollectorAddress(collectorAddress)
Expand All @@ -141,7 +141,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler {

}
NewRelic.setAttribute("DartVersion", dartVersion)
StatsEngine.get().inc("Supportability/Mobile/Android/Flutter/Agent/1.1.4")
StatsEngine.get().inc("Supportability/Mobile/Android/Flutter/Agent/1.1.5")
result.success("Agent Started")
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SwiftNewrelicMobilePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public class SwiftNewrelicMobilePlugin: NSObject, FlutterPlugin {

NewRelic.setPlatform(NRMAApplicationPlatform.platform_Flutter)
let selector = NSSelectorFromString("setPlatformVersion:")
NewRelic.perform(selector, with:"1.1.4")
NewRelic.perform(selector, with:"1.1.5")

if collectorAddress == nil && crashCollectorAddress == nil {
NewRelic.start(withApplicationToken: applicationToken!)
Expand Down
2 changes: 1 addition & 1 deletion lib/newrelic_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class NewrelicMobile {
await NewrelicMobile.instance.startAgent(config);
runApp();
await NewrelicMobile.instance
.setAttribute("Flutter Agent Version", "1.1.4");
.setAttribute("Flutter Agent Version", "1.1.5");
}, (Object error, StackTrace stackTrace) {
NewrelicMobile.instance.recordError(error, stackTrace);
FlutterError.presentError(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.4
version: 1.1.5

homepage: https://github.com/newrelic/newrelic-flutter-agent

Expand Down
2 changes: 1 addition & 1 deletion test/newrelic_mobile_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void main() {
const megaBytes = 100;
const maxBufferTime = 300;
const metricUnitBytes = "bytes";
const agentVersion = "1.1.4";
const agentVersion = "1.1.5";
const traceData = {
"id": "1",
"guid": "2",
Expand Down

0 comments on commit 3df2a92

Please sign in to comment.