mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Merge pull request #254 from yonaskolb/should-use-cond
Fix shouldUseLaunchSchemeArgsEnv disabling logic
This commit is contained in:
@@ -140,6 +140,10 @@ public struct Scheme: Equatable {
|
||||
lhs.postActions == rhs.postActions &&
|
||||
lhs.environmentVariables == rhs.environmentVariables
|
||||
}
|
||||
|
||||
public var shouldUseLaunchSchemeArgsEnv: Bool {
|
||||
return commandLineArguments.isEmpty && environmentVariables.isEmpty
|
||||
}
|
||||
}
|
||||
|
||||
public struct Analyze: BuildAction {
|
||||
@@ -180,6 +184,10 @@ public struct Scheme: Equatable {
|
||||
lhs.postActions == rhs.postActions &&
|
||||
lhs.environmentVariables == rhs.environmentVariables
|
||||
}
|
||||
|
||||
public var shouldUseLaunchSchemeArgsEnv: Bool {
|
||||
return commandLineArguments.isEmpty && environmentVariables.isEmpty
|
||||
}
|
||||
}
|
||||
|
||||
public struct Archive: BuildAction {
|
||||
|
||||
@@ -100,7 +100,7 @@ public class ProjectGenerator {
|
||||
testables: testables,
|
||||
preActions: scheme.test?.preActions.map(getExecutionAction) ?? [],
|
||||
postActions: scheme.test?.postActions.map(getExecutionAction) ?? [],
|
||||
shouldUseLaunchSchemeArgsEnv: scheme.test?.commandLineArguments.isEmpty ?? true,
|
||||
shouldUseLaunchSchemeArgsEnv: scheme.test?.shouldUseLaunchSchemeArgsEnv ?? true,
|
||||
codeCoverageEnabled: scheme.test?.gatherCoverageData ?? false,
|
||||
commandlineArguments: testCommandLineArgs,
|
||||
environmentVariables: testVariables,
|
||||
@@ -121,7 +121,7 @@ public class ProjectGenerator {
|
||||
buildConfiguration: scheme.profile?.config ?? defaultReleaseConfig.name,
|
||||
preActions: scheme.profile?.preActions.map(getExecutionAction) ?? [],
|
||||
postActions: scheme.profile?.postActions.map(getExecutionAction) ?? [],
|
||||
shouldUseLaunchSchemeArgsEnv: scheme.profile?.commandLineArguments.isEmpty ?? true,
|
||||
shouldUseLaunchSchemeArgsEnv: scheme.profile?.shouldUseLaunchSchemeArgsEnv ?? true,
|
||||
commandlineArguments: profileCommandLineArgs,
|
||||
environmentVariables: profileVariables
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user