[webkit-changes] [WebKit/WebKit] 849790: [Cocoa] Fix warnings in WebKitSwift

aestes noreply at github.com
Tue Sep 12 15:02:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 849790f00ff02998620f01e739055d799b3a4a9a
      https://github.com/WebKit/WebKit/commit/849790f00ff02998620f01e739055d799b3a4a9a
  Author: Andy Estes <aestes at apple.com>
  Date:   2023-09-12 (Tue, 12 Sep 2023)

  Changed paths:
    M Source/WebKit/UIProcess/Cocoa/GroupActivities/WKGroupSession.swift

  Log Message:
  -----------
  [Cocoa] Fix warnings in WebKitSwift
https://bugs.webkit.org/show_bug.cgi?id=261389
rdar://115260515

Reviewed by Richard Robinson.

- Added availability annotations to public types.
- Replaced deprecated Task APIs with modern replacements.
- Removed the unnecessary WK prefix from Swift types.

* Source/WebKit/UIProcess/Cocoa/GroupActivities/WKGroupSession.swift:
(GroupSessionWrapper.activityWrapper):
(GroupSessionWrapper.activity):
(GroupSessionWrapper.wrapperSessionState(_:)):
(GroupSessionWrapper.state):
(GroupSessionWrapper.newActivityCallback):
(GroupSessionWrapper.stateChangedCallback):
(GroupSessionWrapper.activityChanged(_:)):
(GroupSessionWrapper.stateChanged(_:)):
(GroupSessionObserver.newSessionCallback):
(GroupSessionObserver.incomingSessionsTask):
(GroupSessionObserver.receivedSession(_:)):
(WKURLActivityWrapper.urlActivity): Deleted.
(WKURLActivityWrapper.fallbackURL): Deleted.
(WKGroupSessionWrapper.groupSession): Deleted.
(WKGroupSessionWrapper.cancellables): Deleted.
(WKGroupSessionWrapper.activity): Deleted.
(WKGroupSessionWrapper.uuid): Deleted.
(WKGroupSessionWrapper.wrapperSessionState(_:)): Deleted.
(WKGroupSessionWrapper.state): Deleted.
(WKGroupSessionWrapper.newActivityCallback): Deleted.
(WKGroupSessionWrapper.stateChangedCallback): Deleted.
(WKGroupSessionWrapper.join): Deleted.
(WKGroupSessionWrapper.leave): Deleted.
(WKGroupSessionWrapper.coordinate(_:)): Deleted.
(WKGroupSessionWrapper.activityChanged(_:)): Deleted.
(WKGroupSessionWrapper.stateChanged(_:)): Deleted.
(WKGroupSessionObserver.newSessionCallback): Deleted.
(WKGroupSessionObserver.incomingSessionsTask): Deleted.
(WKGroupSessionObserver.receivedSession(_:)): Deleted.

Canonical link: https://commits.webkit.org/267921@main




More information about the webkit-changes mailing list