Commit Graph
603 Commits
Author SHA1 Message Date
edwinwu fa2b583245 Clean up test for apis added by Analytics.
PiperOrigin-RevId: 420187861
2022-01-06 18:41:07 -08:00
suetfei acc6f2de9a Move third_party/nearby/cpp/analytics to third_party/nearby/internal/analytics.
PiperOrigin-RevId: 420135432
2022-01-06 13:47:33 -08:00
hais cdcd37c616 update date in readme.md
PiperOrigin-RevId: 420118461
2022-01-06 12:24:04 -08:00
hai007 53f7d6270e Internal change.
PiperOrigin-RevId: 419828224
2022-01-05 07:46:52 -08:00
edwinwu 9b7f7a293c add copybara rule of import/include for ios platform
PiperOrigin-RevId: 419820195
2022-01-05 06:55:53 -08:00
hai007 24d5e10784 Add one NULL_MESSAGE into the Description enum to represent the null case.
PiperOrigin-RevId: 419725172
2022-01-04 18:56:42 -08:00
hai007 7cddbe3c09 Define _SILENCE_CLANG_COROUTINE_MESSAGE for the :windows cc_library.
The experimental/coroutine header is not officially supported by lexan. In the next Windows SDK release, this is signaled by an error during compilation, which is silenced by setting \D_SILENCE_CLANG_COROUTINE_MESSAGE from the command line.

This change sets _SILENCE_CLANG_COROUTINE_MESSAGE in advance of the SDK release. This prevents a break from occurring when the new SDK is released.

BEGIN_PUBLIC
END_PUBLIC

BROKEN: sponge/8b4d6f2f-c407-4860-a0f7-60102a8d003a
WORKING: sponge/fa0111e2-4780-4757-8cf0-da46672648b9
PiperOrigin-RevId: 419499670
2022-01-03 18:48:03 -08:00
jfcarroll 9ce7be9812 Refactor Input/Output file to use const char* instead of standard string, and to use parent_folder and file_name for input and output files. This also incorporates the move from nearby_connections to nearby.
PiperOrigin-RevId: 418002199
2021-12-23 07:04:38 -08:00
hais 8f20fecfab Naive doc update.
PiperOrigin-RevId: 417720413
2021-12-22 18:33:56 -08:00
hais ebce4a6131 Add date in contributing doc.
PiperOrigin-RevId: 417716314
2021-12-22 18:33:56 -08:00
hais 1043ba5be7 Format README.md with line chars limit.
PiperOrigin-RevId: 417710002
2021-12-22 18:33:56 -08:00
fdi df0c08007b [Connections][Analytics] Add log source for NC logs.
PiperOrigin-RevId: 417531016
2021-12-21 14:48:30 -08:00
hai007 7406ad8bff RTCConfiguration's default value for sdp_semantics is about to
change from kPlanB to kUnifiedPlan. Because of this, all uses
of RTCConfiguration has to be updated to explicitly set the
sdp_semantics field.

The NO-OP version of this CL would be to set it to kPlanB and
file a buganizer issue to track migration from kPlanB to
kUnifiedPlan, but because nearby's use cases only uses data
channels (i.e. it does not use WebRTC for audio and video)
nearby should not care about which SDP semantics is used, and as
such this CL goes ahead and updates it to kUnifiedPlan.

For more info, see go/plan-b-removal-and-intro-to-unified-plan
and b/208964426.

PiperOrigin-RevId: 417348949
2021-12-21 14:48:20 -08:00
hais 161e842a0b Update date on README.md
PiperOrigin-RevId: 417055011
2021-12-21 14:48:10 -08:00
jfcarroll fa352aa5a9 Update iOS InputFile.
PiperOrigin-RevId: 416864503
2021-12-21 14:47:59 -08:00
edwinwu 2fc61869f9 Add GetDynamicPortRange api for Wifilan medium
PiperOrigin-RevId: 416669312
2021-12-21 14:47:49 -08:00
bourdakos d29b05c367 The information advertised by the remote endpoint might not be a human readable string. This CL adds an endpointInfo property to the GNCDiscoveredEndpointInfo object, which is used to get the raw byte array that was advertised.
For consistency with the Android API, `name` has also been renamed to `endpointName`.

PiperOrigin-RevId: 416347703
2021-12-21 14:47:31 -08:00
edwinwu 2e316588f7 Update iOS InputFile.
PiperOrigin-RevId: 416188311
2021-12-21 14:47:20 -08:00
jfcarroll 52358d7992 This adds ".nearby/" to payloads that don't have a filename (they are using payloadid instead)
PiperOrigin-RevId: 416135626
2021-12-13 14:31:41 -08:00
jfcarroll c77356eb92 Missed tagging a commented out test for edwinwu, and cleaned up some minor problems with the filename/path validator.
PiperOrigin-RevId: 416134225
2021-12-13 14:24:45 -08:00
cvandermerwe 5107a030fd Replace #include "*.proto.h" with #include "*.pb.h"
PiperOrigin-RevId: 415594549
2021-12-10 13:16:09 -08:00
jfcarroll f12bb6c405 Refactor Input/Output file to use const char* instead of standard string, and to use parent_folder and file_name for input and output files. This also incorporates the move from nearby_connections to nearby.
PiperOrigin-RevId: 415587802
2021-12-10 12:49:50 -08:00
edwinwu 5ba6623eac Remove #include "third_party/nearby/proto/connections_enums.proto.h"
PiperOrigin-RevId: 414865191
2021-12-07 17:14:24 -08:00
hai007 e0844785a7 Merge pull request #397 from eric100lin/master
Add submodule paths and update branch of gtest, depot_tools.
2021-12-07 11:48:11 -08:00
hai007 0d02f65cd7 Update the Git repository path in README.md.
PiperOrigin-RevId: 414342199
2021-12-05 20:44:58 -08:00
Eric Lin 8bdc61a10f Add submodule paths and update branch of gtest, depot_tools.
Git submodule needs to commit submodule paths to make it works. The
working branch of gtest, depot_tools project already changed to main
instead of master.

