forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update master to build with Xcode 8.3 beta 1, OS X 10.12, iOS 10, tvO…
…S 10, and watchOS 3 SDKs.
- Loading branch information
1 parent
e21597d
commit 92ef777
Showing
25 changed files
with
942 additions
and
479 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
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
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
29 changes: 29 additions & 0 deletions
29
stdlib/public/SDK/Intents/INGetCarLockStatusIntentResponse.swift
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 https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
@_exported import Intents | ||
import Foundation | ||
|
||
#if os(iOS) || os(watchOS) | ||
@available(iOS 10.3, watchOS 3.2, *) | ||
extension INGetCarLockStatusIntentResponse { | ||
@nonobjc | ||
public final var locked: Bool? { | ||
get { | ||
return __locked?.boolValue | ||
} | ||
set(newLocked) { | ||
__locked = newLocked.map { NSNumber(value: $0) } | ||
} | ||
} | ||
} | ||
#endif |
39 changes: 39 additions & 0 deletions
39
stdlib/public/SDK/Intents/INGetCarPowerLevelStatusIntentResponse.swift
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,39 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// 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 https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
@_exported import Intents | ||
import Foundation | ||
|
||
#if os(iOS) || os(watchOS) | ||
@available(iOS 10.3, watchOS 3.2, *) | ||
extension INGetCarPowerLevelStatusIntentResponse { | ||
@nonobjc | ||
public final var fuelPercentRemaining: Float? { | ||
get { | ||
return __fuelPercentRemaining?.floatValue | ||
} | ||
set(newPercent) { | ||
__fuelPercentRemaining = newPercent.map { NSNumber(value: $0) } | ||
} | ||
} | ||
|
||
@nonobjc | ||
public final var chargePercentRemaining: Float? { | ||
get { | ||
return __chargePercentRemaining?.floatValue | ||
} | ||
set(newPercent) { | ||
__chargePercentRemaining = newPercent.map { NSNumber(value: $0) } | ||
} | ||
} | ||
} | ||
#endif |
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
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,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 https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
@_exported import Intents | ||
import Foundation | ||
|
||
#if os(iOS) || os(watchOS) | ||
@available(iOS 10.3, watchOS 3.2, *) | ||
extension INSetCarLockStatusIntent { | ||
@nonobjc | ||
public convenience init(locked: Bool?, carName: INSpeakableString?) { | ||
self.init(__locked:locked as NSNumber?, carName:carName) | ||
} | ||
|
||
@nonobjc | ||
public final var locked: Bool? { | ||
return __locked?.boolValue | ||
} | ||
} | ||
#endif |
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
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
Oops, something went wrong.