disable crashlythices for linphonetester

This commit is contained in:
Danmei Chen 2019-01-29 14:45:42 +01:00
parent 19acd2981b
commit f5c64116c0
3 changed files with 7 additions and 0 deletions

View file

@ -239,11 +239,13 @@
#pragma deploymate pop
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
#ifdef USE_FIREBASE
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];
}
#endif
UIApplication *app = [UIApplication sharedApplication];
UIApplicationState state = app.applicationState;

View file

@ -26,7 +26,11 @@
#define FILE_SIZE 17
#define DOMAIN_SIZE 3
#ifdef USE_FIREBASE
#define USE_CRASHLYTICS TRUE
#else
#define USE_CRASHLYTICS FALSE
#endif
+ (NSString *)cacheDirectory {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);

View file

@ -5638,6 +5638,7 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"DEBUG=1",
"USE_FIREBASE=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;