mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This diff checks in the output from `fbsource//xplat/js:FBReactNativeSpec-flow-type-android-files` into `react-native-github/ReactAndroid/src/main/java/com/facebook/fbreact/specs/`. To update the codegen output, please run: ``` js1 build oss-native-modules-specs -p android ``` To use the codegen, add the following as a buck dep to your target: ``` fbsource//xplat/js/react-native-github/ReactAndroid/src/main/java/com/facebook/fbreact/specs:FBReactNativeSpecAndroid ``` Changelog: [Android][Added] Check in TurboModules codegen Reviewed By: fkgozali Differential Revision: D17990380 fbshipit-source-id: 94895e375311e9360c308dffadf1558a5ff04212
33 lines
1023 B
Java
33 lines
1023 B
Java
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
|
* directory of this source tree.
|
|
*
|
|
* <p>Generated by an internal genrule from Flow types.
|
|
*
|
|
* @generated
|
|
* @nolint
|
|
*/
|
|
|
|
package com.facebook.fbreact.specs;
|
|
|
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
import com.facebook.react.bridge.ReactMethod;
|
|
import com.facebook.react.bridge.ReactModuleWithSpec;
|
|
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
import javax.annotation.Nullable;
|
|
|
|
public abstract class NativeHeapCaptureSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule {
|
|
public NativeHeapCaptureSpec(ReactApplicationContext reactContext) {
|
|
super(reactContext);
|
|
}
|
|
|
|
@ReactMethod
|
|
public abstract void captureComplete(String path, @Nullable String error);
|
|
|
|
@ReactMethod
|
|
public abstract void captureHeap(String path);
|
|
}
|