mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Enable AWDL for iOS SDK
PiperOrigin-RevId: 746183163
This commit is contained in:
committed by
Copybara-Service
parent
531dd28400
commit
17bda8cc94
@@ -221,6 +221,14 @@ NcContext* GetContext(NC_INSTANCE instance) {
|
||||
|
||||
NC_INSTANCE NcCreateService() {
|
||||
NcContext nc_context;
|
||||
|
||||
#if defined(NC_IOS_SDK)
|
||||
nearby::NearbyFlags::GetInstance().OverrideBoolFlagValue(
|
||||
::nearby::connections::config_package_nearby::nearby_connections_feature::
|
||||
kEnableAwdl,
|
||||
true);
|
||||
#endif
|
||||
|
||||
nc_context.router = new ::nearby::connections::ServiceControllerRouter();
|
||||
nc_context.core = new ::nearby::connections::Core(nc_context.router);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user