-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from toshi0383/xcode10
Update codebase
- Loading branch information
Showing
18 changed files
with
189 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "Fixtures"] | ||
path = Fixtures | ||
url = git@github.com:toshi0383/xcodeproj-fixtures.git | ||
url = https://github.com/toshi0383/xcodeproj-fixtures.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "AEXML", | ||
"repositoryURL": "https://github.com/tadija/AEXML", | ||
"state": { | ||
"branch": null, | ||
"revision": "54bb8ea6fb693dd3f92a89e5fcc19e199fdeedd0", | ||
"version": "4.3.3" | ||
} | ||
}, | ||
{ | ||
"package": "Commander", | ||
"repositoryURL": "https://github.com/kylef/Commander", | ||
"state": { | ||
"branch": null, | ||
"revision": "e5b50ad7b2e91eeb828393e89b03577b16be7db9", | ||
"version": "0.8.0" | ||
} | ||
}, | ||
{ | ||
"package": "PathKit", | ||
"repositoryURL": "https://github.com/kylef/PathKit", | ||
"state": { | ||
"branch": null, | ||
"revision": "e2f5be30e4c8f531c9c1e8765aa7b71c0a45d7a0", | ||
"version": "0.9.2" | ||
} | ||
}, | ||
{ | ||
"package": "Spectre", | ||
"repositoryURL": "https://github.com/kylef/Spectre.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "f14ff47f45642aa5703900980b014c2e9394b6e5", | ||
"version": "0.9.0" | ||
} | ||
}, | ||
{ | ||
"package": "SwiftShell", | ||
"repositoryURL": "https://github.com/kareman/SwiftShell", | ||
"state": { | ||
"branch": null, | ||
"revision": "beebe43c986d89ea5359ac3adcb42dac94e5e08a", | ||
"version": "4.1.2" | ||
} | ||
}, | ||
{ | ||
"package": "xcodeproj", | ||
"repositoryURL": "https://github.com/tuist/xcodeproj", | ||
"state": { | ||
"branch": null, | ||
"revision": "23da51abd3de3bedaad59a0afbb150b48504b5b0", | ||
"version": "6.3.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
// swift-tools-version:3.1 | ||
// swift-tools-version:4.2 | ||
// Managed by ice | ||
|
||
import Foundation | ||
import PackageDescription | ||
|
||
var isDevelopment: Bool { | ||
return ProcessInfo.processInfo.environment["SWIFTPM_DEVELOPMENT"] == "YES" | ||
} | ||
|
||
let package = Package( | ||
name: "xcconfig-extractor", | ||
targets: [ | ||
Target(name: "xcconfig-extractor", dependencies: ["Utilities"]), | ||
Target(name: "Utilities"), | ||
products: [ | ||
.executable(name: "xcconfig-extractor", targets: ["xcconfig-extractor"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/kylef/PathKit", from: "0.9.2"), | ||
.package(url: "https://github.com/kylef/Commander", from: "0.8.0"), | ||
.package(url: "https://github.com/tuist/xcodeproj", from: "6.3.0"), | ||
], | ||
dependencies: { | ||
var deps: [Package.Dependency] = [ | ||
.Package(url: "https://github.com/kylef/Commander.git", majorVersion: 0), | ||
.Package(url: "https://github.com/kylef/PathKit.git", majorVersion: 0), | ||
.Package(url: "https://github.com/toshi0383/Pbxproj.git", majorVersion: 0), | ||
] | ||
if isDevelopment { | ||
deps += [ | ||
.Package(url: "https://github.com/krzysztofzablocki/Sourcery.git", majorVersion: 0, minor: 6), | ||
] | ||
} | ||
return deps | ||
}(), | ||
exclude: ["Resources/SourceryTemplates"] | ||
targets: [ | ||
.target(name: "xcconfig-extractor", dependencies: ["Utilities", "PathKit", "Commander", "xcodeproj"]), | ||
.target(name: "Utilities", dependencies: ["xcodeproj", "PathKit", "Commander"]), | ||
.testTarget(name: "UtilitiesTests", dependencies: ["Utilities"]), | ||
] | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
// | ||
// PathKit+Commander.swift | ||
// xcconfig-extractor | ||
// | ||
// Created by Toshihiro Suzuki on 2017/04/27. | ||
// Copyright © 2017 toshi0383. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import Commander | ||
import Foundation | ||
import PathKit | ||
|
||
extension Path : ArgumentConvertible { | ||
// MARK: ArgumentConvertible | ||
|
||
extension Path: ArgumentConvertible { | ||
|
||
public init(parser: ArgumentParser) throws { | ||
|
||
guard let path = parser.shift() else { | ||
throw ArgumentError.missingValue(argument: nil) | ||
} | ||
|
||
self = Path(path) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Foundation | ||
import xcodeproj | ||
|
||
extension PBXProj { | ||
public var targets: [PBXNativeTarget] { | ||
return nativeTargets | ||
} | ||
|
||
public func fileReferences(named nameOrPath: String) -> [PBXFileReference] { | ||
return groups.map { $0.file(named: nameOrPath) }.compactMap { $0 } | ||
} | ||
} |
Oops, something went wrong.