Commit Graph
42 Commits
Author SHA1 Message Date
Francis Tsui 93387033e8 Internal change
PiperOrigin-RevId: 859234559
2026-01-21 13:24:24 -08:00
hai007 52c0e44813 Remove EnableBleV2 flag.
PiperOrigin-RevId: 858892895
2026-01-20 21:18:07 -08:00
Francis Tsui 10c85fe248 Remove EnableBleV2 flag.
PiperOrigin-RevId: 858672879
2026-01-20 11:15:44 -08:00
Francis Tsui 877fcf8cd8 Fix build breakage.
PiperOrigin-RevId: 850761248
2025-12-31 09:03:32 -08:00
Francis Tsui a590b2a3e2 Update platform to remove file size from CreateInputFile API.
PiperOrigin-RevId: 846311268
2025-12-18 09:52:50 -08:00
Francis Tsui 77ce859862 Switch ConnectionOptions to use MacAddress class.
PiperOrigin-RevId: 802210252
2025-09-02 10:56:48 -07:00
Nick Bourdakos 2f8ef203f7 Delete EntryPointTest.swift
PiperOrigin-RevId: 794217354
2025-08-12 12:16:50 -07:00
hai007 a78e9e4138 Automated Code Change
PiperOrigin-RevId: 786383170
2025-07-23 12:34:42 -07:00
Johnson Lu a8889d12a2 Add enableBLEV2() to ConnectionManager
PiperOrigin-RevId: 783118129
2025-07-14 18:20:09 -07:00
Guogang Li 2f07f1ceee Remove dependents on GTMLogger
PiperOrigin-RevId: 766849674
2025-06-03 15:42:07 -07:00
hai007 0ba9201113 Add AWDL in HelloConnection
PiperOrigin-RevId: 745025636
2025-04-08 01:10:26 -07:00
Anay Wadhera 29792c8938 Swap rules to OSS
PiperOrigin-RevId: 731795253
2025-02-27 11:16:31 -08:00
hai007 51607dc548 Update the assigned mediums and leave those unassigned as the default false.
PiperOrigin-RevId: 729383663
2025-02-20 22:26:57 -08:00
Nick Bourdakos ca500a8d98 PR #2393: Add missing license headers to Swift files
Imported from GitHub PR https://github.com/google/nearby/pull/2393

Copybara import of the project:

--
9f5918dd18b0cb825d2f671d18eb15a119a7e6d1 by Nick Bourdakos <bourdakos1@gmail.com>:

Add missing license headers to Swift files

Merging this change closes #2393

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/nearby/pull/2393 from bourdakos1:add-swift-license 9f5918dd18b0cb825d2f671d18eb15a119a7e6d1
PiperOrigin-RevId: 621062126
2024-04-01 23:03:32 -07:00
Guogang Li 387a51b260 internal update
PiperOrigin-RevId: 619595164
2024-03-27 11:25:55 -07:00
Nick Bourdakos 5fb7f69830 Expose NearbyFlags through Objective-C package so BLE v2 can more easily be enabled in the Swift SDK
PiperOrigin-RevId: 600790011
2024-01-23 08:04:03 -08:00
Deling Ren ad6bd80267 Fix the crash when an endpoint without a UTF8 name is discovered 2023-10-10 11:53:23 -07:00
Janusz Sobczak 56acecdffa Migrate to AnyInvocable in DiscoveryListener
PiperOrigin-RevId: 571077933
2023-10-05 11:20:17 -07:00
Janusz Sobczak 2c55c0cdbd Refactor Pipe implementation
* Remove Pipe classes
* Rename BasePipe to Pipe
* Hide Pipe class in anonymous namespace in pipe.cc
* Add CreatePipe static method
* Replace Payload(std::function<InputStream&()>) with Payload(std::unique_ptr<InputStream>)
* Find&Replace Pipe usages

PiperOrigin-RevId: 557276980
2023-08-15 15:53:58 -07:00
hai007 3a88f4e217 record connection layer status code
PiperOrigin-RevId: 553302833
2023-08-09 19:06:13 -07:00
Anay Wadhera 4958a32c35 make ResultCallback a bare function type and convert to AnyInvocable
PiperOrigin-RevId: 551081080
2023-07-25 21:07:48 -07:00
Anay Wadhera 5da4b33824 Revert "Revert incoming connections listener changes for internal breakages."
PiperOrigin-RevId: 542381558
2023-06-21 15:36:44 -07:00
Anay Wadhera 1973b09849 Revert incoming connections listener changes for internal breakages.
PiperOrigin-RevId: 542010849
2023-06-20 12:16:10 -07:00
Nick Bourdakos 12f9512a19 Use IOS_LATEST for the test runner to prevent Xcode 14.3 issues
PiperOrigin-RevId: 541053739
2023-06-16 17:37:39 -07:00
Anay Wadhera 5737b867ed implement startlisteningforincomingconnections
PiperOrigin-RevId: 540707703
2023-06-15 15:31:08 -07:00
Nick Bourdakos 3c72e4f40c Fix EXC_BAD_ACCESS crash when calling payload delegate methods.
Objective-C objects cannot be captured by reference in C++ lambdas and must always be captured by value.

This also takes a copy of the data returned from the Wi-Fi LAN reader, to prevent potential intermittent empty packet issues.

Fixes: #1702
PiperOrigin-RevId: 533925980
2023-05-21 19:19:18 -07:00
Anay Wadhera f2cadc2815 move payload listeners to absl::AnyInvocable
PiperOrigin-RevId: 533365325
2023-05-18 23:30:01 -07:00
Nick Bourdakos 3c48cc80e8 Give endpoint detail subviews IDs so a new instance of the view is created between separate connections 2023-05-11 16:01:15 -04: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
Nick Bourdakos 10faeb88c7 Add usage descriptions to iOS sample app 2023-04-25 12:56:05 -04:00
Nick Bourdakos 78908237c7 Add iOS sample app readme 2023-04-11 15:16:38 -04:00
Anay Wadhera 13f7fb7966 Remove generic variant of MediumSelector, we only use bool as the indicator type.
PiperOrigin-RevId: 521834776
2023-04-04 12:31:06 -07:00
Nick Bourdakos 78d5246060 Clean up spaces
PiperOrigin-RevId: 521464768
2023-04-03 08:23:30 -07:00
Nick Bourdakos 59de13edd5 Remove development team 2023-04-01 15:26:04 -04:00
Nick Bourdakos 562b5a8c59 Remove .DS_Store 2023-04-01 15:23:01 -04:00
Nick Bourdakos 4d9bb45807 Add example SwiftUI app for Nearby Connections 2023-04-01 15:13:29 -04:00
hai007 e5efc0a09a Add all options to GNCAdvertisingOptions, GNCDiscoveryOptions, and GNCConnectionOptions.
PiperOrigin-RevId: 515153199
2023-03-08 15:08:30 -08:00
hai007 b204aed4cb Don't ignore GNCCoreAdapter completion handler errors in Swift APIs.
PiperOrigin-RevId: 508760708
2023-02-10 14:53:35 -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