mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fix iOS build with macro NO_WEBRTC
PiperOrigin-RevId: 855849684
This commit is contained in:
committed by
Copybara-Service
parent
4024c72516
commit
7e28c16a7e
@@ -15,6 +15,8 @@
|
||||
#ifndef PLATFORM_IMPL_APPLE_WEBRTC_H_
|
||||
#define PLATFORM_IMPL_APPLE_WEBRTC_H_
|
||||
|
||||
#ifndef NO_WEBRTC
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
@@ -55,4 +57,6 @@ class WebRtcMedium : public api::WebRtcMedium {
|
||||
|
||||
} // namespace nearby::apple
|
||||
|
||||
#endif // #ifndef NO_WEBRTC
|
||||
|
||||
#endif // PLATFORM_IMPL_APPLE_WEBRTC_H_
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef NO_WEBRTC
|
||||
|
||||
#include "internal/platform/implementation/apple/webrtc.h"
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
@@ -95,3 +97,5 @@ std::unique_ptr<api::WebRtcSignalingMessenger> WebRtcMedium::GetSignalingMesseng
|
||||
}
|
||||
|
||||
} // namespace nearby::apple
|
||||
|
||||
#endif // #ifndef NO_WEBRTC
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef NO_WEBRTC
|
||||
|
||||
#include "internal/platform/tachyon_express_signaling_messenger.h"
|
||||
|
||||
#include <ctime>
|
||||
@@ -340,3 +342,5 @@ bool TachyonExpressSignalingMessenger::SendMessage(absl::string_view peer_id,
|
||||
}
|
||||
|
||||
} // namespace nearby
|
||||
|
||||
#endif // #ifndef NO_WEBRTC
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#ifndef THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_TACHYON_MESSAGING_CLIENT_H_
|
||||
#define THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_TACHYON_MESSAGING_CLIENT_H_
|
||||
|
||||
#ifndef NO_WEBRTC
|
||||
|
||||
#include <grpcpp/security/credentials.h>
|
||||
|
||||
#include <memory>
|
||||
@@ -98,4 +100,6 @@ class TachyonExpressSignalingMessenger : public api::WebRtcSignalingMessenger {
|
||||
|
||||
} // namespace nearby
|
||||
|
||||
#endif // #ifndef NO_WEBRTC
|
||||
|
||||
#endif // THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_TACHYON_MESSAGING_CLIENT_H_
|
||||
|
||||
Reference in New Issue
Block a user