Nearby Presence scanning sessions may be very long. We need a way to notify the scanner that new credentials were added during scanning.
`SubscribeForPublicCredentials()` allows us to subscribe for such updates.
PiperOrigin-RevId: 502699345
Instead of two callbacks:
- void on_success(Result result)
- void on_failure(Status status)
use just one callback:
void on_result(StatusOr<Result> result)
PiperOrigin-RevId: 501912034
1. Update the API to accept the credentials on input instead of credential manager.
2. Update the test with values using the LDT encryption.
These changes allow us to have a more asynchronous implementaion.
When broadcasting we can:
1. Fetch the private credentials asynchronously.
2. Create the advertisement and start broadcasting when the credentials have been fetched.
When scanning we can:
1. Fetch public credentials asynchronously.
2. Start scanning for advertisements.
3. Update the decoder when new credentials are fetched.
PiperOrigin-RevId: 493998041
We are still missing the real LDT implementation, so the code is linked with a
placeholder code that doesn't do the actual encryption.
PiperOrigin-RevId: 484596294
We are still missing the real LDT implementation, so the code is linked with a
placeholder code that doesn't do the actual encryption.
We also needed to pass the `account_name` to credential manager to choose the
correct credentials.
PiperOrigin-RevId: 483801163
Refactoring change.
Merge CertificateManager and CredentialManager into a single interface.
Hide AdvertisementFactory in implementation/. The client app will not be using
that class directly.
Clean up build targets.
PiperOrigin-RevId: 466748133
SavePrivateCredentials() and SavePublicCredentials().
Replacing Get_**_CredentialsCallback implementation with two function wrappers
instead of one function wrapper for the ExceptionOr class.
PiperOrigin-RevId: 464108110