From 7f79b2b009a1973deb74438e0fe52b70854de83e Mon Sep 17 00:00:00 2001 From: ndesai-newrelic <89222514+ndesai-newrelic@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:28:42 -0500 Subject: [PATCH] Log forwarding (#181) * feat: log forwarding functionality Add static Methods for log messages and feature flag for log reporting enabled * feat: log forwarding functionality Add static Methods for log messages and feature flag for log reporting enabled * feat: log Forwarding and ANR Reporting * Update release-testing.yaml * fix: fix the depedencies issue in 1.4.0 #180 --- CHANGELOG.md | 13 ++++++++++++- __mocks__/nrm-modular-agent.js | 3 +-- index.js | 20 +++++++++----------- package.json | 2 +- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a93ed0..987d516 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 1.4.0 +## 1.4.1 ## New Features 1. Application Exit Information @@ -16,6 +16,17 @@ - Native Android agent updated to version 7.5.0 - Native iOS agent updated to version 7.5.0 +## 1.4.0 + +## Important Notice + +This is an Unpublished Version + +**Build Status**: Failed + +We encountered issues during the build process for this version. As a result, it has not been published and is not available for general use. + + ## 1.3.9 * Updated the native Android agent to version 7.3.1. diff --git a/__mocks__/nrm-modular-agent.js b/__mocks__/nrm-modular-agent.js index 569fdcf..5ad897f 100644 --- a/__mocks__/nrm-modular-agent.js +++ b/__mocks__/nrm-modular-agent.js @@ -46,8 +46,7 @@ export default { logVerbose: jest.fn(), logDebug: jest.fn(), logError: jest.fn(), - logWarning: jest.fn(), - + logWarn: jest.fn(), isAgentStarted: (name, callback) => { callback(true); }, diff --git a/index.js b/index.js index d2c2de2..a6581b6 100644 --- a/index.js +++ b/index.js @@ -3,18 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -import utils from 'newrelic-react-native-agent/new-relic/nr-utils'; -import {LOG} from 'newrelic-react-native-agent/new-relic/nr-logger'; -import {Platform} from 'react-native'; -import NRMAModularAgentWrapper from 'newrelic-react-native-agent/new-relic/nrma-modular-agent-wrapper'; -import version from 'newrelic-react-native-agent/new-relic/version'; -import forEach from 'lodash.foreach'; -import getCircularReplacer from 'newrelic-react-native-agent/new-relic/circular-replacer'; - +import utils from './new-relic/nr-utils'; +import { LOG } from './new-relic/nr-logger'; +import { Platform } from 'react-native'; +import NRMAModularAgentWrapper from './new-relic/nrma-modular-agent-wrapper'; +import version from './new-relic/version'; +import getCircularReplacer from './new-relic/circular-replacer'; import { - getUnhandledPromiseRejectionTracker, - setUnhandledPromiseRejectionTracker, -} from 'newrelic-react-native-agent/node_modules/react-native-promise-rejection-utils' + getUnhandledPromiseRejectionTracker, + setUnhandledPromiseRejectionTracker, +} from 'react-native-promise-rejection-utils' /** diff --git a/package.json b/package.json index 7434ed2..99fc261 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "newrelic-react-native-agent", - "version": "1.4.0", + "version": "1.4.1", "description": "A New Relic Mobile Agent for React Native", "main": "./index.js", "types": "./dist/index.d.ts",