react-native-test-adx 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/module/sdkVersion.js
CHANGED
|
@@ -7,6 +7,9 @@ const DEFAULT_LEVEL = 'info';
|
|
|
7
7
|
|
|
8
8
|
/** Milestones + native dev warn/error → Sentry Message when Logs are off. */
|
|
9
9
|
const SENTRY_MESSAGE_EVENTS = new Set(['sdk.initialize.completed', 'sdk.initialize.failed', 'recommendation.response.received', 'ad.displayed', 'ad.dismissed', 'ad.show.failed']);
|
|
10
|
+
|
|
11
|
+
/** Native dev: avoid captureMessage during interstitial UI (fake Sentry Issues + bundle stacks). */
|
|
12
|
+
const NATIVE_DEV_BREADCRUMB_ONLY_EVENTS = new Set(['ad.show.started', 'ad.displayed', 'ad.dismissed']);
|
|
10
13
|
let cachedSentryModule;
|
|
11
14
|
let missingSentryPeerWarningShown = false;
|
|
12
15
|
function isDevBuild() {
|
|
@@ -64,7 +67,10 @@ function planSentryDelivery(input, level, platform, sentStructuredLog, ownsSentr
|
|
|
64
67
|
if (input.captureAsEvent && input.error === undefined) {
|
|
65
68
|
sendMessage = true;
|
|
66
69
|
} else if (SENTRY_MESSAGE_EVENTS.has(input.eventName)) {
|
|
67
|
-
|
|
70
|
+
const skipMessage = nativeDev && NATIVE_DEV_BREADCRUMB_ONLY_EVENTS.has(input.eventName);
|
|
71
|
+
if (!skipMessage) {
|
|
72
|
+
sendMessage = true;
|
|
73
|
+
}
|
|
68
74
|
} else if (nativeDev && (level === 'warn' || level === 'error')) {
|
|
69
75
|
sendMessage = true;
|
|
70
76
|
}
|
package/package.json
CHANGED