Skip to content

Commit

Permalink
Parametrize the DEBUG flag in the Base xcconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Jan 16, 2024
1 parent fb4cfb3 commit 021235f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ios/Configurations/Base.xcconfig.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ CODE_SIGN_IDENTITY[config=Debug] = Apple Development
CODE_SIGN_IDENTITY[config=Staging] = Apple Development
CODE_SIGN_IDENTITY[config=MockRelease] = Apple Development
CODE_SIGN_IDENTITY[config=Release] = Apple Distribution

// Flag used to conditionally show features that are in development
SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Debug] = DEBUG
SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Staging] = DEBUG
SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=MockRelease] =
SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Release] =
4 changes: 2 additions & 2 deletions ios/MullvadVPN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3140,11 +3140,11 @@
isa = PBXGroup;
children = (
A935594D2B4E919F00D5D524 /* Api.xcconfig */,
584D0111299134AB00531822 /* Version.xcconfig */,
5808273928487E3E006B77A4 /* Base.xcconfig */,
5808273B284888BC006B77A4 /* App.xcconfig */,
5808273928487E3E006B77A4 /* Base.xcconfig */,
5808273C284888E5006B77A4 /* PacketTunnel.xcconfig */,
58ECD29123F178FD004298B6 /* Screenshots.xcconfig */,
584D0111299134AB00531822 /* Version.xcconfig */,
);
path = Configurations;
sourceTree = "<group>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "MockRelease"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand Down

0 comments on commit 021235f

Please sign in to comment.