generated from brightdigit/EggSeed
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #8 from brightdigit/release/0.1.0
Release/0.1.0
- Loading branch information
Showing
49 changed files
with
805 additions
and
62 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 |
---|---|---|
|
@@ -29,13 +29,9 @@ jobs: | |
- name: Build Documentation | ||
run: sourcedocs generate --spm-module ${{ env.PACKAGE_NAME }} | ||
- name: Verify Valid Swift Package | ||
run: swift package dump-package | jq -e ".products | length > 0" | ||
run: curl -s https://raw.githubusercontent.com/daveverwer/SwiftPMLibrary/master/script.sh | bash -s -- mine | ||
- name: CocoaPods Action | ||
run: pod lib lint | ||
- name: Upload to CodeCov.io | ||
run: bash <(curl https://codecov.io/bash) -F github -F macos -n ${{ github.sha }} | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
|
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,5 +1,4 @@ | ||
brew "swiftformat" | ||
brew "swiftlint" | ||
brew "sourcedocs" | ||
brew "carthage" | ||
brew "jq" | ||
brew "carthage" |
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
60 changes: 60 additions & 0 deletions
60
Documentation/Reference/classes/AnalyticsHitParserMessage.md
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,60 @@ | ||
**CLASS** | ||
|
||
# `AnalyticsHitParserMessage` | ||
|
||
```swift | ||
public class AnalyticsHitParserMessage: Codable, Equatable | ||
``` | ||
|
||
## Properties | ||
### `messageType` | ||
|
||
```swift | ||
public let messageType: AnalyticsHitParserMessageType | ||
``` | ||
|
||
> Type of message. | ||
|
||
### `description` | ||
|
||
```swift | ||
public let description: String | ||
``` | ||
|
||
> Additional details or steps to fix the validation issue. | ||
|
||
### `messageCode` | ||
|
||
```swift | ||
public let messageCode: String? | ||
``` | ||
|
||
> The message code of the issue. | ||
|
||
### `parameter` | ||
|
||
```swift | ||
public let parameter: String? | ||
``` | ||
|
||
> The parameter (if applicable) causing the validation issue. | ||
|
||
## Methods | ||
### `==(_:_:)` | ||
|
||
```swift | ||
public static func == (lhs: AnalyticsHitParserMessage, rhs: AnalyticsHitParserMessage) -> Bool | ||
``` | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| lhs | A value to compare. | | ||
| rhs | Another value to compare. | | ||
|
||
### `init(messageType:description:messageCode:parameter:)` | ||
|
||
```swift | ||
public init(messageType: AnalyticsHitParserMessageType, description: String, messageCode: String? = nil, parameter: String? = nil) | ||
``` |
28 changes: 28 additions & 0 deletions
28
Documentation/Reference/enums/AnalyticsHitParserMessageType.md
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,28 @@ | ||
**ENUM** | ||
|
||
# `AnalyticsHitParserMessageType` | ||
|
||
```swift | ||
public enum AnalyticsHitParserMessageType: String, Codable, CaseIterable | ||
``` | ||
|
||
> The message type of each `AnalyticsHitParserMessage`. | ||
|
||
## Cases | ||
### `info` | ||
|
||
```swift | ||
case info = "INFO" | ||
``` | ||
|
||
### `warn` | ||
|
||
```swift | ||
case warn = "WARN" | ||
``` | ||
|
||
### `error` | ||
|
||
```swift | ||
case error = "ERROR" | ||
``` |
10 changes: 10 additions & 0 deletions
10
Documentation/Reference/extensions/AnalyticsResultDecoderProtocol.md
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,10 @@ | ||
**EXTENSION** | ||
|
||
# `AnalyticsResultDecoderProtocol` | ||
|
||
## Methods | ||
### `decode(_:_:)` | ||
|
||
```swift | ||
func decode(_ data: Data?, _ error: Error?) -> AnalyticsResult | ||
``` |
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
14 changes: 14 additions & 0 deletions
14
Documentation/Reference/protocols/AnalyticsResultDecoderProtocol.md
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,14 @@ | ||
**PROTOCOL** | ||
|
||
# `AnalyticsResultDecoderProtocol` | ||
|
||
```swift | ||
public protocol AnalyticsResultDecoderProtocol | ||
``` | ||
|
||
## Methods | ||
### `decode(_:)` | ||
|
||
```swift | ||
func decode(_ data: Data) -> AnalyticsResult | ||
``` |
7 changes: 7 additions & 0 deletions
7
Documentation/Reference/protocols/AnalyticsValidationHitProtocol.md
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,7 @@ | ||
**PROTOCOL** | ||
|
||
# `AnalyticsValidationHitProtocol` | ||
|
||
```swift | ||
public protocol AnalyticsValidationHitProtocol | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**STRUCT** | ||
|
||
# `AnalyticsHitParserMessage` | ||
|
||
```swift | ||
public struct AnalyticsHitParserMessage: Codable | ||
``` |
41 changes: 41 additions & 0 deletions
41
Documentation/Reference/structs/AnalyticsHitParsingResult.md
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,41 @@ | ||
**STRUCT** | ||
|
||
# `AnalyticsHitParsingResult` | ||
|
||
```swift | ||
public struct AnalyticsHitParsingResult: Codable, Equatable | ||
``` | ||
|
||
> Result from a hit sent in the original request. | ||
|
||
## Properties | ||
### `valid` | ||
|
||
```swift | ||
public let valid: Bool | ||
``` | ||
|
||
> True for valid hits, false for invalid hits. | ||
|
||
### `hit` | ||
|
||
```swift | ||
public let hit: String | ||
``` | ||
|
||
> A string containing the path of the request as well as its method and protocol. | ||
|
||
### `parserMessage` | ||
|
||
```swift | ||
public let parserMessage: [AnalyticsHitParserMessage] | ||
``` | ||
|
||
> A list of parser messages. If the hit is valid, this array will be empty. | ||
|
||
## Methods | ||
### `init(valid:hit:parserMessage:)` | ||
|
||
```swift | ||
public init(valid: Bool, hit: String, parserMessage: [AnalyticsHitParserMessage]) | ||
``` |
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,7 @@ | ||
**STRUCT** | ||
|
||
# `AnalyticsHitPath` | ||
|
||
```swift | ||
public struct AnalyticsHitPath | ||
``` |
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,31 @@ | ||
**STRUCT** | ||
|
||
# `AnalyticsResultDecoder` | ||
|
||
```swift | ||
public struct AnalyticsResultDecoder: AnalyticsResultDecoderProtocol | ||
``` | ||
|
||
> Decodes the data from the `URLSession`data task into an `AnalyticsResult`. | ||
|
||
## Methods | ||
### `init()` | ||
|
||
```swift | ||
public init() | ||
``` | ||
|
||
### `decode(_:)` | ||
|
||
```swift | ||
public func decode(_ data: Data) -> AnalyticsResult | ||
``` | ||
|
||
> Decodes the data from `URLSession` into an `AnalyticsResult`. | ||
> - Parameter data: The `URLSession` data task. | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| data | The `URLSession` data task. | |
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
Oops, something went wrong.