Skip to content

[SDK] Add overlay shims for ClockKit framework #25444

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

Merged
merged 1 commit into from
Jun 17, 2019
Merged
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: 2 additions & 0 deletions stdlib/public/SwiftShims/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ set(sources
NSTimeZoneShims.h
NSUndoManagerShims.h

ClockKitOverlayShims.h

module.modulemap
)
set(output_dir "${SWIFTLIB_DIR}/shims")
Expand Down
23 changes: 23 additions & 0 deletions stdlib/public/SwiftShims/ClockKitOverlayShims.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//===--- ClockKitOverlayShims.h --------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

#ifndef SWIFT_STDLIB_SHIMS_CLOCKKITOVERLAY_H
#define SWIFT_STDLIB_SHIMS_CLOCKKITOVERLAY_H

@import ClockKit;

@interface CLKTextProvider (OverlaySupport)
+ (CLKTextProvider *)textProviderWithFormat:(NSString *)format arguments:(va_list)arguments API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(macos, tvos, ios);
@end

// SWIFT_STDLIB_SHIMS_CLOCKKITOVERLAY_H
#endif
4 changes: 4 additions & 0 deletions stdlib/public/SwiftShims/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ module _SwiftFoundationOverlayShims {
module _SwiftNetworkOverlayShims {
header "NetworkOverlayShims.h"
}

module _SwiftClockKitOverlayShims {
header "ClockKitOverlayShims.h"
}