Skip to content

Add file I/O usage to Core documentation. #959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Firebase/Core/Public/FIRApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ NS_SWIFT_NAME(FirebaseApp)
/**
* Configures a default Firebase app. Raises an exception if any configuration step fails. The
* default app is named "__FIRAPP_DEFAULT". This method should be called after the app is launched
* and before using Firebase services. This method is thread safe.
* and before using Firebase services. This method is thread safe and contains synchronous file I/O
* (reading GoogleService-Info.plist from disk).
*/
+ (void)configure;

Expand Down
6 changes: 4 additions & 2 deletions Firebase/Core/Public/FIROptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ NS_SWIFT_NAME(FirebaseOptions)
@interface FIROptions : NSObject <NSCopying>

/**
* Returns the default options.
* Returns the default options. The first time this is called it synchronously reads
* GoogleService-Info.plist from disk.
*/
+ (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions());

Expand Down Expand Up @@ -109,7 +110,8 @@ NS_SWIFT_NAME(FirebaseOptions)
"setters instead.");

/**
* Initializes a customized instance of FIROptions from the file at the given plist file path.
* Initializes a customized instance of FIROptions from the file at the given plist file path. This
* will read the file synchronously from disk.
* For example,
* NSString *filePath =
* [[NSBundle mainBundle] pathForResource:@"GoogleService-Info" ofType:@"plist"];
Expand Down