| 34 | } |
| 35 | |
| 36 | void 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 | |
| 61 | void DaemonClient::sendLog(LogType logType, const std::string& message) { |
| 62 | Value log; |