Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

import PackageDescription

#if compiler(>=5.7)
let swiftMarkdownVersion = "release/5.7"
#elseif compiler(>=5.6)
let swiftMarkdownVersion = "release/5.6"
#else
fatalError("This version of MarkCodable requires Swift >= 5.6.")
#endif

let package = Package(
name: "MarkCodable",
platforms: [
Expand All @@ -33,7 +25,8 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-markdown.git", branch: swiftMarkdownVersion),
// Using a fork for the faux semantic version.
.package(url: "https://github.com/markcodable/swift-markdown.git", exact: "0.100.1"),
],
targets: [
.executableTarget(
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ print(users[2]) // [userID: 2, name: Gui]

Use the package directly in Xcode or via SwiftPM.

For the time being the package depends on `swift-markdown` which does not support semantic versioning and thus `MarkCodable` also doesn't support it: [issue #15](https://github.com/icanzilb/MarkCodable/issues/15).

```swift
dependencies: [
.package(url: "https://github.com/icanzilb/MarkCodable", branch: "main"),
.package(url: "https://github.com/icanzilb/MarkCodable", from: "0.6.0"),
]
```

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Decoder/MarkDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/31/22.
//
// See the LICENSE file for this code's license information.

import Foundation
import Markdown
Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Decoder/MarkDecoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/31/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Decoder/MarkKeyedDecoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/31/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Decoder/MarkSingleValueDecoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/3/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Decoder/MarkUnkeyedDecoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/3/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Encoder/MarkEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/31/22.
//
// See the LICENSE file for this code's license information.

import Foundation
import Markdown
Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Encoder/MarkEncoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/31/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Encoder/MarkKeyedEncoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/30/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Encoder/MarkSingleValueEncoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/2/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/Encoder/MarkUnkeyedEncoding.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/2/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkCodable/MarkCodable.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/1/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Sources/MarkTestApp/main.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 8/29/22.
//
// See the LICENSE file for this code's license information.

import Foundation
import MarkCodable
Expand Down
2 changes: 2 additions & 0 deletions Tests/MarkCodableTests/MarkCoderTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See the LICENSE file for this code's license information.

import XCTest
@testable import MarkCodable

Expand Down
7 changes: 1 addition & 6 deletions Tests/MarkCodableTests/Utility/TestData.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/1/22.
//
// See the LICENSE file for this code's license information.

import Foundation

Expand Down
7 changes: 1 addition & 6 deletions Tests/MarkCodableTests/Utility/TestModels.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// File.swift
//
//
// Created by Marin Todorov on 9/1/22.
//
// See the LICENSE file for this code's license information.

import Foundation
import MarkCodable
Expand Down