Commit Graph
45 Commits
Author SHA1 Message Date
Anay Wadhera f21b1e7089 internal change
PiperOrigin-RevId: 529179617
2023-05-03 13:32:34 -07:00
hai007 6b25d430d9 copybara update
PiperOrigin-RevId: 528861897
2023-05-02 12:48:09 -07:00
Nick Bourdakos 84f480fdd1 Fix IP address bug where 4 byte version wasn't converted to dotted decimal form
Introduces a tested `GNCIPAddress` class to make it more explicit of which IP address format is being used at call sites to prevent similar issues in the future.

PiperOrigin-RevId: 528572993
2023-05-01 14:20:12 -07:00
Eiden Kim aea5b223d3 Create min iOS and test runner under third_party/nearby for common test target.
PiperOrigin-RevId: 527754820
2023-04-27 19:52:01 -07:00
hai007 5dfe7094c3 Update unit test minimum IOS version to 13.7
PiperOrigin-RevId: 527738714
2023-04-27 18:09:15 -07:00
Eiden Kim b0985c70b4 Update iOS unit test min version to have IOS_MINIMUM_OS
PiperOrigin-RevId: 527675057
2023-04-27 13:56:15 -07:00
Chun Zhang 2e7f7a7d90 Migrate PreferencesManager from location/nearby to third_party/nearby
PiperOrigin-RevId: 524900136
2023-04-17 11:23:01 -07:00
Chun Zhang 00bba36219 Migrate PreferencesRepository from location/nearby to third_party/nearby
PiperOrigin-RevId: 524185819
2023-04-13 21:19:12 -07:00
Nick Bourdakos 472a1d847b Fix logging bug
PiperOrigin-RevId: 523910721
2023-04-12 23:40:50 -07:00
Nick Bourdakos c919ed73a9 Update custom save path logic to include parent folder and prevent duplicate names from overwriting other files.
PiperOrigin-RevId: 522123924
2023-04-05 12:31:06 -07:00
Nick Bourdakos 1d2b0272d3 Fix crash when closing Wi-Fi LAN server socket
PiperOrigin-RevId: 521883606
2023-04-04 15:36:43 -07:00
Nick Bourdakos f7edb0c858 Add Apple implementation for device info
PiperOrigin-RevId: 521834323
2023-04-04 12:27:43 -07:00
Nick Bourdakos d6f66237b0 Update Apple implementation to cancel the timer before calling the callback
This fixes a crash where the Timer is destroyed as soon as the callback is called, so Timer::Stop can't be safely called.

