Commit Graph
33 Commits
Author SHA1 Message Date
John Carroll 55c4714b99 Cleanup the code. Change inputs on ImplementationPlatform::GetDownloadPath from std::string& to absl::string_view.
PiperOrigin-RevId: 472770249
2022-09-07 11:22:24 -07:00
Hai Shang da54ba3422 Add async operations to ble_v2
PiperOrigin-RevId: 472611661
2022-09-06 19:08:22 -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
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 c40a669755 Internal Change
PiperOrigin-RevId: 463599374
2022-07-27 08:57:29 -07:00
edwinwu 12dcd319e0 [BLE Refactor] Implement iOS BLE outgoing(request) connection.
PiperOrigin-RevId: 459381179
2022-07-06 17:13:14 -07:00
bourdakos 9edad3a803 Update NearbyConnections library to be compatible with Swift
PiperOrigin-RevId: 458014424
2022-06-29 10:56:40 -07:00
edwinwu 9ce81d8534 [BLE Refactor] Implement iOS BLE incoming connection.
PiperOrigin-RevId: 457110588
2022-06-24 15:58:47 -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
edwinwu 9a1ada9a56 [BLE Refactor] Implement iOS Scanning modules.
PiperOrigin-RevId: 455274324
2022-06-15 19:23:55 -07:00
edwinwu 160a224510 [BLE Refactor] Implement iOS Advertising modules.
PiperOrigin-RevId: 455005322
2022-06-14 18:34:01 -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
hai007 6ebf3731c8 Add WifiLan validation check
PiperOrigin-RevId: 452402734
2022-06-01 15:51:06 -07:00
edwinwu 01ec55de58 [BLE Refactor] Implement iOS Platform BLEV2 api with No-Op for advertising and discovery
PiperOrigin-RevId: 451844375
2022-05-30 03:54:55 -07:00
edwinwu a6f4bb9c04 [iOS NC] LSC: Separate third_party/nearby/internal/platform/implementation/ios to
- third_party/nearby/internal/platform/implementation/ios (for platform)
- third_party/nearby/connections/clients/ios (for connections)
- third_party/nearby/connections/samples/ios (for sample codes)

PiperOrigin-RevId: 440895852
2022-04-11 08:19:27 -07:00
edwinwu fcb3b27314 BEGIN_PUBLIC
[iOS] Fixes the file_path is empty when "CreateIncomingInternalPayload" in internal_payload_factory. If empty then use the payload_id for the file_name.
END_PUBLIC

- This is for the way iOS -> Android file transfer.
- CC_MD5 is deprecated in iOS13, change to CC_SHA256
- UIImageWriteToSavedPhotosAlbum, the UIImage* is nil after completion callback to the selector "didFinishSavingWithError". Changes to show image by "showReceivedImage" after write to Photo album.
- "NSDownloadsDirectory" seems have
<<Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Downloads” in the folder>>. Changes to use "NSTempDirectory".

PiperOrigin-RevId: 440808267
2022-04-11 00:18:05 -07:00
edwinwu 0c8838ad9b Deprecates the InputFile with PayloadId and replace the one with file path.
PiperOrigin-RevId: 440516892
2022-04-08 21:44:01 -07:00
hai007 43a165e418 WIFI Hotspot implementation (1)
Part 1: Internal common code

PiperOrigin-RevId: 440437253
2022-04-08 13:18:47 -07:00
hai007 6b3402ccd0 Disable layering check for objc_library
In preparation for enabling layering check by default for
objc_library, we are disabling layering check for any targets or
packages that would otherwise fail.

PiperOrigin-RevId: 439900062
2022-04-06 12:01:37 -07:00
bourdakos 9429d0f383 In the connection initiated handler, return endpoint info as NSData instead of casting to a String
PiperOrigin-RevId: 439382816
2022-04-04 12:28:17 -07:00
bourdakos 0f8c1b1fbe Move public headers to be compatible with SPM
PiperOrigin-RevId: 438583798
2022-03-31 09:16:17 -07:00
bourdakos a4feafd4f8 Fix a few struct initializers that are not compatible with c++14
PiperOrigin-RevId: 438565404
2022-03-31 07:44:24 -07:00
bourdakos 7c4bb693b5 Return the actual download path instead of tmp directory
PiperOrigin-RevId: 438464501
2022-03-30 20:26:26 -07:00
bourdakos 4e1c8c8222 Don't include base/logging.h for SPM builds
PiperOrigin-RevId: 438453534
2022-03-30 19:11:34 -07:00
bourdakos 267afabefd Escape file paths to avoid crashes when paths include spaces
PiperOrigin-RevId: 438437189
2022-03-30 17:26:43 -07:00
bourdakos 15d3fa0df5 Put CreateWebRtcMedium behind NO_WEBRTC flag
PiperOrigin-RevId: 437864516
2022-03-28 15:07:30 -07:00
bourdakos 6050084473 BEGIN_PUBLIC
Remove GTMStringEncoding dependency, because it is unused
END_PUBLIC

PiperOrigin-RevId: 437854852
2022-03-28 14:27:33 -07:00
jfcarroll f4b80ccb59 These are the changes for Payload::Type => PayloadType for the flattening CL
PiperOrigin-RevId: 436767666
2022-03-23 10:11:15 -07:00
jfcarroll 517d77f5aa This adds parent path and file name to the Payload constructor. This will affect chrome.
PiperOrigin-RevId: 435223740
2022-03-16 19:18:13 -07:00
edwinwu 91dfdefb9f [BLE Refactor] Impl Start/Stop Advertising function in medium layer.
PiperOrigin-RevId: 432185275
2022-03-03 07:04:32 -08:00
suetfei 37f8b4487e Internal flow change phase 2.
PiperOrigin-RevId: 427059704
2022-02-07 17:17:20 -08:00
jfcarroll 9abc9a59b9 Combine InputFile and OutputFile into a single class.
PiperOrigin-RevId: 426172033
2022-02-03 09:57:50 -08:00
hais f5fcd35ced nearby sdk refactor
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00