-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Max Moiseev
committed
Jul 8, 2016
1 parent
c2c1b84
commit 29d7e66
Showing
6 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ set(SWIFT_API_NOTES_INPUTS | |
AVFoundation | ||
AppKit | ||
AudioToolbox | ||
CallKit | ||
CloudKit | ||
CoreBluetooth | ||
CoreData | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
Name: CallKit | ||
Classes: | ||
- Name: CXProviderConfiguration | ||
Properties: | ||
- Name: 'supportedHandleTypes' | ||
SwiftPrivate: true | ||
Tags: | ||
- Name: CXErrorCode | ||
NSErrorDomain: CXErrorDomain | ||
- Name: CXErrorCodeIncomingCallError | ||
NSErrorDomain: CXErrorDomainIncomingCall | ||
- Name: CXErrorCodeRequestTransactionError | ||
NSErrorDomain: CXErrorDomainRequestTransaction | ||
- Name: CXErrorCodeCallDirectoryManagerError | ||
NSErrorDomain: CXErrorDomainCallDirectoryManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
add_swift_library(swiftCallKit ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY | ||
CallKit.swift | ||
CXProviderConfiguration.swift | ||
|
||
TARGET_SDKS IOS IOS_SIMULATOR | ||
SWIFT_MODULE_DEPENDS Foundation | ||
FRAMEWORK_DEPENDS_WEAK CallKit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See http://swift.org/LICENSE.txt for license information | ||
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
@_exported import CallKit | ||
import Foundation | ||
|
||
@available(iOS 10.0, *) | ||
extension CXProviderConfiguration { | ||
@nonobjc | ||
public final var supportedHandleTypes: Set<CXHandleType> { | ||
get { | ||
return Set(__supportedHandleTypes.map { | ||
CXHandleType(rawValue: $0.intValue)! | ||
}) | ||
} | ||
set { | ||
__supportedHandleTypes = Set(newValue.map { $0.rawValue }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See http://swift.org/LICENSE.txt for license information | ||
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// |