Commit Graph
22 Commits
Author SHA1 Message Date
hai007 6dac39292b Remove unneeded fastpair dependency.
PiperOrigin-RevId: 524369312
2023-04-14 13:18:02 -07:00
Nick Bourdakos cbf50a3d49 Add more visibilities
PiperOrigin-RevId: 518647351
2023-03-22 12:51:23 -07:00
hai007 d0b258971d Remove the coroutines workaround from Nearby and drop experimental/coroutines.
In Prod LLVM release branch 515643669.1 ( cl/517696539 ) the experimental coroutines implementation is dropped. The `experimental/coroutines` header is removed.

Nearby doesn't use coroutines, but it uses libraries that depend on the existence of coroutine function definitions. Specifically, WinRT needs certain coroutine function definitions in order to compile.

Ordinarily, WinRT relied on the coroutine function definitions provided in the MSVC STL' `experimental/coroutines` header. The introduction of libc++ complicated this dependency for Nearby, because libc++' `experimental/coroutines` header took the place of the MSVC version, and (correctly, for C++17) provided none of the coroutine function definitions.

To resolve these issues, we implemented a patch of WinRT. The patch provided placeholder definitions, which allowed WinRT to pass compilation. This patch was submitted in cl/495104919. The patch was necessary to enable the Nearby migration from MSVC STL to libc++.

--

The removal of `experimental/coroutines` from libc++ makes this patch unnecessary. However, the patch will not compile without libc++' `experimental/coroutines` header.

The presence of libc++' `experimental/coroutines` header had prevented the corresponding MSVC STL' header from defining the functions for which the patch makes placeholders. Without the libc++' `experimental/coroutines` header, the MSVC STL header is employed and makes these definitions. The patch then redefines these functions, which causes a compilation failure.

--

This CL makes two changes: 1) It eliminates the patch, and 2) It eliminates the libc++ `experimental/coroutines` file from the Lexan libc++ distribution. This allows Nearby to function identically before and after the release of Lexan 515643669.1.

This change prevents a break from occurring when Lexan 515643669.1 is released.

PiperOrigin-RevId: 518119913
2023-03-20 17:20:47 -07:00
Anay Wadhera dc8b1ef7ee Expose internal/platform windows implementation to presence and add bcrypt.lib for resolving bcrypt symbols in absl
PiperOrigin-RevId: 507834078
2023-02-07 11:13:38 -08:00
Eiden Kim db6300fcc7 Add winrt visibility to Nearby Share app.
PiperOrigin-RevId: 506232180
2023-02-01 00:23:32 -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
hai007 dab0ead924 Explicitly initialize atomic value; change its type to unsigned.
PiperOrigin-RevId: 501935970
2023-01-13 14:12:44 -08:00
hai007 22c6db1473 Adding the implementation of the windows controller and cross language interfaces. TODO: Unit test needs to be added after the prototyped finished (b/264707418)
PiperOrigin-RevId: 500274314
2023-01-06 22:19:46 -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
hai007 7855176718 Fix a typo in base-no-coroutines.patch and re-apply the patch.
PiperOrigin-RevId: 495888291
2022-12-16 09:10:21 -08:00
hai007 c5cb0e1d39 Insert placeholder declarations into winrt/base.h.
PiperOrigin-RevId: 495104919
2022-12-13 13:09:29 -08:00
Qin Wang cdd65616fc Implement Ble GATT Client for Windows
PiperOrigin-RevId: 494033195
2022-12-08 17:06:52 -08:00
Suet-Fei Li a8ca18f477 Internal refactor.
PiperOrigin-RevId: 493970269
2022-12-08 12:47:57 -08:00
Suet-Fei Li 9f9bd40ada Internal flow.
PiperOrigin-RevId: 493719005
2022-12-07 15:05:45 -08:00
Nick Bourdakos 4fb6ba318c Internal change
PiperOrigin-RevId: 486691317
2022-11-07 09:59:14 -08:00
hai007 2206f21c3f Enable TAP test for nearby.fastpair.windows
Enable some packages to visible to nearby fast pair

PiperOrigin-RevId: 483819412
2022-10-25 17:31:00 -07:00
jfcarroll 778c77eacd Persist the original radio name, and restore it on app start if the radio name is our radio name.
PiperOrigin-RevId: 464148898
2022-07-29 13:43:35 -07:00
jfcarroll 28da839987 Latest update for winrt
PiperOrigin-RevId: 452591835
2022-06-02 12:05:19 -07:00
hai007 500f67c85e Add Wifi Medium to query WIFI interface capability and information
PiperOrigin-RevId: 451233512
2022-05-26 13:40:14 -07:00
suetfei 37f8b4487e Internal flow change phase 2.
PiperOrigin-RevId: 427059704
2022-02-07 17:17:20 -08:00
hai007 2f4676c58a Modify BUILD visibility rule to expose generated WinRT stubs to Nearby Sharing //location/nearby/cpp/sharing
PiperOrigin-RevId: 426242397
2022-02-03 14:44:07 -08:00
hais f5fcd35ced nearby sdk refactor
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00