Commit 3bc73843 authored by DanmeiChen's avatar DanmeiChen

add GoogleService-Info.plist into gitignore

parent cb38cc3b
...@@ -7,6 +7,7 @@ xcuserdata/ ...@@ -7,6 +7,7 @@ xcuserdata/
Classes/LinphoneIOSVersion.h Classes/LinphoneIOSVersion.h
Pods/ Pods/
Podfile.lock Podfile.lock
GoogleService-Info.plist
build build
test-reports test-reports
WORK WORK
......
...@@ -239,7 +239,12 @@ ...@@ -239,7 +239,12 @@
#pragma deploymate pop #pragma deploymate pop
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FIRApp configure]; NSString *pathForFile=[[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"GoogleService-Info.plist"];
if ([[NSFileManager defaultManager] fileExistsAtPath:pathForFile]){
// If GoogleService-Info.plist doesn't exist, not call this function avoiding a crash.
[FIRApp configure];
}
UIApplication *app = [UIApplication sharedApplication]; UIApplication *app = [UIApplication sharedApplication];
UIApplicationState state = app.applicationState; UIApplicationState state = app.applicationState;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment