Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Port Sources/Foundation/NSObjCRuntime.swift #4918

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 13 additions & 9 deletions Sources/Foundation/NSObjCRuntime.swift
Expand Up @@ -264,7 +264,6 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
(ProcessInfo.self, "NSProcessInfo"),
(Port.self, "NSPort"),
(PortMessage.self, "NSPortMessage"),
(SocketPort.self, "NSSocketPort"),
(Bundle.self, "NSBundle"),
(ByteCountFormatter.self, "NSByteCountFormatter"),
(Host.self, "NSHost"),
Expand All @@ -279,20 +278,13 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
(JSONSerialization.self, "NSJSONSerialization"),
(LengthFormatter.self, "NSLengthFormatter"),
(MassFormatter.self, "NSMassFormatter"),
(NotificationQueue.self, "NSNotificationQueue"),
(NumberFormatter.self, "NSNumberFormatter"),
(Operation.self, "NSOperation"),
(OperationQueue.self, "NSOperationQueue"),
(OutputStream.self, "NSOutputStream"),
(PersonNameComponentsFormatter.self, "NSPersonNameComponentsFormatter"),
(Pipe.self, "NSPipe"),
(Progress.self, "NSProgress"),
(PropertyListSerialization.self, "NSPropertyListSerialization"),
(RunLoop.self, "NSRunLoop"),
(Scanner.self, "NSScanner"),
(Stream.self, "NSStream"),
(Thread.self, "NSThread"),
(Timer.self, "NSTimer"),
(UserDefaults.self, "NSUserDefaults"),
(FileManager.DirectoryEnumerator.self, "NSDirectoryEnumerator"),
(Dimension.self, "NSDimension"),
Expand Down Expand Up @@ -322,8 +314,20 @@ internal let _NSClassesRenamedByObjCAPINotes: [(class: AnyClass, objCName: Strin
(UnitVolume.self, "NSUnitVolume"),
(UnitTemperature.self, "NSUnitTemperature"),
]
#if !(os(iOS) || os(Android))
#if !(os(iOS) || os(Android) || os(WASI))
map.append((Process.self, "NSTask"))
#endif
#if !os(WASI)
map += [
(NotificationQueue.self, "NSNotificationQueue"),
(Operation.self, "NSOperation"),
(OperationQueue.self, "NSOperationQueue"),
(SocketPort.self, "NSSocketPort"),
(Progress.self, "NSProgress"),
(RunLoop.self, "NSRunLoop"),
(Thread.self, "NSThread"),
(Timer.self, "NSTimer"),
]
#endif
return map
}()
Expand Down