From 1dc0f7e99498539773754eb5d5cc98faa89f5ca4 Mon Sep 17 00:00:00 2001 From: "Andrew Y. Chen" Date: Mon, 17 Apr 2017 14:45:38 -0700 Subject: [PATCH] Instrumentation tests for apps that provide a testPayload Reviewed By: AaaChiuuu Differential Revision: D4873849 fbshipit-source-id: b5235b952faea2e42fb4292fac4ca409e22ecb56 --- .../main/java/com/facebook/react/bridge/ReactMarker.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java index 5dc1dc9fd..c2df8f0d6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java @@ -5,6 +5,7 @@ package com.facebook.react.bridge; import javax.annotation.Nullable; import com.facebook.proguard.annotations.DoNotStrip; + /** * Static class that allows markers to be placed in React code and responded to in a * configurable way @@ -25,6 +26,11 @@ public class ReactMarker { sMarkerListener = listener; } + @DoNotStrip + public static void clearMarkerListener() { + sMarkerListener = null; + } + @DoNotStrip public static void logMarker(String name) { logMarker(name, null);