Skip to content

Commit 979cc66

Browse files
authored
Merge pull request #25553 from lorentey/ClockKit-overlay-5.1
[5.1][SDK] Add overlay shims for ClockKit framework
2 parents a11fe51 + 57d006a commit 979cc66

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

stdlib/public/SwiftShims/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ set(sources
4949
NSTimeZoneShims.h
5050
NSUndoManagerShims.h
5151

52+
ClockKitOverlayShims.h
53+
5254
module.modulemap
5355
)
5456
set(output_dir "${SWIFTLIB_DIR}/shims")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//===--- ClockKitOverlayShims.h --------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
13+
#ifndef SWIFT_STDLIB_SHIMS_CLOCKKITOVERLAY_H
14+
#define SWIFT_STDLIB_SHIMS_CLOCKKITOVERLAY_H
15+
16+
@import ClockKit;
17+
18+
@interface CLKTextProvider (OverlaySupport)
19+
+ (CLKTextProvider *)textProviderWithFormat:(NSString *)format arguments:(va_list)arguments API_AVAILABLE(watchos(2.0)) API_UNAVAILABLE(macos, tvos, ios);
20+
@end
21+
22+
// SWIFT_STDLIB_SHIMS_CLOCKKITOVERLAY_H
23+
#endif

stdlib/public/SwiftShims/module.modulemap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ module _SwiftFoundationOverlayShims {
7171
module _SwiftNetworkOverlayShims {
7272
header "NetworkOverlayShims.h"
7373
}
74+
75+
module _SwiftClockKitOverlayShims {
76+
header "ClockKitOverlayShims.h"
77+
}

0 commit comments

Comments
 (0)