Reference: https://stackoverflow.com/q/39765663
2021-12-06 11:51:43 +08:00
jfcarroll 31465e1ce3 Quick fix for missing methods in EndpointChannel class
All changes tagged with TODO(jfcarroll) should be reviewed, these are likely not correct changes.

PiperOrigin-RevId: 413948514
2021-12-03 09:06:25 -08:00
edwinwu e1cf7a9e9f Add AdvertisingMetadata and DiscoveryMetadata in AnalyticsRecorder.
PiperOrigin-RevId: 413683376
2021-12-02 08:21:30 -08:00
edwinwu b48610144b Add ConnectionAttemptMetadata for ConnectionAttempt in AnalyticsRecorder.
PiperOrigin-RevId: 413682624
2021-12-02 08:17:33 -08:00
hai007 28ed3c75a4 [Nearby][Analytics] Add logging for device state.
PiperOrigin-RevId: 413681037
2021-12-02 08:09:12 -08:00
hai007 69096cf307 Fix crash problem when start Advertising
PiperOrigin-RevId: 413328652
2021-11-30 23:13:02 -08:00
hais a192cd3e32 Patch recent cls from nearby_connections;
Sync github to replace nearby_connections with nearby.

PiperOrigin-RevId: 411609608
2021-11-22 11:38:39 -08:00
hais b829cd62c4 Update iOS framework zip path.
PiperOrigin-RevId: 410406372
2021-11-16 19:02:48 -08:00
edwinwu 0175a98098 Adds NearbyConectionsExample xcode project with README how to guide to build example project.
PiperOrigin-RevId: 409963391
2021-11-15 06:34:02 -08:00
eidenkim 363c247eb0 Added SendPayloadDart()
PiperOrigin-RevId: 409833593
2021-11-14 13:30:53 -08:00
hai007 083d692205 Update connections_log.proto
PiperOrigin-RevId: 409772395
2021-11-14 01:39:58 -08:00
edwinwu c42ec93883 Adds ios_static_framework build rule for exporting NearbyConnections.framework in /releasese/new/ folder.
PiperOrigin-RevId: 409540517
2021-11-12 16:56:21 -08:00
suetfei ab15827a7c [Nearby README] Add a link in the README file to IOS Build instructions.
PiperOrigin-RevId: 409292649
2021-11-11 18:22:07 -08:00
jfcarroll f9d01e27e8 Rename the various connectionoptions to align more closely with the java names, I also separated the windows dll files from location::nearby::connections and put them in location::nearby::connections::windows
PiperOrigin-RevId: 408807445
2021-11-10 00:51:15 -08:00
nohle 12dccd6841 Allow WifiLan upgrades in config
PiperOrigin-RevId: 408753729
2021-11-09 18:20:47 -08:00
jfcarroll 9221d12ae1 This fixes a crash when calling StopAdvertising
PiperOrigin-RevId: 408665191
2021-11-09 11:45:31 -08:00
nohle dd237591f9 Request IP and port only after creating WifiLan server socket
PiperOrigin-RevId: 408657640
2021-11-09 11:16:15 -08:00
jfcarroll 5dc0e06655 Split ConnectionOptions into 3 exported classes
PiperOrigin-RevId: 408462957
2021-11-08 15:58:58 -08:00
suetfei 1b4ae4b28a [Nearby Connection] Add webrtc_stub.*, BUILD.bazel and rename webrtc_socket_wrapper.* => webrtc_socket.* & webrtc_socket.* => webrtc_socket_impl.*.
PiperOrigin-RevId: 408278672
2021-11-08 01:43:53 -08:00
edwinwu 3ad0700559 update ios platform BUILD file
PiperOrigin-RevId: 408213858
2021-11-07 16:22:21 -08:00
edwinwu fb0337ebfa ios: nearbyConnections: Move source to //third_party.
PiperOrigin-RevId: 408046875
2021-11-06 09:45:54 -07:00
hai007 8c2dd35eac [Connections] Remove the usage of @BandOrFrequency annotation
BEGIN_PUBLIC
END_PUBLIC

PiperOrigin-RevId: 407726054
2021-11-04 19:36:05 -07:00
edwinwu 29ab3ac8ac Remove unnecessary param in mediums/WifiLan
PiperOrigin-RevId: 407484635
2021-11-03 19:44:16 -07:00
hai007 267c589b6e Fix formatting for code block in docs
PiperOrigin-RevId: 407478011
2021-11-03 18:57:05 -07:00
guogang ebfaba3e22 Refactored WiFi LAN implementation based on new WiFi LAN API
PiperOrigin-RevId: 407453537
2021-11-03 16:32:17 -07:00