- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
// Copyright 2024-present 650 Industries. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <ReactCommon/CallInvoker.h>
|
|
#include <ReactCommon/RuntimeExecutor.h>
|
|
|
|
namespace expo {
|
|
|
|
class BridgelessJSCallInvoker : public react::CallInvoker {
|
|
public:
|
|
explicit BridgelessJSCallInvoker(react::RuntimeExecutor runtimeExecutor) : runtimeExecutor_(std::move(runtimeExecutor)) {}
|
|
|
|
#if REACT_NATIVE_TARGET_VERSION >= 75
|
|
void invokeAsync(react::CallFunc &&func) noexcept override {
|
|
runtimeExecutor_([func = std::move(func)](jsi::Runtime &runtime) { func(runtime); });
|
|
}
|
|
|
|
void invokeSync(react::CallFunc &&func) override {
|
|
throw std::runtime_error("Synchronous native -> JS calls are currently not supported.");
|
|
}
|
|
#else
|
|
void invokeAsync(std::function<void()> &&func) noexcept override {
|
|
runtimeExecutor_([func = std::move(func)](jsi::Runtime &runtime) { func(); });
|
|
}
|
|
|
|
void invokeSync(std::function<void()> &&func) override {
|
|
throw std::runtime_error("Synchronous native -> JS calls are currently not supported.");
|
|
}
|
|
#endif
|
|
|
|
private:
|
|
react::RuntimeExecutor runtimeExecutor_;
|
|
|
|
}; // class BridgelessJSCallInvoker
|
|
|
|
} // namespace expo
|
|
|
|
#endif // __cplusplus
|