PiperOrigin-RevId: 521760888
2023-04-04 07:47:14 -07:00
hai007 17ce9c7dd2 Add the missing apple SDK framework dependencies.
PiperOrigin-RevId: 520936213
2023-03-31 09:07:14 -07:00
Edwin Wu 94ff506d1e Fixes HelloConnections that can't discover Pixel device from iPhone for Ble_v2 medium.
PiperOrigin-RevId: 517318035
2023-03-16 22:25:21 -07:00
Qin Wang 1e4497d59c Add Write Type enum to specify what type of GATT write should be performed
PiperOrigin-RevId: 515487102
2023-03-09 17:28:09 -08:00
Qin Wang 0c078b3528 Convet ByteArray to std::string in ble_gatt_client
PiperOrigin-RevId: 514786088
2023-03-07 11:10:34 -08:00
Qin Wang ba8d60b8a9 Implement subscription for a GATT characteristic value changed
PiperOrigin-RevId: 513960871
2023-03-06 07:08:08 -08:00
Qin Wang 4727861f5d Refactor GattCharactristic to support bitwise combination of Permission and Property
PiperOrigin-RevId: 513339751
2023-03-01 14:21:04 -08:00
Anay Wadhera abe68db97d Add GattServer#NotifyCharacteristicChanged to ble_v2
PiperOrigin-RevId: 512124578
2023-02-24 11:46:33 -08:00
Anay Wadhera f3ebf77ed2 Add GattClient#SetCharacteristicNotification for subscribing to a GATT characteristic
PiperOrigin-RevId: 511862183
2023-02-23 12:54:41 -08:00
Nick Bourdakos b59ed0b70f Add Apple implementation for timer
PiperOrigin-RevId: 511201457
2023-02-21 08:03:09 -08:00
Nick Bourdakos f655636db7 Implement SendRequest for Apple platform
PiperOrigin-RevId: 510539758
2023-02-17 15:49:15 -08:00
Nick Bourdakos 179c67291c Remove old Wi-Fi LAN package
PiperOrigin-RevId: 510349290
2023-02-16 23:36:10 -08:00
Nick Bourdakos 2c47104dc9 Update the Apple Wi-Fi LAN medium to use WifiLanV2
PiperOrigin-RevId: 510228266
2023-02-16 13:28:38 -08:00
Nick Bourdakos 949d882727 Add discovery/connect implementation for Wi-Fi LAN medium that uses the Network framework
PiperOrigin-RevId: 510221769
2023-02-16 13:03:21 -08:00
Nick Bourdakos cee10e8d44 Add logging support for Apple platform
PiperOrigin-RevId: 509833510
2023-02-15 07:59:28 -08:00
Edwin Wu 1e229e31c5 [Nearby Connections] Add OS_INFO for NC C++.
PiperOrigin-RevId: 509443158
2023-02-14 00:05:17 -08:00
Nick Bourdakos 60d021b5f2 Add initial implementation for Wi-Fi LAN medium that use the Network framework
PiperOrigin-RevId: 508784614
2023-02-10 16:47:27 -08:00
Nick Bourdakos a96760b977 Add implementation for Wi-Fi LAN server socket that use the Network framework
PiperOrigin-RevId: 508517597
2023-02-09 17:21:26 -08:00
Nick Bourdakos fc3bf91485 Add implementation for Wi-Fi LAN sockets that use the Network framework
PiperOrigin-RevId: 507922710
2023-02-07 16:54:11 -08:00
Eiden Kim 3d9ce368ff Fixed crashpad db creation failure and changed root to CommonAppData. Changed captured Nearby Share Info to save to CommonAppData. Changed Clearcut root to CommonAppData.
PiperOrigin-RevId: 506528040
2023-02-01 23:15:22 -08:00
hai007 3cbbecd53a Change log and crash dump locations from a per user data location to a per machine common data location.
PiperOrigin-RevId: 505711827
2023-01-30 09:14:00 -08:00
Qin Wang a0692e6306 Migrate device_info from location/nearby to third_party/nearby
PiperOrigin-RevId: 504935151
2023-01-26 14:01:11 -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 e2e702b68f Remove #ifdef __cplusplus guards
PiperOrigin-RevId: 504553878
2023-01-25 07:14:44 -08:00
Janusz Sobczak f4d85f9b90 Migrate to AnyInvocable in platform code
PiperOrigin-RevId: 504104740
2023-01-23 16:04:21 -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
Janusz Sobczak a29be214a3 Migrate to absl::AnyInvocable in NP.
Replaces a bunch of std::function uses with absl::AnyInvocable.

PiperOrigin-RevId: 502960326
2023-01-18 13:16:29 -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
Janusz Sobczak 4fc1583b94 Migrate to absl::AnyInvocable
PiperOrigin-RevId: 501392167
2023-01-11 15:19:33 -08:00
Suet-Fei Li 084f7ebd88 Remove location namespace in third_party/nearby.
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
Nick Bourdakos 4a8163ae20 Internal change.
PiperOrigin-RevId: 499340401
2023-01-03 16:22:56 -08:00
hai007 88e350e5d2 Integrate network related part which both nearby sharing and fastpair are adopted.
Details can be seen in the `Integrate reusable internal components into third_party` part of `server access design doc` (go/fast_pair_server_data_access)

PiperOrigin-RevId: 498208011
2022-12-28 10:28:32 -08:00
Nick Bourdakos 07998a05ed Change "ios" package name to "apple" since its usage isn't limited to iOS
PiperOrigin-RevId: 497046967
2022-12-21 18:09:42 -08:00