Commit Graph
90 Commits
Author SHA1 Message Date
hai007 16cb7f70b3 Implement Auto-reconnect after disconnection [1]
PiperOrigin-RevId: 592344338
2023-12-19 14:27:40 -08:00
Anay Wadhera 7022e6c5d9 Create instant on loss advertisement format
PiperOrigin-RevId: 590680562
2023-12-13 12:33:12 -08:00
Nick Bourdakos 387393f1d6 Delete old BLE code for Apple platforms
PiperOrigin-RevId: 559515626
2023-08-23 12:54:15 -07:00
Nick Bourdakos 9998093366 Add Objective-C++ BLE Medium wrapper
PiperOrigin-RevId: 558278732
2023-08-18 16:37:09 -07:00
Nick Bourdakos 07a94a950d Add Objective-C++ GATT client wrapper
PiperOrigin-RevId: 557925490
2023-08-17 13:48:48 -07:00
Nick Bourdakos 9d2cfc19c9 Add Objective-C++ GATT server wrapper
PiperOrigin-RevId: 552636264
2023-07-31 17:20:14 -07:00
Nick Bourdakos a42cdc7346 Move Server Socket and its dependencies to their own files
PiperOrigin-RevId: 551330682
2023-07-26 15:21:46 -07:00
Crisrael Lucero 0e44ed626d Refactor crypto/ directory into crypto_cros/ and crypto/
PiperOrigin-RevId: 549467911
2023-07-19 17:12:52 -07:00
Anay Wadhera d6d5310389 Weave port [8/n]: Introduce server socket implementation
PiperOrigin-RevId: 549446494
2023-07-19 15:43:57 -07:00
Anay Wadhera f95a875cde Weave port [7/n]: Introduce Weave client socket implementation
PiperOrigin-RevId: 547812816
2023-07-13 08:45:16 -07:00
Qin Wang a8b6fdee59 Implement fake GetResponse and migrate fake_http_client to third_party/nearby/internal/test
PiperOrigin-RevId: 544518775
2023-06-29 18:39:50 -07:00
Qin Wang 22c3a07677 Migrate DataManager to third_party/nearby/internal
PiperOrigin-RevId: 544395891
2023-06-29 10:31:07 -07:00
Anay Wadhera bb3de11104 Weave port [6/n]: Introduce Base socket implementation and connection interface.
PiperOrigin-RevId: 542872801
2023-06-23 09:00:39 -07:00
Anay Wadhera 2a9bf7c883 Introduce connections authentication transport
PiperOrigin-RevId: 541057398
2023-06-16 17:55:06 -07:00
Juliet Levesque 240159e872 [Nearby Connections] Stop 3 AttemptsToConnect over WebRTC for CancellationFlag
CancellationFlags will be used to prevent crashes during the shutdown of Nearby Connections from pending tasks taking too long during the shutdown period. WebRTC using 3 x 10s retries to connect, which means we are potentially waiting for 30 seconds of retries to execute during shutdown (which is longer than the 10s duration alloted for Core shutdown).

By using CancellationFlags, we can prevent the retries occuring during the Shutdown by short-circuiting an in flight AttemptToConnect, and checking for Cancellation before retries.

