- 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>
45 lines
962 B
C++
45 lines
962 B
C++
// Copyright 2015-present 650 Industries. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <ReactCommon/CallInvoker.h>
|
|
|
|
namespace expo {
|
|
|
|
/**
|
|
* Dummy CallInvoker that invokes everything immediately.
|
|
* Used in the test environment to check the async flow.
|
|
*/
|
|
class TestingSyncJSCallInvoker : public facebook::react::CallInvoker {
|
|
public:
|
|
TestingSyncJSCallInvoker(std::shared_ptr<jsi::Runtime> runtime) : runtime(runtime) {}
|
|
|
|
#if REACT_NATIVE_TARGET_VERSION >= 75
|
|
void invokeAsync(react::CallFunc &&func) noexcept override {
|
|
func(*runtime);
|
|
}
|
|
|
|
void invokeSync(react::CallFunc &&func) override {
|
|
func(*runtime);
|
|
}
|
|
#else
|
|
void invokeAsync(std::function<void()> &&func) noexcept override {
|
|
func();
|
|
}
|
|
|
|
void invokeSync(std::function<void()> &&func) override {
|
|
func();
|
|
}
|
|
#endif
|
|
|
|
~TestingSyncJSCallInvoker() override = default;
|
|
|
|
std::shared_ptr<jsi::Runtime> runtime;
|
|
};
|
|
|
|
} // namespace expo
|
|
|
|
#endif // __cplusplus
|