From 1c7882d4b4e169e0ffed2d40b7b559da1ea3d91c Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 9 Jul 2015 14:34:22 +0200 Subject: [PATCH] xcodeproj: use debug remote push notification when building Release so that it can works with Crashlytics --- Classes/LinphoneManager.m | 4 ++-- linphone.xcodeproj/project.pbxproj | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index da8db9cb5..9c459df82 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1635,7 +1635,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { LinphoneCall *currentCall = linphone_core_get_current_call(theLinphoneCore); const MSList *callList = linphone_core_get_calls(theLinphoneCore); if (!currentCall // no active call - && callList // at least one call in a non active state + && callList // at least one call in a non active state && ms_list_find_custom((MSList *)callList, (MSCompareFunc)comp_call_state_paused, NULL)) { [self startCallPausedLongRunningTask]; } @@ -1991,7 +1991,7 @@ static void audioRouteChangeListenerCallback(void *inUserData, // 1 } // NSLocalizedString(@"IC_MSG", nil); // Fake for genstrings // NSLocalizedString(@"IM_MSG", nil); // Fake for genstrings -#ifdef DEBUG +#ifdef USE_APN_DEV #define APPMODE_SUFFIX @"dev" #else #define APPMODE_SUFFIX @"prod" diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index adfbfc4a0..32c3c4c04 100755 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -4558,6 +4558,7 @@ HAVE_SILK, HAVE_SSL, DEBUG, + USE_APN_DEV, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES; @@ -4732,6 +4733,7 @@ VIDEO_ENABLED, HAVE_SILK, HAVE_SSL, + USE_APN_DEV, ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;