From 1178266bed9f244671ebcb4e9624a01ce0d58097 Mon Sep 17 00:00:00 2001
From: lpw
Date: Tue, 18 Mar 2025 09:04:04 +0800
Subject: [PATCH] 提交 4.4.0

---
 frameworks/GoogleUtilities.xcframework/tvos-arm64/GoogleUtilities.framework/Headers/GULKeychainStorage.h |   74 +++++++++++++++++++------------------
 1 files changed, 38 insertions(+), 36 deletions(-)

diff --git a/frameworks/GoogleUtilities.xcframework/tvos-arm64/GoogleUtilities.framework/Headers/GULKeychainStorage.h b/frameworks/GoogleUtilities.xcframework/tvos-arm64/GoogleUtilities.framework/Headers/GULKeychainStorage.h
index af10cb4..eb90ea3 100644
--- a/frameworks/GoogleUtilities.xcframework/tvos-arm64/GoogleUtilities.framework/Headers/GULKeychainStorage.h
+++ b/frameworks/GoogleUtilities.xcframework/tvos-arm64/GoogleUtilities.framework/Headers/GULKeychainStorage.h
@@ -16,8 +16,6 @@
 
 #import <Foundation/Foundation.h>
 
-@class FBLPromise<ValueType>;
-
 NS_ASSUME_NONNULL_BEGIN
 
 /// The class provides a convenient, multiplatform abstraction of the Keychain.
@@ -34,42 +32,46 @@
  */
 - (instancetype)initWithService:(NSString *)service;
 
-/**
- * Get an object by key.
- * @param key The key.
- * @param objectClass The expected object class required by `NSSecureCoding`.
- * @param accessGroup The Keychain Access Group.
- *
- * @return Returns a promise. It is resolved with an object stored by key if exists. It is resolved
- * with `nil` when the object not found. It fails on a Keychain error.
- */
-- (FBLPromise<id<NSSecureCoding>> *)getObjectForKey:(NSString *)key
-                                        objectClass:(Class)objectClass
-                                        accessGroup:(nullable NSString *)accessGroup;
+/// Get an object by key.
+/// @param key The key.
+/// @param objectClass The expected object class required by `NSSecureCoding`.
+/// @param accessGroup The Keychain Access Group.
+/// @param completionHandler The completion handler to call when the
+/// synchronized keychain read is complete. An error is passed to the
+/// completion handler if the keychain read fails. Else, the object stored in
+/// the keychain, or `nil` if it does not exist, is passed to the completion
+/// handler.
+- (void)getObjectForKey:(NSString *)key
+            objectClass:(Class)objectClass
+            accessGroup:(nullable NSString *)accessGroup
+      completionHandler:
+          (void (^)(id<NSSecureCoding> _Nullable obj, NSError *_Nullable error))completionHandler;
 
-/**
- * Saves the given object by the given key.
- * @param object The object to store.
- * @param key The key to store the object. If there is an existing object by the key, it will be
- * overridden.
- * @param accessGroup The Keychain Access Group.
- *
- * @return Returns which is resolved with `[NSNull null]` on success.
- */
-- (FBLPromise<NSNull *> *)setObject:(id<NSSecureCoding>)object
-                             forKey:(NSString *)key
-                        accessGroup:(nullable NSString *)accessGroup;
+/// Saves the given object by the given key.
+/// @param object The object to store.
+/// @param key The key to store the object. If there is an existing object by the key, it will be
+/// overridden.
+/// @param accessGroup The Keychain Access Group.
+/// @param completionHandler  The completion handler to call when the
+/// synchronized keychain write is complete. An error is passed to the
+/// completion handler if the keychain read fails. Else, the object written to
+/// the keychain is passed to the completion handler.
+- (void)setObject:(id<NSSecureCoding>)object
+               forKey:(NSString *)key
+          accessGroup:(nullable NSString *)accessGroup
+    completionHandler:
+        (void (^)(id<NSSecureCoding> _Nullable obj, NSError *_Nullable error))completionHandler;
 
-/**
- * Removes the object by the given key.
- * @param key The key to store the object. If there is an existing object by the key, it will be
- * overridden.
- * @param accessGroup The Keychain Access Group.
- *
- * @return Returns which is resolved with `[NSNull null]` on success.
- */
-- (FBLPromise<NSNull *> *)removeObjectForKey:(NSString *)key
-                                 accessGroup:(nullable NSString *)accessGroup;
+/// Removes the object by the given key.
+/// @param key The key to store the object. If there is an existing object by
+/// the key, it will be overridden.
+/// @param accessGroup The Keychain Access Group.
+/// @param completionHandler The completion handler to call when the
+/// synchronized keychain removal is complete. An error is passed to the
+/// completion handler if the keychain removal fails.
+- (void)removeObjectForKey:(NSString *)key
+               accessGroup:(nullable NSString *)accessGroup
+         completionHandler:(void (^)(NSError *_Nullable error))completionHandler;
 
 #if TARGET_OS_OSX
 /// If not `nil`, then only this keychain will be used to save and read data (see

--
Gitblit v1.8.0