Skip to content

Commit

Permalink
chore: update newrelic android and ios native agents. (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndesai-newrelic authored Dec 9, 2024
1 parent 483d383 commit fd3e420
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
mavenLocal()
google()
mavenCentral()
}
Expand All @@ -19,7 +18,6 @@ buildscript {

rootProject.allprojects {
repositories {
mavenLocal()
google()
mavenCentral()

Expand Down Expand Up @@ -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"


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.5")
.withApplicationFramework(ApplicationFramework.Flutter, "1.1.6")
.start(context)
} else {

Expand Down
2 changes: 1 addition & 1 deletion example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

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.5")
NewRelic.perform(selector, with:"1.1.6")

if collectorAddress == nil && crashCollectorAddress == nil {
NewRelic.start(withApplicationToken: applicationToken!)
Expand Down
4 changes: 2 additions & 2 deletions ios/newrelic_mobile.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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' }
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.5");
.setAttribute("Flutter Agent Version", "1.1.6");
}, (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.5
version: 1.1.6

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.5";
const agentVersion = "1.1.6";
const traceData = {
"id": "1",
"guid": "2",
Expand Down

0 comments on commit fd3e420

Please sign in to comment.