Skip to content

Commit

Permalink
xcode: remove USE_APN_DEV and use it only in debug scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
bagage committed Feb 17, 2016
1 parent 7583bb2 commit 59030ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Classes/LinphoneManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,7 @@ - (void)configurePushTokenForProxyConfig:(LinphoneProxyConfig *)proxyCfg {
// NSLocalizedString(@"IC_MSG", nil); // Fake for genstrings
// NSLocalizedString(@"IM_MSG", nil); // Fake for genstrings
// NSLocalizedString(@"IM_FULLMSG", nil); // Fake for genstrings
#ifdef USE_APN_DEV
#ifdef DEBUG
#define APPMODE_SUFFIX @"dev"
#else
#define APPMODE_SUFFIX @"prod"
Expand Down
2 changes: 1 addition & 1 deletion Classes/LinphoneUI/StatusBarView.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ - (void)proxyConfigUpdate:(LinphoneProxyConfig *)config {
NSString *message = nil;
LinphoneGlobalState gstate = linphone_core_get_global_state(LC);

if (!linphone_core_is_network_reachable(LC)) {
if (gstate == LinphoneGlobalOn && !linphone_core_is_network_reachable(LC)) {
message = NSLocalizedString(@"Network down", nil);
} else if (gstate == LinphoneGlobalConfiguring) {
message = NSLocalizedString(@"Fetching remote configuration", nil);
Expand Down
4 changes: 2 additions & 2 deletions linphone-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.11</string>
<string>3.12</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down Expand Up @@ -53,7 +53,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>8</string>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationExitsOnSuspend</key>
Expand Down
6 changes: 1 addition & 5 deletions linphone.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4286,10 +4286,7 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = linphone_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
USE_APN_DEV,
DEBUG,
);
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
Expand Down Expand Up @@ -4463,7 +4460,6 @@
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = linphone_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = USE_APN_DEV;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
Expand Down

0 comments on commit 59030ec

Please sign in to comment.