From 6a87e9a9f26f77b7b3d787e8da9432105958a24d Mon Sep 17 00:00:00 2001 From: ndesai Date: Wed, 15 Mar 2023 09:01:38 -0500 Subject: [PATCH 1/4] Flutter GA Release --- android/build.gradle | 6 +----- .../newrelic_mobile/NewrelicMobilePlugin.kt | 2 -- example/android/app/src/main/AndroidManifest.xml | 1 + example/android/build.gradle | 2 +- example/ios/Runner/Base.lproj/Main.storyboard | 13 ++++++++----- ios/newrelic_mobile.podspec | 2 +- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 2df619e..5751c57 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,7 +6,6 @@ buildscript { repositories { google() mavenCentral() - } dependencies { @@ -19,9 +18,6 @@ rootProject.allprojects { repositories { google() mavenCentral() - maven { - url "https://oss.sonatype.org/content/repositories/comnewrelic-2605" - } } } @@ -52,6 +48,6 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'com.newrelic.agent.android:android-agent:6.9.3' + implementation 'com.newrelic.agent.android:android-agent:6.10.0' } 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 da36a0b..b7e625b 100644 --- a/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt +++ b/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt @@ -81,8 +81,6 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler { NewRelic.disableFeature(FeatureFlag.InteractionTracing) } - NewRelic.enableFeature(FeatureFlag.NativeReporting); - NewRelic.withApplicationToken( applicationToken ).withLoggingEnabled(loggingEnabled!!) diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 5828e8f..e6a53bc 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -7,6 +7,7 @@ - + + + - + + @@ -14,13 +16,14 @@ - + - + + diff --git a/ios/newrelic_mobile.podspec b/ios/newrelic_mobile.podspec index 21c72e8..5558b36 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.4.2' + s.dependency 'NewRelicAgent', '7.4.3' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } From 4346fc0ca762b51fb0490bcf5c8a2cbe1ed1ed6d Mon Sep 17 00:00:00 2001 From: ndesai Date: Fri, 17 Mar 2023 09:27:13 -0500 Subject: [PATCH 2/4] Doc: Updating Read.me and Release notes --- CHANGELOG.md | 6 ++++++ README.md | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec2b2c7..69b1abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## 0.0.1-dev.10 +The Native iOS Agent has been updated to version 7.4.2. +The Native Android Agent has been updated to version 6.10.0. + + +## 0.0.1-dev.10 + The Native iOS Agent has been updated to version 7.4.2. ## 0.0.1-dev.9 diff --git a/README.md b/README.md index 1581c44..0074388 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Install NewRelic plugin into your dart project by adding it to dependecies in yo ```yaml dependencies: - newrelic_mobile: 0.0.1-dev.10 + newrelic_mobile: 0.0.1-dev.11 ``` @@ -201,7 +201,7 @@ final router = GoRouter( } dependencies { ... - classpath "com.newrelic.agent.android:agent-gradle-plugin:6.9.2" + classpath "com.newrelic.agent.android:agent-gradle-plugin:6.10.0" } } ``` diff --git a/pubspec.yaml b/pubspec.yaml index 0a7b9af..692359d 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: 0.0.1-dev.10 +version: 0.0.1-dev.11 homepage: https://github.com/newrelic/newrelic-flutter-agent environment: From 03319cf3c390e60d2dccb12cb9dc261f39b6a103 Mon Sep 17 00:00:00 2001 From: ndesai Date: Fri, 17 Mar 2023 09:54:11 -0500 Subject: [PATCH 3/4] Updating unit test cases and attributes --- .../com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt | 2 +- lib/newrelic_mobile.dart | 2 +- test/newrelic_mobile_test.dart | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 b7e625b..c255049 100644 --- a/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt +++ b/android/src/main/kotlin/com/newrelic/newrelic_mobile/NewrelicMobilePlugin.kt @@ -87,7 +87,7 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler { .withLogLevel(5) .withApplicationFramework(ApplicationFramework.Flutter, "3.0.0").start(context) NewRelic.setAttribute("DartVersion", dartVersion) - StatsEngine.get().inc("Supportability/Mobile/Android/Flutter/Agent/0.0.1-dev.10"); + StatsEngine.get().inc("Supportability/Mobile/Android/Flutter/Agent/0.0.1-dev.11"); result.success("Agent Started") } "setUserId" -> { diff --git a/lib/newrelic_mobile.dart b/lib/newrelic_mobile.dart index 7a6089b..0e49cf0 100644 --- a/lib/newrelic_mobile.dart +++ b/lib/newrelic_mobile.dart @@ -37,7 +37,7 @@ class NewrelicMobile { await NewrelicMobile.instance.startAgent(config); runApp(); await NewrelicMobile.instance - .setAttribute("Flutter Agent Version", "0.0.1-dev.10"); + .setAttribute("Flutter Agent Version", "0.0.1-dev.11"); }, (Object error, StackTrace stackTrace) { NewrelicMobile.instance.recordError(error, stackTrace); FlutterError.presentError( diff --git a/test/newrelic_mobile_test.dart b/test/newrelic_mobile_test.dart index c1e6f33..53cadc8 100644 --- a/test/newrelic_mobile_test.dart +++ b/test/newrelic_mobile_test.dart @@ -638,7 +638,7 @@ void main() { final Map attributeParams = { 'name': 'Flutter Agent Version', - 'value': '0.0.1-dev.10', + 'value': '0.0.1-dev.11', }; expect(methodCalLogs, [ @@ -684,7 +684,7 @@ void main() { final Map attributeParams = { 'name': 'Flutter Agent Version', - 'value': '0.0.1-dev.10', + 'value': '0.0.1-dev.11', }; expect(methodCalLogs, [ From 89e3122faa5c99fcfac302c4853ff2213efb3987 Mon Sep 17 00:00:00 2001 From: ndesai Date: Fri, 17 Mar 2023 09:59:51 -0500 Subject: [PATCH 4/4] fix changelog.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69b1abd..4dca9a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.0.1-dev.10 +## 0.0.1-dev.11 The Native iOS Agent has been updated to version 7.4.2. The Native Android Agent has been updated to version 6.10.0.