Switch TurboModules over to generated getName method

Summary:
Apply the codegen improvements from D41615387

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D41687534

fbshipit-source-id: 1d56f8fcb8d8b546291350785172a3b02abb0873
This commit is contained in:
Pieter De Baets authored and Facebook GitHub Bot committed 2022-12-07 06:35:01 -08:00
1 parent 90538909f9
commit c2a4654d37
35 files changed
+35 -264

No files matched your search

@@ -16,10 +16,8 @@ import java.io.File;
// This module is being called only by Java via the static method "captureHeap" that
// requires it to already be initialized, thus we eagerly initialize this module
@ReactModule(name = JSCHeapCapture.TAG, needsEagerInit = true)
@ReactModule(name = NativeJSCHeapCaptureSpec.NAME, needsEagerInit = true)
public class JSCHeapCapture extends NativeJSCHeapCaptureSpec {
public static final String TAG = "JSCHeapCapture";
public interface HeapCapture extends JavaScriptModule {
void captureHeap(String path);
}
@@ -79,9 +77,4 @@ public class JSCHeapCapture extends NativeJSCHeapCaptureSpec {
mCaptureInProgress = null;
}
}
@Override
public String getName() {
return "JSCHeapCapture";
}
}
@@ -15,7 +15,7 @@ import com.facebook.react.common.SurfaceDelegate;
import com.facebook.react.devsupport.interfaces.DevSupportManager;
import com.facebook.react.module.annotations.ReactModule;
@ReactModule(name = LogBoxModule.NAME)
@ReactModule(name = NativeLogBoxSpec.NAME)
public class LogBoxModule extends NativeLogBoxSpec {
public static final String NAME = "LogBox";
@@ -49,11 +49,6 @@ public class LogBoxModule extends NativeLogBoxSpec {
});
}
@Override
public String getName() {
return NAME;
}
@Override
public void show() {
if (!mSurfaceDelegate.isContentViewReady()) {