MCPcopy Create free account
hub / github.com/Snapchat/Valdi / createLinuxRuntime

Function createLinuxRuntime

valdi/src/valdi/linux/LinuxRuntime.cpp:16–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace ValdiLinux {
15
16Valdi::Ref<Valdi::ValdiStandaloneRuntime> createLinuxRuntime(bool enableDebuggerService,
17 bool disableHotReloader) {
18 auto mainQueue = Valdi::makeShared<Valdi::StandaloneMainQueue>();
19 auto diskCache = Valdi::makeShared<Valdi::InMemoryDiskCache>();
20 auto resourceLoader = Valdi::makeShared<Valdi::StandaloneResourceLoader>();
21
22 return Valdi::ValdiStandaloneRuntime::create(enableDebuggerService,
23 disableHotReloader,
24 /* enableViewPreloader */ false,
25 /* registerCustomAttributes */ true,
26 /* keepAttributesHistory */ false,
27 Valdi::JavaScriptBridge::get(),
28 mainQueue,
29 diskCache,
30 /* runtimeListener */ nullptr,
31 resourceLoader,
32 /* tweakValueProvider */ nullptr,
33 Valdi::PlatformTypeLinux);
34}
35
36} // namespace ValdiLinux

Callers 1

valdiLinuxMainFunction · 0.85

Calls 2

createFunction · 0.50
getFunction · 0.50

Tested by

no test coverage detected