Skip to content
Open
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
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import PackageDescription
let package = Package(
name: "skip-kit",
defaultLocalization: "en",
platforms: [.iOS(.v16), .macOS(.v14), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
products: [
.library(name: "SkipKit", targets: ["SkipKit"]),
],
Expand Down
2 changes: 1 addition & 1 deletion Sources/SkipKit/AppInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private let _deviceModel: String = {
uname(&systemInfo)
return withUnsafePointer(to: &systemInfo.machine) {
$0.withMemoryRebound(to: CChar.self, capacity: 1) {
String(validatingUTF8: $0) ?? "Unknown"
String(validatingCString: $0) ?? "Unknown"
}
}
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/SkipKit/DeviceInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public final class DeviceInfo {
uname(&systemInfo)
return withUnsafePointer(to: &systemInfo.machine) {
$0.withMemoryRebound(to: CChar.self, capacity: 1) {
String(validatingUTF8: $0) ?? "Unknown"
String(validatingCString: $0) ?? "Unknown"
}
}
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/SkipKit/WebBrowser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ extension View {
}
#elseif os(macOS)
// macOS does not have SFSafariViewController; fall back to system browser
self.onChange(of: isPresented.wrappedValue) { oldPresented, newPresented in
self.onChange(of: isPresented.wrappedValue) { newPresented in
if newPresented {
NSWorkspace.shared.open(url)
isPresented.wrappedValue = false
Expand Down
2 changes: 1 addition & 1 deletion Tests/SkipKitTests/SkipKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class SkipKitTests: XCTestCase {

var addedKeys = Set<UUID>()
// Cache has no `count` accessor, so we brute-force check for the existance of every key we have added
var cacheCount = { addedKeys.compactMap({ cache[$0] }).count }
let cacheCount = { addedKeys.compactMap({ cache[$0] }).count }

@discardableResult func addData(size: Int) -> UUID {
let key = UUID()
Expand Down
Loading