Skip to content

Commit 2eb177e

Browse files
authored
[FirebaseCore] Mark duplicate internal API as unavailable in Swift (#9812)
* Mark API as unavailable * Kick off storage and functions CI as well * [skip ci] Revert .github/workflows/storage.yml * [skip ci] Revert .github/workflows/functions.yml * [skip ci] Revert .github/workflows/functions.yml (2) * [skip ci] Revert .github/workflows/storage.yml (2)
1 parent 2201d75 commit 2eb177e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FirebaseCore/Sources/FIRComponentContainerInternal.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
2929

3030
/// Retrieves an instance that conforms to the specified protocol. This will return `nil` if the
3131
/// protocol wasn't registered, or if the instance couldn't be instantiated for the provided app.
32-
- (nullable id)instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:));
32+
- (nullable id)instanceForProtocol:(Protocol *)protocol
33+
NS_SWIFT_UNAVAILABLE("Use `instance(for:)` from the FirebaseCoreExtension module instead.");
3334

3435
/// Instantiates all the components that have registered as "eager" after initialization.
3536
- (void)instantiateEagerComponents;

0 commit comments

Comments
 (0)