Skip to content

Commit

Permalink
Update project structure to support SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtaiki committed Dec 1, 2019
1 parent aa03720 commit 99b8973
Show file tree
Hide file tree
Showing 21 changed files with 239 additions and 107 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

92 changes: 92 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Spider.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1120"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Spider"
BuildableName = "Spider"
BlueprintName = "Spider"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SpiderTests"
BuildableName = "SpiderTests"
BlueprintName = "SpiderTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SpiderTests"
BuildableName = "SpiderTests"
BlueprintName = "SpiderTests"
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">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Spider"
BuildableName = "Spider"
BlueprintName = "Spider"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
20 changes: 4 additions & 16 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,12 @@ import PackageDescription

let package = Package(
name: "Spider",
platforms: [.macOS(.v10_12),
.iOS(.v10),
.tvOS(.v10),
.watchOS(.v3)
],
products: [
.library(
name: "Spider",
targets: ["Spider"])
],
dependencies: [
.library(name: "Spider", targets: ["Spider"])
],
dependencies: [],
targets: [
.target(
name: "Spider",
dependencies: []),
.testTarget(
name: "SpiderTests",
dependencies: ["Spider"])
.target(name: "Spider", dependencies: []),
.testTarget(name: "SpiderTests", dependencies: ["Spider"])
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2019 Harry Tran. All rights reserved.
//

import Foundation

final class StubURLProtocol: URLProtocol {

override class func canInit(with request: URLRequest) -> Bool {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Spider.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.platform = :ios, "10.0"

s.source_files = 'Spider/**/*.swift'
s.source_files = 'Spider/Sources/**/*.swift'

s.ios.frameworks = 'UIKit', 'Foundation'
end
Loading

0 comments on commit 99b8973

Please sign in to comment.