aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Shared/FIRSampleAppUtilities.m
diff options
context:
space:
mode:
Diffstat (limited to 'Example/Shared/FIRSampleAppUtilities.m')
-rw-r--r--Example/Shared/FIRSampleAppUtilities.m27
1 files changed, 14 insertions, 13 deletions
diff --git a/Example/Shared/FIRSampleAppUtilities.m b/Example/Shared/FIRSampleAppUtilities.m
index a0a4794..7a777d0 100644
--- a/Example/Shared/FIRSampleAppUtilities.m
+++ b/Example/Shared/FIRSampleAppUtilities.m
@@ -55,8 +55,8 @@ NSString *const kInvalidPlistAlertMessage = @"This sample app needs to be update
return NO;
}
- NSString *plistFilePath = [bundle pathForResource:kServiceInfoFileName
- ofType:kServiceInfoFileType];
+ NSString *plistFilePath =
+ [bundle pathForResource:kServiceInfoFileName ofType:kServiceInfoFileType];
if (!plistFilePath.length) {
return NO;
}
@@ -78,24 +78,25 @@ NSString *const kInvalidPlistAlertMessage = @"This sample app needs to be update
return YES;
}
-+ (void)presentAlertForInvalidServiceInfoPlistFromViewController:(UIViewController *)
- viewController {
++ (void)presentAlertForInvalidServiceInfoPlistFromViewController:
+ (UIViewController *)viewController {
NSString *message = [NSString stringWithFormat:kInvalidPlistAlertMessage, kGithubRepoURLString];
UIAlertController *alertController =
[UIAlertController alertControllerWithTitle:kInvalidPlistAlertTitle
message:message
preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *viewReadmeAction =
- [UIAlertAction actionWithTitle:@"View Github"
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction * _Nonnull action) {
- NSURL *githubURL = [NSURL URLWithString:kGithubRepoURLString];
- [FIRSampleAppUtilities navigateToURL:githubURL fromViewController:viewController];
-
- }];
+ UIAlertAction *viewReadmeAction = [UIAlertAction
+ actionWithTitle:@"View Github"
+ style:UIAlertActionStyleDefault
+ handler:^(UIAlertAction *_Nonnull action) {
+ NSURL *githubURL = [NSURL URLWithString:kGithubRepoURLString];
+ [FIRSampleAppUtilities navigateToURL:githubURL fromViewController:viewController];
+
+ }];
[alertController addAction:viewReadmeAction];
- UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:nil];
+ UIAlertAction *cancelAction =
+ [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:nil];
[alertController addAction:cancelAction];
[viewController presentViewController:alertController animated:YES completion:nil];