Skip to content

Commit 72707c3

Browse files
committed
Expose as SPM Library
1 parent 1757eb8 commit 72707c3

File tree

5 files changed

+1204
-13
lines changed

5 files changed

+1204
-13
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ DerivedData/
1212

1313
.vscode
1414

15-
## Generated files created by rake gen_resources
16-
Sources/XCLogParser/generated/
15+
# Xcode 11
16+
.swiftpm/

Package.resolved

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repositoryURL": "https://github.com/Carthage/Commandant.git",
77
"state": {
88
"branch": null,
9-
"revision": "2cd0210f897fe46c6ce42f52ccfa72b3bbb621a0",
10-
"version": "0.16.0"
9+
"revision": "ab68611013dec67413628ac87c1f29e8427bc8e4",
10+
"version": "0.17.0"
1111
}
1212
},
1313
{
@@ -33,17 +33,17 @@
3333
"repositoryURL": "https://github.com/Quick/Nimble.git",
3434
"state": {
3535
"branch": null,
36-
"revision": "43304bf2b1579fd555f2fdd51742771c1e4f2b98",
37-
"version": "8.0.1"
36+
"revision": "f8657642dfdec9973efc79cc68bcef43a653a2bc",
37+
"version": "8.0.2"
3838
}
3939
},
4040
{
4141
"package": "Path.swift",
4242
"repositoryURL": "https://github.com/mxcl/Path.swift.git",
4343
"state": {
4444
"branch": null,
45-
"revision": "f324b4a562ca421fd2905414a10fb0fc91d58b67",
46-
"version": "0.16.2"
45+
"revision": "dac007e907a4f4c565cfdc55a9ce148a761a11d5",
46+
"version": "0.16.3"
4747
}
4848
},
4949
{
@@ -69,8 +69,8 @@
6969
"repositoryURL": "https://github.com/antitypical/Result.git",
7070
"state": {
7171
"branch": null,
72-
"revision": "2ca499ba456795616fbc471561ff1d963e6ae160",
73-
"version": "4.1.0"
72+
"revision": "12920a5c2595926efab9274d6003e29f503dbb66",
73+
"version": "5.0.0"
7474
}
7575
},
7676
{

Package.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ import PackageDescription
66
let package = Package(
77
name: "XCLogParser",
88
products: [
9-
.executable(name: "xclogparser", targets: ["XCLogParserApp"])
9+
.executable(name: "xclogparser", targets: ["XCLogParserApp"]),
10+
.library(name: "XCLogParser", targets: ["XCLogParser"])
1011
],
1112
dependencies: [
1213
.package(url: "https://github.com/1024jp/GzipSwift", from: "4.0.4"),
1314
.package(url: "https://github.com/stencilproject/Stencil.git", from: "0.13.1"),
1415
.package(url: "https://github.com/Carthage/Commandant.git", from: "0.16.0"),
1516
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.0.0"),
1617
.package(url: "https://github.com/mxcl/Path.swift.git", from: "0.13.0"),
18+
.package(url: "https://github.com/antitypical/Result.git", from: "5.0.0"),
1719
],
1820
targets: [
1921
.target(
@@ -26,7 +28,7 @@ let package = Package(
2628
),
2729
.target(
2830
name: "XCLogParserApp",
29-
dependencies: ["XCLogParser", "Commandant"]
31+
dependencies: ["XCLogParser", "Commandant", "Result"]
3032
),
3133
.testTarget(
3234
name: "XCLogParserTests",

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ INSTALLATION_PREFIX = '/usr/local'.freeze
1313

1414

1515
desc 'Build XCLogParser'
16-
task :build, [:configuration, :sdks, :is_archive] => ['gen_resources'] do |task, args|
16+
task :build, [:configuration, :sdks, :is_archive] do |task, args|
1717
# Set task defaults
1818
args.with_defaults(:configuration => 'debug', :sdks => ['macos'])
1919

0 commit comments

Comments
 (0)