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

Method sendConfiguration

valdi/src/valdi/runtime/Debugger/DaemonClient.cpp:36–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void DaemonClient::sendConfiguration(const StringBox& applicationId,
37 snap::valdi_core::Platform platform,
38 bool disableHotReload) {
39 Value configure;
40 configure.setMapValue("application_id", Value(applicationId));
41 switch (platform) {
42 case snap::valdi_core::Platform::Ios:
43 configure.setMapValue("platform", Value(STRING_LITERAL("ios")));
44 break;
45 case snap::valdi_core::Platform::Android:
46 configure.setMapValue("platform", Value(STRING_LITERAL("android")));
47 break;
48 case snap::valdi_core::Platform::Skia:
49 break;
50 }
51 configure.setMapValue("disable_hot_reload", Value(disableHotReload));
52 auto callback = [&](const Value& response) -> bool {
53 VALDI_DEBUG(*_logger, "Submitted Daemon configuration");
54 return false;
55 };
56 Value request;
57 request.setMapValue("configure", configure);
58 submitRequest(request, callback);
59}
60
61void DaemonClient::sendLog(LogType logType, const std::string& message) {
62 Value log;

Callers 2

TESTFunction · 0.80

Calls 1

ValueClass · 0.50

Tested by 1

TESTFunction · 0.64