// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include #include #include #include #include #include #include #include namespace facebook { namespace react { struct DevSettings; } } // namespace facebook namespace Microsoft::ReactNative { std::pair GetJavaScriptFromServer( const std::string &sourceBundleHost, const uint16_t sourceBundlePort, const std::string &jsBundleName, const std::string &platform, const std::string &bundleAppId, bool dev, bool hot, bool inlineSourceMap, uint32_t hermesBytecodeVersion); class DevSupportManager final : public facebook::react::IDevSupportManager { public: DevSupportManager() = default; ~DevSupportManager(); virtual void StartPollingLiveReload( const std::string &sourceBundleHost, const uint16_t sourceBundlePort, std::function onChangeCallback) override; virtual void StopPollingLiveReload() override; virtual void EnsureInspectorPackagerConnection( const std::string &packagerHost, const uint16_t packagerPort, const std::string &bundleAppId) noexcept override; private: std::atomic_bool m_cancellation_token; std::unique_ptr m_inspectorPackagerConnection; }; } // namespace Microsoft::ReactNative