Skip to content

Commit da0aa33

Browse files
committed
Remove tvOS 14 support
1 parent 333edf3 commit da0aa33

22 files changed

+49
-55
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## WIP
44

55
- `ConsoleView` no longer supports iOS 14, but the packge can still be installed in projects that require iOS 14
6+
- Increase minimum deployment target on tvOS 14.0 → 15.0
67

78
## Pulse 3.7.0
89

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let package = Package(
66
name: "Pulse",
77
platforms: [
88
.iOS(.v14),
9-
.tvOS(.v14),
9+
.tvOS(.v15),
1010
.macOS(.v12),
1111
.watchOS(.v8)
1212
],

Pulse.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,7 @@
24842484
SUPPORTS_MACCATALYST = YES;
24852485
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
24862486
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
2487-
TVOS_DEPLOYMENT_TARGET = 14.0;
2487+
TVOS_DEPLOYMENT_TARGET = 15.0;
24882488
WATCHOS_DEPLOYMENT_TARGET = 8.0;
24892489
};
24902490
name = Debug;
@@ -2534,7 +2534,7 @@
25342534
SUPPORTS_MACCATALYST = YES;
25352535
SWIFT_COMPILATION_MODE = wholemodule;
25362536
SWIFT_OPTIMIZATION_LEVEL = "-O";
2537-
TVOS_DEPLOYMENT_TARGET = 14.0;
2537+
TVOS_DEPLOYMENT_TARGET = 15.0;
25382538
VALIDATE_PRODUCT = YES;
25392539
WATCHOS_DEPLOYMENT_TARGET = 8.0;
25402540
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ The best way to start using Pulse is with the [**Getting Started**](https://kean
3434

3535
| Pulse | Swift | Xcode | Platforms |
3636
|------------|-----------|-------------|----------------------------------------------|
37+
| Pulse 4.0 | Swift 5.7 | Xcode 14.1 | iOS 14.0, tvOS 15.0, watchOS 8.0, macOS 12.0 |
3738
| Pulse 3.0 | Swift 5.7 | Xcode 14.1 | iOS 14.0, tvOS 14.0, watchOS 8.0, macOS 12.0 |
38-
| Pulse 2.0 | Swift 5.6 | Xcode 13.3 | iOS 13.0, tvOS 13.0, watchOS 7.0, macOS 11.0 |
3939

4040
## License
4141

Sources/PulseUI/Extensions/Foundation+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension Character {
1616
}
1717
}
1818

19-
@available(iOS 15, tvOS 15, *)
19+
@available(iOS 15, *)
2020
extension AttributedString {
2121
init(_ string: String, _ configure: (inout AttributeContainer) -> Void) {
2222
var attributes = AttributeContainer()

Sources/PulseUI/Features/Console/ConsoleView-tvos.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
//
33
// Copyright (c) 2020–2023 Alexander Grebenyuk (github.com/kean).
44

5+
#if os(tvOS)
6+
57
import SwiftUI
68
import CoreData
79
import Pulse
810
import Combine
911

10-
#if os(tvOS)
11-
1212
public struct ConsoleView: View {
1313
@StateObject private var environment: ConsoleEnvironment
1414
@StateObject private var listViewModel: ConsoleListViewModel
@@ -22,7 +22,7 @@ public struct ConsoleView: View {
2222
GeometryReader { proxy in
2323
HStack {
2424
List {
25-
ConsoleListContentView(viewModel: listViewModel)
25+
ConsoleListContentView()
2626
}
2727

2828
// TODO: Not sure it's valid
@@ -38,6 +38,7 @@ public struct ConsoleView: View {
3838
.onDisappear { listViewModel.isViewVisible = false }
3939
}
4040
.injecting(environment)
41+
.environmentObject(listViewModel)
4142
}
4243
}
4344

Sources/PulseUI/Features/Console/ConsoleView-watchos.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public struct ConsoleView: View {
1919
public var body: some View {
2020
List {
2121
ConsoleToolbarView(environment: environment)
22-
ConsoleListContentView(viewModel: listViewModel)
22+
ConsoleListContentView()
2323
}
2424
.navigationTitle(environment.title)
2525
.onAppear { listViewModel.isViewVisible = true }
@@ -32,6 +32,7 @@ public struct ConsoleView: View {
3232
}
3333
}
3434
.injecting(environment)
35+
.environmentObject(listViewModel)
3536
}
3637
}
3738

Sources/PulseUI/Features/Console/List/ConsoleListPinsSectionView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Pulse
99
import Combine
1010
import SwiftUI
1111

12-
@available(iOS 15, tvOS 15, *)
12+
@available(iOS 15, *)
1313
struct ConsoleListPinsSectionView: View {
1414
@ObservedObject var viewModel: ConsoleListViewModel
1515

Sources/PulseUI/Features/Console/Views/ConsoleEntityCell.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private struct _ConsoleTaskCell: View {
129129
}
130130

131131
#if os(iOS) || os(macOS)
132-
@available(iOS 15, tvOS 15, *)
132+
@available(iOS 15, *)
133133
private struct ConsoleMessageCellPreview: View {
134134
let message: LoggerMessageEntity
135135

@@ -140,7 +140,7 @@ private struct ConsoleMessageCellPreview: View {
140140
}
141141
}
142142

143-
@available(iOS 15, tvOS 15, *)
143+
@available(iOS 15, *)
144144
private struct ConsoleTaskCellPreview: View {
145145
let task: NetworkTaskEntity
146146

@@ -151,7 +151,7 @@ private struct ConsoleTaskCellPreview: View {
151151
}
152152
}
153153

154-
@available(iOS 15, tvOS 15, *)
154+
@available(iOS 15, *)
155155
private struct TextViewPreview: View {
156156
let string: NSAttributedString
157157

Sources/PulseUI/Features/Console/Views/ConsoleMessageCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Pulse
77
import CoreData
88
import Combine
99

10-
@available(iOS 15, tvOS 15, *)
10+
@available(iOS 15, *)
1111
struct ConsoleMessageCell: View {
1212
let message: LoggerMessageEntity
1313
var isDisclosureNeeded = false
@@ -115,7 +115,7 @@ extension Color {
115115
}
116116

117117
#if DEBUG
118-
@available(iOS 15, tvOS 15, *)
118+
@available(iOS 15, *)
119119
struct ConsoleMessageCell_Previews: PreviewProvider {
120120
static var previews: some View {
121121
ConsoleMessageCell(message: try! LoggerStore.mock.allMessages()[0])

0 commit comments

Comments
 (0)