Files
react-native/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/BUCK
T
Ramanpreet Nara c0dd11e532 Introduce JNativeModulePerfLogger
Summary:
## Description
This diff introduces `NativeModulePerfLogger.java`, the Android extension (a `jni::HybridClass`) to `NativeModulePerfLogger`.

### Why is this a Hybrid class?
Because we have C++ and Java markers, and the perf-logger has both a Java and a C++ interface that the application must implement. `jni::Hybrid` classes are a convenient solution for these constraints.

Changelog:
[Android][Added] - Introduce JNativeModulePerfLogger

Reviewed By: ejanzer

Differential Revision: D21318052

fbshipit-source-id: 2f43853b243fa2a629068bb4aced1e3f12f038ba
2020-07-11 09:38:45 -07:00

23 lines
632 B
Python

load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")
rn_android_library(
name = "reactperflogger",
srcs = glob(
[
"*.java",
],
),
labels = [
"supermodule:xplat/default/public.react_native.infra",
],
required_for_source_only_abi = True,
visibility = [
"PUBLIC",
],
deps = [
react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"),
react_native_dep("libraries/fbjni:java"),
react_native_target("java/com/facebook/react/reactperflogger/jni:jni"),
],
)