From 0cf1c6df0b6fd975b5ca749c429fe80fe904c69f Mon Sep 17 00:00:00 2001 From: Rodrigo Salazar Date: Thu, 15 Aug 2019 02:49:18 -0700 Subject: [PATCH] add the jni initializer to the build for sampling profiler Summary: The OnLoad.cpp file is needed since it actually registers the jni functions, it wasn't included in the build so it wasn't working correctly. Reviewed By: jbower-fb Differential Revision: D16826230 fbshipit-source-id: 0243e456c4015879d17650737a6a27a58a3d0d9a --- .../src/main/java/com/facebook/hermes/instrumentation/BUCK | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK b/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK index ecdbb798590..4de1b113797 100644 --- a/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK @@ -22,7 +22,10 @@ rn_android_library( rn_xplat_cxx_library( name = "jni_hermes_samplingprofiler", - srcs = ["HermesSamplingProfiler.cpp"], + srcs = [ + "HermesSamplingProfiler.cpp", + "OnLoad.cpp", + ], headers = ["HermesSamplingProfiler.h"], header_namespace = "", #allow_jni_merging = True,