From 71fb9531f894366660eed5e852719c7cecdd41e7 Mon Sep 17 00:00:00 2001
From: lpw <812862340@qq.com>
Date: Sun, 28 Sep 2025 15:06:20 +0800
Subject: [PATCH] 提交版本 4.8.0
---
frameworks/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h | 43 +++++++++++++++++++++++--------------------
1 files changed, 23 insertions(+), 20 deletions(-)
diff --git a/frameworks/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h b/frameworks/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h
index fdb56c4..7670d40 100644
--- a/frameworks/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h
+++ b/frameworks/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h
@@ -22,11 +22,14 @@
NS_ASSUME_NONNULL_BEGIN
/** A notification with this name is sent each time an installation is created or deleted. */
+// clang-format off
+// clang-format12 merges the next two lines.
FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification
NS_SWIFT_NAME(InstallationIDDidChange);
-/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */
+/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */
FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey
NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey);
+// clang-format on
/**
* An installation ID handler block.
@@ -35,7 +38,7 @@
*/
typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier,
NSError *__nullable error)
- NS_SWIFT_NAME(InstallationsIDHandler);
+ NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");
/**
* An authorization token handler block.
@@ -45,7 +48,7 @@
*/
typedef void (^FIRInstallationsTokenHandler)(
FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error)
- NS_SWIFT_NAME(InstallationsTokenHandler);
+ NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");
/**
* The class provides API for Firebase Installations.
@@ -54,14 +57,13 @@
* as the ability to delete it. A Firebase Installation is unique by `FirebaseApp.name` and
* `FirebaseApp.options.googleAppID` .
*/
-NS_SWIFT_NAME(Installations)
-@interface FIRInstallations : NSObject
+NS_SWIFT_NAME(Installations) NS_SWIFT_SENDABLE @interface FIRInstallations : NSObject
- (instancetype)init NS_UNAVAILABLE;
/**
* Returns a default instance of `Installations`.
- * @returns An instance of `Installations` for `FirebaseApp.defaultApp().
+ * @return An instance of `Installations` for `FirebaseApp.defaultApp().
* @throw Throws an exception if the default app is not configured yet or required `FirebaseApp`
* options are missing.
*/
@@ -70,7 +72,7 @@
/**
* Returns an instance of `Installations` for an application.
* @param application A configured `FirebaseApp` instance.
- * @returns An instance of `Installations` corresponding to the passed application.
+ * @return An instance of `Installations` corresponding to the passed application.
* @throw Throws an exception if required `FirebaseApp` options are missing.
*/
+ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:));
@@ -79,35 +81,36 @@
* The method creates or retrieves an installation ID. The installation ID is a stable identifier
* that uniquely identifies the app instance. NOTE: If the application already has an existing
* FirebaseInstanceID then the InstanceID identifier will be used.
- * @param completion A completion handler which is invoked when the operation completes. See
- * `InstallationsIDHandler` for additional details.
+ * @param completion A completion handler which is invoked when the operation completes.
*/
-- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion;
+- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier,
+ NSError *__nullable error))completion;
/**
* Retrieves (locally if it exists or from the server) a valid installation auth token. An existing
* token may be invalidated or expired, so it is recommended to fetch the installation auth token
- * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:,
- * completion:)` with forcing refresh `NO`.
- * @param completion A completion handler which is invoked when the operation completes. See
- * `InstallationsTokenHandler` for additional details.
+ * before each server request. The method does the same as
+ * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`.
+ * @param completion A completion handler which is invoked when the operation completes.
*/
-- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion;
+- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult,
+ NSError *__nullable error))completion;
/**
* Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation
* auth token. An existing token may be invalidated or expire, so it is recommended to fetch the
* installation auth token before each server request. This method should be used with `forceRefresh
- * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not
+ * == true` when e.g. a request with the previously fetched installation auth token failed with "Not
* Authorized" error.
- * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and
- * a new one will be requested from the server. If `NO`, then the locally cached installation auth
- * token will be returned if exists and has not expired yet.
+ * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and
+ * a new one will be requested from the server. If `false`, then the locally cached installation
+ * auth token will be returned if exists and has not expired yet.
* @param completion A completion handler which is invoked when the operation completes. See
* `InstallationsTokenHandler` for additional details.
*/
- (void)authTokenForcingRefresh:(BOOL)forceRefresh
- completion:(FIRInstallationsTokenHandler)completion;
+ completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult,
+ NSError *__nullable error))completion;
/**
* Deletes all the installation data including the unique identifier, auth tokens and
--
Gitblit v1.8.0