-
Notifications
You must be signed in to change notification settings - Fork 6
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 #515 from ably/move-LogParser-example-app
Move the LogParser example app outside of the library’s directory
- Loading branch information
Showing
17 changed files
with
73 additions
and
53 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,25 @@ | ||
// swift-tools-version: 5.7 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "LogParser", | ||
platforms: [ | ||
.macOS(.v12) | ||
], | ||
products: [ | ||
.library( | ||
name: "LogParser", | ||
targets: ["LogParser"]) | ||
], | ||
targets: [ | ||
.target( | ||
name: "LogParser" | ||
), | ||
.testTarget( | ||
name: "LogParserTests", | ||
dependencies: ["LogParser"] | ||
) | ||
] | ||
) |
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,5 @@ | ||
# LogParser | ||
|
||
A package for parsing the log output of the Ably Asset Tracking Swift SDKs and their example apps. | ||
|
||
There is an example command-line app in [`../LogParserExample`](../LogParserExample) which demonstrates how to use the library. |
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.
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,24 @@ | ||
// swift-tools-version: 5.7 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "LogParserExample", | ||
platforms: [ | ||
.macOS(.v12) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0"), | ||
.package(path: "../LogParser") | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "LogParserExample", | ||
dependencies: [ | ||
.product(name: "LogParser", package: "LogParser"), | ||
.product(name: "ArgumentParser", package: "swift-argument-parser") | ||
] | ||
), | ||
] | ||
) |
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,9 @@ | ||
# LogParserExample | ||
|
||
An example command-line app which demonstrates how to use the [LogParser library](../LogParser). | ||
|
||
You can run it on an example log file by running the following command from the current directory: | ||
|
||
```bash | ||
swift run LogParserExample example.txt | ||
``` |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
# Developer tools for the Ably Asset Tracking Swift SDKs | ||
|
||
This directory contains tooling intended to be used by developers working on the Ably Asset Tracking Swift SDKs. | ||
|
||
It currently just contains the [`Library`](Library) directory, which contains the [`LogParser` library](Library/LogParser) for parsing logs emitted by these SDKs, as well as [an example app for the `LogParser` library](Library/LogParserExample). |