Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 861609076b57914584d2fd237a98c3d471ba65de
https://github.com/WebKit/WebKit/commit/861609076b57914584d2fd237a98c3d471ba65de
Author: Alex Christensen <[email protected]>
Date: 2025-10-27 (Mon, 27 Oct 2025)
Changed paths:
M Source/WebKit/Scripts/generate-swift-availability-macros
M Source/WebKit/Scripts/postprocess-header-rule
M Source/WebKit/UIProcess/API/Cocoa/WebKitSwiftOverlay.swift
Log Message:
-----------
Enable WebKitSwiftOverlay on internal watchOS and tvOS builds
https://bugs.webkit.org/show_bug.cgi?id=300338
rdar://161606521
Reviewed by Richard Robinson.
There are still issues using the open source watchOS and tvOS SDKs,
but internal SDKs don't have that same issue. Enable for internal builds.
Swift requires that SPI declarations have an availability version in
order to use contemporary language features. Introduce support for
WK_WATCHOS_TBA and WK_TVOS_TBA availability versions and add
@_spi_available attributes to these declarations.
For completeness, also support these availability versions in ObjC
headers, although WebKit does not have precedent for using SPI_AVAILABLE
on SPI-only platforms.
* Source/WebKit/Scripts/generate-swift-availability-macros:
* Source/WebKit/Scripts/postprocess-header-rule:
* Source/WebKit/UIProcess/API/Cocoa/WebKitSwiftOverlay.swift:
Co-authored-by: Elliott Williams <[email protected]>
Canonical link: https://commits.webkit.org/302201@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications