mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
disable crashlythices for linphonetester
This commit is contained in:
parent
19acd2981b
commit
f5c64116c0
3 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue