Skip to content

Conversation

naykutguven
Copy link
Contributor

This pull request removes the @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *) availability annotations across the codebase since the minimum deployment targets are already set as macOS 13 and iOS 16 in Package.swift.

@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 07:28
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request removes redundant @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *) availability annotations from the WhisperKit codebase since the minimum deployment targets are already set in Package.swift to macOS 13 and iOS 16.

  • Removes over 40 redundant availability checks from classes, structs, protocols, functions, and extensions
  • Affects test files, CLI components, and core library code
  • Maintains existing availability checks only for deprecated functions which still have meaningful availability restrictions

Reviewed Changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Tests/WhisperKitTests/UnitTests.swift Removes availability check from test class
Tests/WhisperKitTests/TestUtils.swift Removes availability checks from utility extensions
Tests/WhisperKitTests/RegressionTests.swift Removes availability check from regression test class
Tests/WhisperKitTests/RegressionTestUtils.swift Removes availability checks from test utility classes
Tests/WhisperKitTests/FunctionalTests.swift Removes availability check from functional test class
Sources/WhisperKitCLI/*.swift Removes availability checks from CLI command structures
Sources/WhisperKit/Utilities/*.swift Removes availability checks from utility functions and extensions
Sources/WhisperKit/Core/*.swift Removes availability checks from core library classes and protocols

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@naykutguven naykutguven force-pushed the remove-redundant-os-availability-checks branch from 2279447 to 03a1aee Compare September 24, 2025 20:29
@naykutguven naykutguven changed the title Remove redundant availability checks Set watchOS and visionOS minimum deployment targets in Package manifest instead Sep 24, 2025
@naykutguven naykutguven force-pushed the remove-redundant-os-availability-checks branch from 03a1aee to 341279b Compare September 25, 2025 07:53
@naykutguven naykutguven force-pushed the remove-redundant-os-availability-checks branch from 341279b to f3773ea Compare September 26, 2025 20:19
@naykutguven
Copy link
Contributor Author

Hey @ZachNagengast wdyt about this one?

Copy link
Contributor

@ZachNagengast ZachNagengast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, nice 👍

@naykutguven
Copy link
Contributor Author

Makes sense, nice 👍

awesome, thank you! ready when you are 👍

@ZachNagengast ZachNagengast merged commit 0926e52 into argmaxinc:main Oct 3, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants