Skip to content

Commit

Permalink
Merge pull request #1 from justeattakeaway/feature/vs/better-package-…
Browse files Browse the repository at this point in the history
…support

Better Package support
  • Loading branch information
albertodebortoli authored Apr 27, 2023
2 parents 83ecdfa + 3c1dc33 commit 4576c47
Show file tree
Hide file tree
Showing 35 changed files with 1,704 additions and 427 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

# Misc
.DS_Store
107 changes: 107 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/GeneratePackage.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGenerator"
BuildableName = "PackageGenerator"
BlueprintName = "PackageGenerator"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGeneratorTests"
BuildableName = "PackageGeneratorTests"
BlueprintName = "PackageGeneratorTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
viewDebuggingEnabled = "No">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGenerator"
BuildableName = "PackageGenerator"
BlueprintName = "PackageGenerator"
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "generate-package"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--path Example/Packages/Example"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--dependencies-path Example/Config/RemoteDependencies.json"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--template-path Templates/Package.stencil"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGenerator"
BuildableName = "PackageGenerator"
BlueprintName = "PackageGenerator"
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
107 changes: 107 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/GeneratePackages.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGenerator"
BuildableName = "PackageGenerator"
BlueprintName = "PackageGenerator"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGeneratorTests"
BuildableName = "PackageGeneratorTests"
BlueprintName = "PackageGeneratorTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
viewDebuggingEnabled = "No">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGenerator"
BuildableName = "PackageGenerator"
BlueprintName = "PackageGenerator"
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "generate-packages"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--packages-folder-path Example/Packages"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--dependencies-path Example/Config/RemoteDependencies.json"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--template-path Templates/Package.stencil"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PackageGenerator"
BuildableName = "PackageGenerator"
BlueprintName = "PackageGenerator"
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
25 changes: 2 additions & 23 deletions .swiftpm/xcode/xcshareddata/xcschemes/PackageGenerator.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
useCustomWorkingDirectory = "YES"
customWorkingDirectory = "/Users/victor.sarda/Developer/PackageGenerator"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
Expand All @@ -61,28 +62,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "generate-package"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--modules-folder Example/Modules/"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--dependencies-path Example/Config/RemoteDependencies.json"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--template-path Templates/Package.stencil"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--module-name Example"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
12 changes: 6 additions & 6 deletions Example/Config/RemoteDependencies.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"dependencies": [
{
"name": "Alamofire",
"url": "https://github.com/Alamofire/Alamofire",
"version": "5.6.1"
"name": "RemoteDependencyA",
"url": "https://github.com/DependencyA",
"version": "1.0.0"
},
{
"name": "ViewInspector",
"url": "https://github.com/nalexn/ViewInspector",
"version": "0.9.2"
"name": "RemoteDependencyB",
"url": "https://github.com/DependencyB",
"version": "2.0.0"
}
]
}

This file was deleted.

54 changes: 0 additions & 54 deletions Example/Modules/Example/Example.json

This file was deleted.

Loading

0 comments on commit 4576c47

Please sign in to comment.