PiperOrigin-RevId: 539690403
2023-06-12 10:16:36 -07:00
Anay Wadhera 71558c0a5c Add ed25519 signature utilities
PiperOrigin-RevId: 537351543
2023-06-02 10:45:40 -07:00
Anay Wadhera 601d5f6b36 fixup! nearby swift: Update include paths for new ukey2 revisions 2023-05-16 11:52:02 -07:00
Anay Wadhera 4ea5e4cf8a nearby swift: Update include paths for new ukey2 revisions 2023-05-16 10:54:39 -07:00
Chun Zhang a925ed1072 Move FakeAuthenticationManager from location to third_party.
PiperOrigin-RevId: 532237745
2023-05-15 15:04:03 -07:00
Anay Wadhera 69d2edaea9 Weave port [5/n]: Introduce weave message write request
PiperOrigin-RevId: 530915704
2023-05-10 08:32:44 -07:00
Anay Wadhera 332da370a4 Weave port [4/n]: Introduce weave write request and single packet write request
PiperOrigin-RevId: 530439848
2023-05-08 16:33:42 -07:00
Anay Wadhera 630b2dd3db Create ConnectionsDeviceProvider
PiperOrigin-RevId: 529781099
2023-05-05 12:13:06 -07:00
Anay Wadhera d91904d79d Create ConnectionsDevice
PiperOrigin-RevId: 529447365
2023-05-04 10:26:47 -07:00
Anay Wadhera 5edd8e25ca Introduce v3 NC API callbacks
PiperOrigin-RevId: 527747390
2023-04-27 19:01:39 -07:00
Suet-Fei Li b023a666b9 Add empty EmptySwiftPackageManagerFile.cpp to trigger Swift Build of json.
PiperOrigin-RevId: 524017747
2023-04-13 09:11:14 -07:00
Nick Bourdakos ddea50e013 Fix Package.swift
PiperOrigin-RevId: 523907283
2023-04-12 23:17:27 -07:00
hai007 123815e841 Automated visibility attribute cleanup.
PiperOrigin-RevId: 523895219
2023-04-12 21:56:31 -07:00
Suet-fei Li 760b64e2e7 . 2023-04-12 23:09:35 +00:00
hai007 28f7498580 Fix include error for apple json.
PiperOrigin-RevId: 523724151
2023-04-12 09:38:22 -07:00
Suet-Fei Li ed4e000a2d Add Swift support for json depedency.
PiperOrigin-RevId: 523546713
2023-04-11 17:12:58 -07:00
Anay Wadhera a8bb29e1bf Weave port [3/n]: Introduce weave packet counter generator
PiperOrigin-RevId: 523189849
2023-04-10 12:56:57 -07:00
Anay Wadhera a1868432b9 Implement connection info DE format
PiperOrigin-RevId: 522678942
2023-04-07 14:02:40 -07:00
Anay Wadhera 3f1b0c81e3 Weave port [2/n]: Introduce Weave packetizer implementation
PiperOrigin-RevId: 518881931
2023-03-23 09:30:55 -07:00
Janusz Sobczak 1a78b33a89 Add InputStream::ReadExactly
Read() can return fewer bytes than requested.
ReadExactly() will call Read() repeatedly until we
have read as many bytes as we need.

PiperOrigin-RevId: 518719418
2023-03-22 17:45:50 -07:00
Nick Bourdakos f5eac5c47d Update README
PiperOrigin-RevId: 518014725
2023-03-20 10:50:10 -07:00
Anay Wadhera 69d2098ecb Weave port [1/n]: Introduce Weave packet implementation
PiperOrigin-RevId: 517526002
2023-03-17 15:44:09 -07:00
Qin Wang 86ca85b85a Migrate fake functions to third_party/nearby to help unit test
PiperOrigin-RevId: 517433481
2023-03-17 09:34:58 -07:00
Guogang Li f7e6deb8ab internal cleanup
PiperOrigin-RevId: 517211099
2023-03-16 13:27:26 -07:00
Guogang Li fd5430764f Created NearbyFlags to avoid create multiple classes
PiperOrigin-RevId: 516885843
2023-03-15 11:44:25 -07:00
Guogang Li e539d021a3 Added flag for BLE v2 in nearby connections
PiperOrigin-RevId: 516585139
2023-03-14 11:35:49 -07:00
Guogang Li ead3df1ff8 Added flag reader interface
PiperOrigin-RevId: 514551069
2023-03-06 15:55:10 -08:00
Qin Wang ed9890957f Upgrade minimum_os_version to 13.0
PiperOrigin-RevId: 504597125
2023-01-25 10:23:19 -08:00
Nick Bourdakos 819f816600 Refactor nearby connections clients to be organized by languages.
PiperOrigin-RevId: 503308736
2023-01-19 17:36:07 -08:00
Qin Wang 2330739b90 Migrate TaskRunner from location/nearby to third_party/nearby
PiperOrigin-RevId: 502733409
2023-01-17 17:40:55 -08:00
Qin Wang f94aa7548b Migrate Timer from location/nearby to third_party/nearby
PiperOrigin-RevId: 501928835
2023-01-13 13:44:17 -08:00
Nick Bourdakos d042055607 Update Package.swift 2023-01-10 16:48:24 -05:00
Nick Bourdakos 412548248c Update to c++17
PiperOrigin-RevId: 500830077
2023-01-09 16:02:02 -08:00
Qin Wang e90fd77e47 Migrate bluetooth_address from location/nearby to third_party/nearby
PiperOrigin-RevId: 500784376
2023-01-09 12:49:52 -08:00
Qin Wang 05a6fbf20c Migrate observer_list.h from location/nearby to third_party/nearby
PiperOrigin-RevId: 500240685
2023-01-06 15:15:16 -08:00
hai007 499b2691f4 WIFI Direct implementation (3)
Part 3: BWU and client interface part

PiperOrigin-RevId: 498218241
2022-12-28 11:22:48 -08:00