PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/react-native/ReactAndroid/src/main/jni/react/devsupport

Просмотр файла: JInspectorFlags.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#include "JInspectorFlags.h"

#include <jsinspector-modern/InspectorFlags.h>

namespace facebook::react::jsinspector_modern {

bool JInspectorFlags::getFuseboxEnabled(jni::alias_ref<jclass> /*unused*/) {
  auto& inspectorFlags = InspectorFlags::getInstance();
  return inspectorFlags.getFuseboxEnabled();
}

bool JInspectorFlags::getIsProfilingBuild(jni::alias_ref<jclass> /*unused*/) {
  auto& inspectorFlags = InspectorFlags::getInstance();
  return inspectorFlags.getIsProfilingBuild();
}

void JInspectorFlags::registerNatives() {
  javaClassLocal()->registerNatives({
      makeNativeMethod("getFuseboxEnabled", JInspectorFlags::getFuseboxEnabled),
  });
  javaClassLocal()->registerNatives({
      makeNativeMethod(
          "getIsProfilingBuild", JInspectorFlags::getIsProfilingBuild),
  });
}

} // namespace facebook::react::jsinspector_modern

Выполнить команду


Для локальной разработки. Не используйте в интернете!