mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c0dd11e532
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
23 lines
632 B
Python
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"),
|
|
],
|
|
)
|