Commit Graph
570 Commits
Author SHA1 Message Date
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
eidenkim 21a379d242 Implemented device connection
PiperOrigin-RevId: 407135343
2021-11-02 11:31:06 -07:00
eidenkim fc2073965d Applied Struct and used as params communicating with Dart.
PiperOrigin-RevId: 407028085
2021-11-02 02:15:11 -07:00
hai007 8c764b43ae Create definition point for kNsdTypeInfo.
Per the standard, this is necessary since the variable is ODR-used, though some compilers will not complain without it because ODR violations do not require a diagnostic.

PiperOrigin-RevId: 406741338
2021-10-31 20:48:44 -07:00
hai007 8411555bd4 Fix an instance of -Wshadow.
PiperOrigin-RevId: 406429209
2021-10-29 12:47:05 -07:00
jfcarroll 44fad7d8fb Fixed the file implementations, they weren't using a mode, and the base path was always set to /tmp/.
We now get the systems idea of where the users download folder is and use that as the base path when receiving a file.

PiperOrigin-RevId: 406406731
2021-10-29 11:46:22 -07:00
edwinwu acf516189b nearbyconnections : Replace WifiLanV2 to WifiLan.
PiperOrigin-RevId: 406033177
2021-10-27 18:59:43 -07:00
suetfei 94ef1b532b [Nearby Connection] Move peer_id.* & webrtc_socket_wrapper.* up one directory.
PiperOrigin-RevId: 406011497
2021-10-27 16:47:51 -07:00
jfcarroll f9bd4ca573 Fix for crashing on disconnect.
PiperOrigin-RevId: 405891913
2021-10-27 08:11:26 -07:00
edwinwu 57ee5f10a4 nearbyconnections : Implement WifiLanV2 BandwidthUpgrade functions.
PiperOrigin-RevId: 405821802
2021-10-26 23:52:23 -07:00
edwinwu 7197b84e4d nearbyconnections : Implement WifiLanV2 Connection functions for /medium, /public(wrapper), /g3.
PiperOrigin-RevId: 405820452
2021-10-26 23:39:26 -07:00
edwinwu 83480d6473 nearbyconnections : Implement WifiLanV2 Discovery functions for /medium, /public(wrapper), /g3.
PiperOrigin-RevId: 405782006
2021-10-26 18:27:36 -07:00
jfcarroll ef57b09fc3 Added an additional constructor that takes only the InputFile, and then generates an id automatically.
PiperOrigin-RevId: 405712536
2021-10-26 12:48:50 -07:00
eidenkim 4b5be77ed6 Removed unused comments.
PiperOrigin-RevId: 405653375
2021-10-26 08:31:35 -07:00
edwinwu 32836a8357 nearbyconnections : Implement WifiLanV2 Advertising functions for /medium, /public(wrapper), /g3.
PiperOrigin-RevId: 405547661
2021-10-25 19:45:53 -07:00
edwinwu d0da545834 nearbyconnections : Define interfaces of /medium, /public(wrapper), /g3 WifiLanV2.
PiperOrigin-RevId: 405537829
2021-10-25 18:35:42 -07:00
jfcarroll b733dde4e7 'Flattening' of payload.h
PiperOrigin-RevId: 404800166
2021-10-21 08:28:01 -07:00
eidenkim 4c13dea8eb Implemented StartAdvertising() API for Dart Wrappers.
PiperOrigin-RevId: 404088232
2021-10-18 16:11:17 -07:00
Will fae05d0e86 Merge pull request #348 from google/test_403438989
Implemented StartAdvertising() API for Dart Wrappers.
2021-10-18 14:49:59 -07:00
Will 69b5f9178b Merge branch 'master' into test_403438989 2021-10-18 14:10:21 -07:00
edwinwu 296274bc48 nearbyconnections : Adds accessor of ServiceType for NsdServiceInfo.
PiperOrigin-RevId: 404003948
2021-10-18 10:55:45 -07:00
eidenkim b6ea14f741 Added APIs for Dart Wrappers.
PiperOrigin-RevId: 403507168
2021-10-15 17:49:27 -07:00
jfcarroll d7f0f1b635 Separation of ConnectionOptions into a header and an implementation file.
PiperOrigin-RevId: 403486468
2021-10-15 15:55:09 -07:00
eidenkim cd29ab51ac Implemented StartAdvertising() API for Dart Wrappers.
PiperOrigin-RevId: 403438989
2021-10-15 12:35:04 -07:00
suetfei f20e7de4e7 [Nearby Cleanup] Remove dead code and unused includes.
PiperOrigin-RevId: 402933192
2021-10-13 15:13:11 -07:00
jfcarroll 6ac98e6f4e The actual winrt file update. Although this built without source changes locally, it seems that g3 needs these additional includes.
PiperOrigin-RevId: 402359124
2021-10-11 12:06:16 -07:00
jfcarroll 0a31e427f0 Renamed ConnectAsync to Connect for the bluetooth socket, since it's not an async method. Cleaned up the connection code for bluetooth socket.
PiperOrigin-RevId: 402346996
2021-10-11 11:18:33 -07:00
jfcarroll 99b77bda8e Export more symbols, refactor how this is laid out for dll compliance
PiperOrigin-RevId: 402286243
2021-10-11 07:05:49 -07:00
nohle 51a19d24c1 Fix dereferencing of null channel
PiperOrigin-RevId: 401814449
2021-10-08 11:19:12 -07:00
suetfei 686351c4c3 Replace some C like syntax and add missing include files.
PiperOrigin-RevId: 401541156
2021-10-07 10:07:35 -07:00
hai007 8259c92b37 PhoneHub hopes to keep a long lived connection (over 10 mins) between Android and ChromeOS. However, phone would go to deep sleep mode and not send out KeepAlive even when receiving KeepAlive from CrOS. Here we force a KeepAliveAck back to avoid KeepAlive timeout.
PiperOrigin-RevId: 401454742
2021-10-07 01:59:30 -07:00
jfcarroll 941c9b3c5c The final fixes for the socket code allowing us to advertise and accept the connection.
PiperOrigin-RevId: 401317340
2021-10-06 12:53:43 -07:00
hai007 beff51e626 Internal Change
PiperOrigin-RevId: 401312277
2021-10-06 12:35:01 -07:00
jfcarroll eea2a91139 These are the fixes thus far. Most involve whether we're using a pointer or not.
PiperOrigin-RevId: 401241518
2021-10-06 07:42:58 -07:00