mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
8478f461df
commit
b9b2215174
@@ -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"),
|
||||
|
||||
+2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user