Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.0.1 Pre GA #21

Merged
merged 4 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 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.


## 0.0.1-dev.10

The Native iOS Agent has been updated to version 7.4.2.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```

Expand Down Expand Up @@ -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"
}
}
```
Expand Down
6 changes: 1 addition & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ buildscript {
repositories {
google()
mavenCentral()

}

dependencies {
Expand All @@ -19,9 +18,6 @@ rootProject.allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/comnewrelic-2605"
}

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ class NewrelicMobilePlugin : FlutterPlugin, MethodCallHandler {
NewRelic.disableFeature(FeatureFlag.InteractionTracing)
}

NewRelic.enableFeature(FeatureFlag.NativeReporting);

NewRelic.withApplicationToken(
applicationToken
).withLoggingEnabled(loggingEnabled!!)
.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" -> {
Expand Down
1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<application
android:label="newrelic_mobile_example"
android:name="${applicationName}"
android:networkSecurityConfig="@xml/network_security_config"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.newrelic.agent.android:agent-gradle-plugin:6.9.2'
classpath 'com.newrelic.agent.android:agent-gradle-plugin:6.10.0'
}
}

Expand Down
13 changes: 8 additions & 5 deletions example/ios/Runner/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
Expand All @@ -14,13 +16,14 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-16" y="-40"/>
</scene>
</scenes>
</document>
2 changes: 1 addition & 1 deletion ios/newrelic_mobile.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
2 changes: 1 addition & 1 deletion lib/newrelic_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
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: 0.0.1-dev.10
version: 0.0.1-dev.11
homepage: https://github.com/newrelic/newrelic-flutter-agent

environment:
Expand Down
4 changes: 2 additions & 2 deletions test/newrelic_mobile_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ void main() {

final Map<String, dynamic> attributeParams = <String, dynamic>{
'name': 'Flutter Agent Version',
'value': '0.0.1-dev.10',
'value': '0.0.1-dev.11',
};

expect(methodCalLogs, <Matcher>[
Expand Down Expand Up @@ -684,7 +684,7 @@ void main() {

final Map<String, dynamic> attributeParams = <String, dynamic>{
'name': 'Flutter Agent Version',
'value': '0.0.1-dev.10',
'value': '0.0.1-dev.11',
};

expect(methodCalLogs, <Matcher>[
Expand Down