Skip to content

Commit 29d9471

Browse files
committed
Set platform requirements
1 parent 890d634 commit 29d9471

File tree

9 files changed

+19
-33
lines changed

9 files changed

+19
-33
lines changed

MarkdownUI.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import PackageDescription
55
let package = Package(
66
name: "MarkdownUI",
77
platforms: [
8-
.macOS(.v10_12),
9-
.iOS(.v11),
10-
.tvOS(.v11),
11-
.watchOS(.v3),
8+
.macOS(.v10_15),
9+
.iOS(.v13),
10+
.tvOS(.v13),
11+
.watchOS(.v6),
1212
],
1313
products: [
1414
.library(
@@ -25,18 +25,18 @@ let package = Package(
2525
.package(
2626
name: "AttributedText",
2727
url: "https://github.com/gonzalezreal/AttributedText",
28-
from: "0.3.0"
28+
from: "0.3.1"
2929
),
3030
.package(
3131
name: "NetworkImage",
3232
url: "https://github.com/gonzalezreal/NetworkImage",
33-
from: "3.1.0"
33+
from: "3.1.1"
3434
),
35-
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.1.2"),
35+
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.5.2"),
3636
.package(
3737
name: "SnapshotTesting",
3838
url: "https://github.com/pointfreeco/swift-snapshot-testing",
39-
from: "1.8.2"
39+
from: "1.9.0"
4040
),
4141
],
4242
targets: [

Sources/MarkdownUI/AppKit/NSFont+Additions.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if os(macOS)
2-
32
import AppKit
43

54
public extension NSFont {
@@ -76,5 +75,4 @@
7675
addingSymbolicTraits(.italic)
7776
}
7877
}
79-
8078
#endif

Sources/MarkdownUI/Shared/ImageAttachment.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if !os(watchOS)
2-
32
#if os(macOS)
43
import AppKit
54
#elseif canImport(UIKit)
@@ -53,5 +52,4 @@
5352
}
5453
#endif
5554
}
56-
5755
#endif

Sources/MarkdownUI/Shared/Markdown+Environment.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if canImport(SwiftUI) && !os(watchOS)
2-
32
import CombineSchedulers
43
import SwiftUI
54

@@ -50,5 +49,4 @@
5049
private struct MarkdownSchedulerKey: EnvironmentKey {
5150
static let defaultValue: AnySchedulerOf<DispatchQueue> = .main
5251
}
53-
5452
#endif

Sources/MarkdownUI/Shared/Markdown.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if canImport(SwiftUI) && !os(watchOS)
2-
1+
#if !os(watchOS)
32
import AttributedText
43
import CommonMark
54
import NetworkImage
@@ -122,5 +121,4 @@
122121
}
123122
}
124123
}
125-
126124
#endif

Sources/MarkdownUI/Shared/MarkdownStore.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if canImport(Combine) && !os(watchOS)
2-
1+
#if !os(watchOS)
32
import Combine
43
import CombineSchedulers
54
import CommonMark
@@ -113,5 +112,4 @@
113112
.eraseToAnyPublisher()
114113
}
115114
}
116-
117115
#endif

Sources/MarkdownUI/UIKit/UIFont+Additions.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if canImport(UIKit)
2-
32
import UIKit
43

54
public extension UIFont {
@@ -90,5 +89,4 @@
9089
addingSymbolicTraits(.traitItalic)
9190
}
9291
}
93-
9492
#endif

Tests/MarkdownUITests/MarkdownTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if canImport(SwiftUI) && !os(macOS) && !targetEnvironment(macCatalyst)
2-
1+
#if !os(macOS) && !targetEnvironment(macCatalyst)
32
import Combine
43
import SnapshotTesting
54
import SwiftUI
@@ -355,5 +354,4 @@
355354
assertSnapshot(matching: view, as: .image(layout: layout), named: platformName)
356355
}
357356
}
358-
359357
#endif

0 commit comments

Comments
 (0)