Skip to content

[swift-4.0-branch][overlay] Adding missing files to Intents/CMakeLists.txt #10451

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 3 commits into from
Jun 23, 2017
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/SDK/Intents/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ include("../../../../cmake/modules/StandaloneOverlay.cmake")

add_swift_library(swiftIntents ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY
INBooleanResolutionResult.swift
INCallRecord.swift
INDoubleResolutionResult.swift
INGetCarLockStatusIntentResponse.swift
INGetCarPowerLevelStatusIntentResponse.swift
INIntegerResolutionResult.swift
INRequestRideIntent.swift
INSaveProfileInCarIntent.swift
INSearchCallHistoryIntent.swift
INSearchForPhotosIntentResponse.swift
INSetCarLockStatusIntent.swift
INSetClimateSettingsInCarIntent.swift
Expand Down
6 changes: 3 additions & 3 deletions stdlib/public/SDK/Intents/INCallRecord.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import Foundation
extension INCallRecord {
@nonobjc
public convenience init(
identifier: String? = nil,
identifier: String,
dateCreated: Date? = nil,
caller: INPerson? = nil,
callRecordType: INCallRecordType? = nil,
callCapability: INCallCapability? = nil,
callRecordType: INCallRecordType,
callCapability: INCallCapability,
callDuration: Double? = nil,
unseen: Bool? = nil
) {
Expand Down
22 changes: 9 additions & 13 deletions stdlib/public/SDK/Intents/INSearchCallHistoryIntent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,23 @@ import Foundation
#if os(iOS) || os(watchOS)
@available(iOS 10.0, watchOS 3.2, *)
extension INSearchCallHistoryIntent {
@available(iOS 10.0, watchOS 3.2, *)
@nonobjc
public convenience init(
dateCreated: INDateComponentsRange? = nil,
recipient: INPerson? = nil,
callCapabilities: INCallCapabilityOptions? = nil,
callTypes: INCallRecordTypeOptions? = nil,
callCapabilities: INCallCapabilityOptions,
callTypes: INCallRecordTypeOptions,
unseen: Bool? = nil
) {
if #available(iOS 11.0, *) {
self.init(__dateCreated: dateCreated,
recipient: recipient,
callCapabilities: callCapabilities,
callTypes: callTypes,
unseen: unseen)
} else {
self.init(__dateCreated: dateCreated,
recipient: recipient,
callCapabilities: callCapabilities)
}
self.init(__dateCreated: dateCreated,
recipient: recipient,
callCapabilities: callCapabilities,
callTypes: callTypes,
unseen: unseen.map { NSNumber(value: $0) })
}

@available(iOS 11.0, watchOS 4.0, *)
@nonobjc
public final var unseen: Bool? {
return __unseen?.boolValue
Expand Down