Explorar el Código

Fix public method names. (#4666)

`s/<SDK>WithApp/<SDK>ForApp/g`

Note: this doesn't affect `initWithApp:` since that's an internal method.
Ryan Wilson hace 6 años
padre
commit
2ffc2f3a38
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      Interop/FirebaseComponentSystem.md

+ 4 - 2
Interop/FirebaseComponentSystem.md

@@ -179,7 +179,8 @@ an example:
   return @[ internalProvider ];
 }
 
-+ (FIRFunctions *)functionsWithApp:(FIRApp *)app {
+// The public entry point for the SDK.
++ (FIRFunctions *)functionsForApp:(FIRApp *)app {
   // Get the instance from the `FIRApp`'s container. This will create a new instance the
   // first time it is called, and since `isCacheable` is set in the component creation
   // block, it will return the existing instance on subsequent calls.
@@ -238,7 +239,8 @@ could conform to and provide to other frameworks:
   return @[authInterop];
 }
 
-+ (FIRAuth *)authWithApp:(FIRApp *)app {
+// The public entry point for the SDK.
++ (FIRAuth *)authForApp:(FIRApp *)app {
   // Use the instance from the provided app's container.
   id<FIRAuthInteroperable> auth = FIR_COMPONENT(FIRAuthInteroperable, app.container);
   return (FIRAuth *)auth;