aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Core/App/iOS
diff options
context:
space:
mode:
Diffstat (limited to 'Example/Core/App/iOS')
-rw-r--r--Example/Core/App/iOS/FIRAppDelegate.h2
-rw-r--r--Example/Core/App/iOS/FIRAppDelegate.m47
-rw-r--r--Example/Core/App/iOS/FIRViewController.m14
-rw-r--r--Example/Core/App/iOS/main.m9
4 files changed, 36 insertions, 36 deletions
diff --git a/Example/Core/App/iOS/FIRAppDelegate.h b/Example/Core/App/iOS/FIRAppDelegate.h
index e3fba8f..1eb5040 100644
--- a/Example/Core/App/iOS/FIRAppDelegate.h
+++ b/Example/Core/App/iOS/FIRAppDelegate.h
@@ -18,6 +18,6 @@
@interface FIRAppDelegate : UIResponder <UIApplicationDelegate>
-@property (strong, nonatomic) UIWindow *window;
+@property(strong, nonatomic) UIWindow *window;
@end
diff --git a/Example/Core/App/iOS/FIRAppDelegate.m b/Example/Core/App/iOS/FIRAppDelegate.m
index 8819126..34c2e0a 100644
--- a/Example/Core/App/iOS/FIRAppDelegate.m
+++ b/Example/Core/App/iOS/FIRAppDelegate.m
@@ -12,43 +12,46 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#import "FIRAppDelegate.h"
-
@import FirebaseCommunity;
+#import "FIRAppDelegate.h"
@implementation FIRAppDelegate
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-{
+- (BOOL)application:(UIApplication *)application
+ didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FIRApp configure];
- return YES;
+ return YES;
}
-- (void)applicationWillResignActive:(UIApplication *)application
-{
- // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+- (void)applicationWillResignActive:(UIApplication *)application {
+ // Sent when the application is about to move from active to inactive state. This can occur for
+ // certain types of temporary interruptions (such as an incoming phone call or SMS message) or
+ // when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame
+ // rates. Games should use this method to pause the game.
}
-- (void)applicationDidEnterBackground:(UIApplication *)application
-{
- // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+- (void)applicationDidEnterBackground:(UIApplication *)application {
+ // Use this method to release shared resources, save user data, invalidate timers, and store
+ // enough application state information to restore your application to its current state in case
+ // it is terminated later.
+ // If your application supports background execution, this method is called instead of
+ // applicationWillTerminate: when the user quits.
}
-- (void)applicationWillEnterForeground:(UIApplication *)application
-{
- // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
+- (void)applicationWillEnterForeground:(UIApplication *)application {
+ // Called as part of the transition from the background to the inactive state; here you can undo
+ // many of the changes made on entering the background.
}
-- (void)applicationDidBecomeActive:(UIApplication *)application
-{
- // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+- (void)applicationDidBecomeActive:(UIApplication *)application {
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If
+ // the application was previously in the background, optionally refresh the user interface.
}
-- (void)applicationWillTerminate:(UIApplication *)application
-{
- // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+- (void)applicationWillTerminate:(UIApplication *)application {
+ // Called when the application is about to terminate. Save data if appropriate. See also
+ // applicationDidEnterBackground:.
}
@end
diff --git a/Example/Core/App/iOS/FIRViewController.m b/Example/Core/App/iOS/FIRViewController.m
index 901accf..027aabf 100644
--- a/Example/Core/App/iOS/FIRViewController.m
+++ b/Example/Core/App/iOS/FIRViewController.m
@@ -20,16 +20,14 @@
@implementation FIRViewController
-- (void)viewDidLoad
-{
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
+- (void)viewDidLoad {
+ [super viewDidLoad];
+ // Do any additional setup after loading the view, typically from a nib.
}
-- (void)didReceiveMemoryWarning
-{
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
+- (void)didReceiveMemoryWarning {
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
}
@end
diff --git a/Example/Core/App/iOS/main.m b/Example/Core/App/iOS/main.m
index 03b5c12..39c05a5 100644
--- a/Example/Core/App/iOS/main.m
+++ b/Example/Core/App/iOS/main.m
@@ -15,9 +15,8 @@
@import UIKit;
#import "FIRAppDelegate.h"
-int main(int argc, char * argv[])
-{
- @autoreleasepool {
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([FIRAppDelegate class]));
- }
+int main(int argc, char* argv[]) {
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([FIRAppDelegate class]));
+ }
}