Anay Wadhera
5b7bb37d41
Nearby Presence/Implementation: Fix for Android compile
...
PiperOrigin-RevId: 468735587
2022-08-19 10:43:41 -07:00
Anthony Rueda
4d2ff863f9
Add platform agnostic implementation of Credential_Storage class.
...
PiperOrigin-RevId: 468251604
2022-08-17 11:36:58 -07:00
Xin He
f166f1e22c
Remove presence_identity struct.
...
PiperOrigin-RevId: 468032143
2022-08-16 14:56:38 -07:00
Xin He
e5c24b8b8a
Add manager app ID into the APIs
...
PiperOrigin-RevId: 467757514
2022-08-15 14:11:15 -07:00
Xin He
123a2cfd18
Move credentials related proto from Prensence to internal
...
Replace PresenceIdentityType with proto
PiperOrigin-RevId: 467294239
2022-08-12 14:18:34 -07:00
hai007
fa92234b7c
Restore the previous WIFI connection for client after disconnect from Hotspot.
...
PiperOrigin-RevId: 467009808
2022-08-11 11:42:28 -07:00
Nick Bourdakos
c48e27d754
Add GitHub Action for testing Linux build.
...
PiperOrigin-RevId: 466797648
2022-08-10 15:18:44 -07:00
Nick Bourdakos
63b4f0760c
Start initial Swift SDK by creating a lightweight Objective-C wrapper
...
PiperOrigin-RevId: 466681084
2022-08-10 07:44:26 -07:00
Suet-Fei Li
55f20775d2
Fix internal flow
...
PiperOrigin-RevId: 466426960
2022-08-09 12:02:16 -07:00
hai007
2d979fd86c
Create a Device Object for Hotspot Client to avoid being disconnected by Hotspot.
...
Without creating a Device Object for the connection from a Hotspot Client, [Microsoft-Windows-WLAN-AutoConfig] may think it is a malign device and will disconnect it after 2 minutes, which will also causes Hotspot being deleted eventually.
PiperOrigin-RevId: 466395817
2022-08-09 10:18:50 -07:00
guogang
5df9ef5eca
Removed API mutex from platform implementation.
...
PiperOrigin-RevId: 465635705
2022-08-05 13:31:05 -07:00
suetfei
4bf31d18da
Internal Flow change
...
PiperOrigin-RevId: 465623255
2022-08-05 12:30:23 -07:00
jfcarroll
d09223d435
Prevent escaping the users Downloads folder by removing all occurances of /.. from the path passed in.
...
PiperOrigin-RevId: 465450615
2022-08-04 18:13:29 -07:00
suetfei
21c2c7c1ea
Port crypto from location/nearby/cpp/sharing/implementation/internal/crypto to third_party/nearby/internal/crypto.
...
BEGIN_PUBLIC
Add crypto library to Nearby.
END_PUBLIC
Remove the reference to absl::SourceLocation as it is not in OSS.
PiperOrigin-RevId: 465427879
2022-08-04 16:11:00 -07:00
hai007
a732616a97
Change private/public credentials from struct to proto.
...
PiperOrigin-RevId: 464678736
2022-08-01 19:16:05 -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
hai007
0d4964da7b
Splitting SaveCredentials into two separate virtual functions:
...
SavePrivateCredentials() and SavePublicCredentials().
Replacing Get_**_CredentialsCallback implementation with two function wrappers
instead of one function wrapper for the ExceptionOr class.
PiperOrigin-RevId: 464108110
2022-07-29 10:34:22 -07:00
hais
d5f86a04d6
Replace to use IdentityType where TrustType were used.
...
PiperOrigin-RevId: 463713311
2022-07-27 17:07:19 -07:00
jsobczak
be140a71d5
Make CredentialManager abstract
...
An abstract CredentialManager will help with unit testing.
Also added an empty CredentialManagerImpl class.
PiperOrigin-RevId: 463651261
2022-07-27 12:34:31 -07:00
hai007
c40a669755
Internal Change
...
PiperOrigin-RevId: 463599374
2022-07-27 08:57:29 -07:00
hais
9dec6143d1
Move credential.h to presence dir
...
PiperOrigin-RevId: 461779197
2022-07-18 20:03:20 -07:00
jsobczak
7153f5e482
Add advertisement factory
...
PiperOrigin-RevId: 461754387
2022-07-18 17:31:13 -07:00
hai007
6af55cf1bb
Expose internal/platform/implementation:types to nearby/presence
...
PiperOrigin-RevId: 461253782
2022-07-15 15:35:46 -07:00
hai007
bbf6de9d12
Remove a check from a Windows test.
...
PiperOrigin-RevId: 461245680
2022-07-15 14:55:08 -07:00
guogang
591ef0922e
Caught all exceptions in BLE scanning and advertising
...
PiperOrigin-RevId: 460760683
2022-07-13 11:16:03 -07:00
guogang
bff4051015
Fixed the deadlock in BluetoothServerSocket
...
PiperOrigin-RevId: 460724338
2022-07-13 08:41:13 -07:00
hais
b6f817274e
Initial header files showing class dependency and ownership.
...
No detailed function signatures nor impl included yet.
PiperOrigin-RevId: 460300058
2022-07-11 14:26:26 -07:00
edwinwu
12dcd319e0
[BLE Refactor] Implement iOS BLE outgoing(request) connection.
...
PiperOrigin-RevId: 459381179
2022-07-06 17:13:14 -07:00
guogang
dcbcbb53cc
Avoided to set Bluetooth radio status when new state is same as old
...
PiperOrigin-RevId: 458545342
2022-07-01 14:37:27 -07:00
aaronyujiaze
ff9a986595
Reduce the frequency of redundant Bluetooth Classic operations
...
PiperOrigin-RevId: 458057650
2022-06-29 14:05:41 -07:00
bourdakos
9edad3a803
Update NearbyConnections library to be compatible with Swift
...
PiperOrigin-RevId: 458014424
2022-06-29 10:56:40 -07:00
aaronyujiaze
abc0ae34df
Ensure bluetooth adapter is enabled before BLE operations
...
PiperOrigin-RevId: 458011940
2022-06-29 10:47:25 -07:00
jfcarroll
bd9d01ec29
Fix for outgoing file names being truncated, and renaming input files should not occur, only output files.
...
PiperOrigin-RevId: 457857046
2022-06-28 17:41:29 -07:00
guogang
698b04184a
Fixed a few issues found during test
...
PiperOrigin-RevId: 457604581
2022-06-27 17:30:37 -07:00
jfcarroll
87c76ea235
The file was overwritten when transferring a file that already existed in the downloads folder. With this change we now add " (x)", where x is an incrementing number, starting at 1, using the next non-existing number, to the file name, just before the first dot, or at the end if no dot. This has been applied to the GetDownloadPath method in the platform api.
...
PiperOrigin-RevId: 457530287
2022-06-27 11:44:15 -07:00
edwinwu
9ce81d8534
[BLE Refactor] Implement iOS BLE incoming connection.
...
PiperOrigin-RevId: 457110588
2022-06-24 15:58:47 -07:00
aaronyujiaze
75aa59d57e
Fix BluetoothAdapter bug to enable Bluetooth Classic Advertising
...
PiperOrigin-RevId: 456609115
2022-06-22 14:28:52 -07:00
aaronyujiaze
064a482e7d
Add unit tests for BluetoothAdapter
...
PiperOrigin-RevId: 455673471
2022-06-17 12:36:02 -07:00
edwinwu
ecbf356fbd
[BLE Refactor] Branches from googlemac/iPhone/Shared/Nearby/Sockets and Ble/GNCMBleConnection.* to re-construct ios connection socket.
...
PiperOrigin-RevId: 455558621
2022-06-17 01:13:21 -07:00
aaronyujiaze
6bd1a78eeb
Add size limit check for Bluetooth Classic SetName
...
PiperOrigin-RevId: 455442872
2022-06-16 12:34:35 -07:00
edwinwu
9a1ada9a56
[BLE Refactor] Implement iOS Scanning modules.
...
PiperOrigin-RevId: 455274324
2022-06-15 19:23:55 -07:00
aaronyujiaze
cf85146096
Add the comprehensive set of BluetoothError Enums
...
PiperOrigin-RevId: 455239120
2022-06-15 15:54:27 -07:00
edwinwu
160a224510
[BLE Refactor] Implement iOS Advertising modules.
...
PiperOrigin-RevId: 455005322
2022-06-14 18:34:01 -07:00
hai007
2d4cc75dfa
Fix miscellaneous typos in the comments or logging.
...
PiperOrigin-RevId: 454649199
2022-06-13 10:55:57 -07:00
edwinwu
67b318fa6f
[BLE Refactor] Refactor GATTClient implementation.
...
PiperOrigin-RevId: 454290863
2022-06-10 20:20:40 -07:00
edwinwu
e184bba0bc
BEGIN_PUBLIC
...
Fixes A go/mobile_tsan error (data_race) found while running //third_party/nearby/internal/platform/implementation/ios/Tests:PlatformTests
END_PUBLIC
PiperOrigin-RevId: 454211152
2022-06-10 11:52:58 -07:00
xlythe
62fc7e1e24
[Connections] Fix typo in log
...
PiperOrigin-RevId: 453992571
2022-06-09 13:00:55 -07:00
hai007
1aeb1093a9
Delete temporary Hotspot profiles after the session is done.
...
Reduce max rescan from 3 to 2 times. Experiment shows if second time scan fail, it always fail to find the Hotspot.
PiperOrigin-RevId: 453729656
2022-06-08 11:39:32 -07:00
aaronyujiaze
199bbc9cd1
Add null checkers to Bluetooth Classic medium ConnectToService
...
PiperOrigin-RevId: 453542256
2022-06-07 15:44:41 -07:00
aaronyujiaze
ccca7bef6f
Mute logging of BLE advertisement discovery for release builds
...
PiperOrigin-RevId: 453493406
2022-06-07 12:06:31 -07:00