Add DoNotStrip annotations to TurboModulePerfLogger

Summary:
Prevent proguard from stripping these methods

Changelog: [Internal] Add DoNotStrip annotations to TurboModulePerfLogger

Reviewed By: RSNara

Differential Revision: D25101027

fbshipit-source-id: 673e97446a36fe0e8c10916aa7eb4c39c2187ba8
This commit is contained in:
Xiaoyu Yin
2020-11-30 14:15:24 -08:00
committed by Facebook GitHub Bot
parent 8478f461df
commit b9b2215174
2 changed files with 3 additions and 0 deletions
@@ -14,6 +14,7 @@ rn_android_library(
"PUBLIC",
],
deps = [
"//fbandroid/java/com/facebook/proguard/annotations:annotations",
react_native_dep("third-party/android/androidx:annotation"),
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
react_native_dep("java/com/facebook/systrace:systrace"),
@@ -7,10 +7,12 @@
package com.facebook.react.turbomodule.core;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.perflogger.NativeModulePerfLogger;
import com.facebook.soloader.SoLoader;
import javax.annotation.Nullable;
@DoNotStrip
public class TurboModulePerfLogger {
@Nullable private static NativeModulePerfLogger sNativeModulePerfLogger = null;
private static boolean sIsSoLibraryLoaded = false;