Commit 3bc73843 authored by DanmeiChen's avatar DanmeiChen

add GoogleService-Info.plist into gitignore

parent cb38cc3b
......@@ -7,6 +7,7 @@ xcuserdata/
Classes/LinphoneIOSVersion.h
Pods/
Podfile.lock
GoogleService-Info.plist
build
test-reports
WORK
......
......@@ -239,7 +239,12 @@
#pragma deploymate pop
- (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];
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