-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d287c5c
commit 7a7f36a
Showing
15 changed files
with
159 additions
and
6 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
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": "Commandant", | ||
"repositoryURL": "https://github.com/Carthage/Commandant.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "a1671cf728db837cf5ec1980a80d276bbba748f6", | ||
"version": "0.18.0" | ||
} | ||
}, | ||
{ | ||
"package": "CwlCatchException", | ||
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "f809deb30dc5c9d9b78c872e553261a61177721a", | ||
"version": "2.0.0" | ||
} | ||
}, | ||
{ | ||
"package": "CwlPreconditionTesting", | ||
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "02b7a39a99c4da27abe03cab2053a9034379639f", | ||
"version": "2.0.0" | ||
} | ||
}, | ||
{ | ||
"package": "Nimble", | ||
"repositoryURL": "https://github.com/Quick/Nimble.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "7a54aaf19a8ef16f67787c260fda81ead7ba4d67", | ||
"version": "9.0.1" | ||
} | ||
}, | ||
{ | ||
"package": "Quick", | ||
"repositoryURL": "https://github.com/Quick/Quick.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "8cce6acd38f965f5baa3167b939f86500314022b", | ||
"version": "3.1.2" | ||
} | ||
}, | ||
{ | ||
"package": "Version", | ||
"repositoryURL": "https://github.com/mxcl/Version.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "a94b48f36763c05629fc102837398505032dead9", | ||
"version": "2.0.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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// swift-tools-version:5.3 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "mas", | ||
platforms: [ | ||
.macOS(.v10_11), | ||
], | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.executable( | ||
name: "mas", | ||
targets: ["mas"] | ||
), | ||
.library( | ||
name: "MasKit", | ||
targets: ["MasKit"] | ||
), | ||
], | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
.package(url: "https://github.com/Carthage/Commandant.git", from: "0.18.0"), | ||
.package(url: "https://github.com/Quick/Nimble.git", from: "9.0.1"), | ||
.package(url: "https://github.com/Quick/Quick.git", from: "3.1.2"), | ||
.package(url: "https://github.com/mxcl/Version.git", from: "2.0.0"), | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages this package depends on. | ||
.target( | ||
name: "mas", | ||
dependencies: ["MasKit"], | ||
swiftSettings: [ | ||
.unsafeFlags([ | ||
"-F", "/System/Library/PrivateFrameworks", | ||
"-I", "Sources/PrivateFrameworks/CommerceKit", | ||
"-I", "Sources/PrivateFrameworks/StoreFoundation", | ||
]), | ||
] | ||
), | ||
.target( | ||
name: "MasKit", | ||
dependencies: ["Commandant", "Version"], | ||
swiftSettings: [ | ||
.unsafeFlags([ | ||
"-F", "/System/Library/PrivateFrameworks", | ||
"-I", "Sources/PrivateFrameworks/CommerceKit", | ||
"-I", "Sources/PrivateFrameworks/StoreFoundation", | ||
]), | ||
], | ||
linkerSettings: [ | ||
.linkedFramework("CommerceKit"), | ||
.linkedFramework("StoreFoundation"), | ||
.unsafeFlags(["-F", "/System/Library/PrivateFrameworks"]), | ||
] | ||
), | ||
.testTarget( | ||
name: "MasKitTests", | ||
dependencies: ["MasKit", "Nimble", "Quick"], | ||
resources: [.copy("JSON")], | ||
swiftSettings: [ | ||
.unsafeFlags([ | ||
"-F", "/System/Library/PrivateFrameworks", | ||
"-I", "Sources/PrivateFrameworks/CommerceKit", | ||
"-I", "Sources/PrivateFrameworks/StoreFoundation", | ||
]), | ||
] | ||
), | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) |
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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
// Copyright © 2019 mas-cli. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Nimble | ||
import Quick | ||
|
||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
// Copyright © 2018 mas-cli. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Nimble | ||
import Quick | ||
|
||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
// Copyright © 2020 mas-cli. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Nimble | ||
import Quick | ||
|
||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
// Copyright © 2020 mas-cli. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Nimble | ||
import Quick | ||
|
||
|
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
// | ||
|
||
import Foundation | ||
|
||
@testable import MasKit | ||
|
||
/// Mock NetworkSession for testing. | ||
|
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