mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Feature/Store Kit Configuration (#964)
* Preemptively fix compilation for latest XcodeProj * Add StoreKitConfiguration to scheme and generator * Add scheme generator test * Fix and add tests * Support StoreKitConfiguration in TargetScheme * Set default type of `storekit` to `.none` * Upgrade XcodeProj to 7.15.0 * Create struct for StoreKitConfiguration * Update tests * Add storekit configuration to test project * Update changelog * Update project spec * Fix xcodeprojs * Fix projects * Capitalize String * Update CHANGELOG.md Co-authored-by: Gemma Barlow <gemmakbarlow@gmail.com> * Refactor StoreKitConfiguration init from json * Change `forWorkspace` to `pathPrefix` and add tests * Replace StoreKitConfiguration struct with string + option * Fix tests * Update project spec * Fixup changelog * Add `See Options` to `storeKitConfiguration` in project spec Co-authored-by: Gemma Barlow <gemmakbarlow@gmail.com>
This commit is contained in:
@@ -235,6 +235,12 @@ public class SchemeGenerator {
|
||||
locationScenarioReference = XCScheme.LocationScenarioReference(identifier: identifier, referenceType: referenceType.rawValue)
|
||||
}
|
||||
|
||||
var storeKitConfigurationFileReference: XCScheme.StoreKitConfigurationFileReference?
|
||||
if let storeKitConfiguration = scheme.run?.storeKitConfiguration {
|
||||
let storeKitConfigurationPath = Path(components: [project.options.schemePathPrefix, storeKitConfiguration]).simplifyingParentDirectoryReferences()
|
||||
storeKitConfigurationFileReference = XCScheme.StoreKitConfigurationFileReference(identifier: storeKitConfigurationPath.string)
|
||||
}
|
||||
|
||||
let launchAction = XCScheme.LaunchAction(
|
||||
runnable: shouldExecuteOnLaunch ? runnables.launch : nil,
|
||||
buildConfiguration: scheme.run?.config ?? defaultDebugConfig.name,
|
||||
@@ -253,6 +259,7 @@ public class SchemeGenerator {
|
||||
language: scheme.run?.language,
|
||||
region: scheme.run?.region,
|
||||
launchAutomaticallySubstyle: scheme.run?.launchAutomaticallySubstyle ?? launchAutomaticallySubstyle(for: schemeTarget),
|
||||
storeKitConfigurationFileReference: storeKitConfigurationFileReference,
|
||||
customLLDBInitFile: scheme.run?.customLLDBInit
|
||||
)
|
||||
|
||||
@@ -362,7 +369,8 @@ extension Scheme {
|
||||
disableMainThreadChecker: targetScheme.disableMainThreadChecker,
|
||||
stopOnEveryMainThreadCheckerIssue: targetScheme.stopOnEveryMainThreadCheckerIssue,
|
||||
language: targetScheme.language,
|
||||
region: targetScheme.region
|
||||
region: targetScheme.region,
|
||||
storeKitConfiguration: targetScheme.storeKitConfiguration
|
||||
),
|
||||
test: .init(
|
||||
config: debugConfig,
|
||||
|
||||
Reference in New Issue
Block a user