Skip to content

Commit

Permalink
updating for Xcode 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Maloney committed Mar 29, 2017
1 parent e515f77 commit 644af8d
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: objective-c
xcode_project: CleanroomBridging.xcodeproj
osx_image: xcode8.2
osx_image: xcode8.3

git:
depth: 1
Expand Down
6 changes: 3 additions & 3 deletions BuildControl/bin/releaseMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ testActionForPlatform()
runDestinationForPlatform()
{
case $1 in
iOS) echo "platform=iOS Simulator,OS=10.2,name=iPad Pro (9.7 inch)";;
iOS) echo "platform=iOS Simulator,OS=10.3,name=iPad Pro (9.7 inch)";;
macOS) echo "platform=macOS";;
tvOS) echo "platform=tvOS Simulator,OS=10.1,name=Apple TV 1080p";;
watchOS) echo "platform=watchOS Simulator,OS=3.1,name=Apple Watch Series 2 - 42mm";;
tvOS) echo "platform=tvOS Simulator,OS=10.2,name=Apple TV 1080p";;
watchOS) echo "platform=watchOS Simulator,OS=3.2,name=Apple Watch Series 2 - 42mm";;
esac
}

Expand Down
6 changes: 3 additions & 3 deletions BuildControl/bin/travisBuildHelper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ PLATFORM="$2"
runDestinationForPlatform()
{
case $1 in
iOS) echo "platform=iOS Simulator,OS=10.2,name=iPad Pro (9.7 inch)";;
iOS) echo "platform=iOS Simulator,OS=10.3,name=iPad Pro (9.7 inch)";;
macOS) echo "platform=macOS";;
tvOS) echo "platform=tvOS Simulator,OS=10.1,name=Apple TV 1080p";;
watchOS) echo "platform=watchOS Simulator,OS=3.1,name=Apple Watch Series 2 - 42mm";;
tvOS) echo "platform=tvOS Simulator,OS=10.2,name=Apple TV 1080p";;
watchOS) echo "platform=watchOS Simulator,OS=3.2,name=Apple Watch Series 2 - 42mm";;
esac
}

Expand Down
24 changes: 12 additions & 12 deletions BuildControl/repos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@
<Var name="repo:dir" type="dynamic" expression="../../${repo:name}"/>

<Var name="platforms" type="map">
<Var name="xcode-8.2" type="map">
<Var name="xcode-8.3" type="map">
<Var name="iOS" type="map">
<Var name="runDestination" literal="platform=iOS Simulator,OS=10.2,name=iPad Pro (9.7 inch)"/>
<Var name="runDestination" literal="platform=iOS Simulator,OS=10.3,name=iPad Pro (9.7 inch)"/>
<Var name="supportsUnitTests" boolean="T"/>
</Var>
<Var name="macOS" type="map">
<Var name="runDestination" literal="platform=macOS"/>
<Var name="supportsUnitTests" boolean="T"/>
</Var>
<Var name="tvOS" type="map">
<Var name="runDestination" literal="platform=tvOS Simulator,OS=10.1,name=Apple TV 1080p"/>
<Var name="runDestination" literal="platform=tvOS Simulator,OS=10.2,name=Apple TV 1080p"/>
<Var name="supportsUnitTests" boolean="T"/>
</Var>
<Var name="watchOS" type="map">
<Var name="runDestination" literal="platform=watchOS Simulator,OS=3.1,name=Apple Watch Series 2 - 42mm"/>
<Var name="runDestination" literal="platform=watchOS Simulator,OS=3.2,name=Apple Watch Series 2 - 42mm"/>
<Var name="supportsUnitTests" boolean="F"/>
</Var>
</Var>
</Var>

<Var name="buildPlatform:default" literal="xcode-8.2"/>
<Var name="buildPlatform:active" type="dynamic" expression="^if(^matchesRegex($repo:branch|^^xcode-([0-9]+){1}(\.[0-9]+){1,2}^q($))|$repo:branch|$buildPlatform:default)"/>
<Var name="buildPlatform:default" literal="xcode-8.3"/>
<Var name="buildPlatform:active" type="dynamic" expression="^if(^matchesRegex($repo:branch|^^xcode-([0-9]+){1}(\.[0-9]+){1,2}(-.*?)*^q($))|$repo:branch|$buildPlatform:default)"/>
<Var name="buildPlatform:supportsCI" type="dynamic" expression="^if($versions[$repo:branch][Travis]|1|0)"/>
<Var name="platforms:build" type="dynamic" expression="$platforms[$buildPlatform:active]"/>
<Var name="platforms:ci" type="dynamic" expression="$platforms[$buildPlatform:active]"/>
Expand All @@ -53,17 +53,17 @@
<Var name="versions" type="map">
<!-- master branch declarations -->
<Var name="master" type="map">
<Var name="Swift" literal="3.0.2"/>
<Var name="Xcode" literal="8.2"/>
<Var name="Travis" literal="xcode8.2"/>
<Var name="Swift" literal="3.1"/>
<Var name="Xcode" literal="8.3"/>
<Var name="Travis" literal="xcode8.3"/>

<Var name="Carthage" literal="0.18.1"/>

<Var name="current" type="map">
<Var name="iOS" literal="10.2"/>
<Var name="iOS" literal="10.3"/>
<Var name="macOS" literal="10.12"/>
<Var name="tvOS" literal="10.1"/>
<Var name="watchOS" literal="3.1"/>
<Var name="tvOS" literal="10.2"/>
<Var name="watchOS" literal="3.2"/>
</Var>

<Var name="minimum" type="map">
Expand Down
14 changes: 7 additions & 7 deletions INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ CleanroomBridging is designed as a *universal Swift framework* with support for

Platform|Latest supported OS|Oldest supported OS
--------|-------------------|-------------------
iPhone/iPad|iOS 10.2|iOS 9.0
iPhone/iPad|iOS 10.3|iOS 9.0
Macintosh|macOS 10.12|macOS 10.11
Apple TV|tvOS 10.1|tvOS 9.0
Apple Watch|watchOS 3.1|watchOS 2.0
Apple TV|tvOS 10.2|tvOS 9.0
Apple Watch|watchOS 3.2|watchOS 2.0

CleanroomBridging uses **Swift 3.0.2** and **requires Xcode 8.2** to compile.
CleanroomBridging uses **Swift 3.1** and **requires Xcode 8.3** to compile.

### Options for integration

Expand All @@ -37,12 +37,12 @@ Within to your project’s root directory, Carthage-based projects will store a
To integrate CleanroomBridging in your workspace, you would start by adding the following line to the `Cartfile`:

```
github "emaloney/CleanroomBridging" ~> 1.3.0
github "emaloney/CleanroomBridging" ~> 1.4.0
```

This specifies that Carthage use the latest version of CleanroomBridging that is API-compatible with 1.3, i.e. any 1.3.*x* version.
This specifies that Carthage use the latest version of CleanroomBridging that is API-compatible with 1.4, i.e. any 1.4.*x* version.

**Note:** Be sure to check the [latest releases](https://github.com/emaloney/CleanroomBridging/releases); there may be a newer version than 1.3 that is no longer API-compatible.
**Note:** Be sure to check the [latest releases](https://github.com/emaloney/CleanroomBridging/releases); there may be a newer version than 1.4 that is no longer API-compatible.

### 2. Download CleanroomBridging using Carthage

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CleanroomBridging is part of [the Cleanroom Project](https://github.com/gilt/Cle

### Swift compatibility

This is the `master` branch. It uses **Swift 3.0.2** and **requires Xcode 8.2** to compile.
This is the `master` branch. It uses **Swift 3.1** and **requires Xcode 8.3** to compile.


#### Current status
Expand All @@ -36,7 +36,7 @@ The simplest way to integrate CleanroomBridging is with the [Carthage](https://g
First, add this line to your [`Cartfile`](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile):

```
github "emaloney/CleanroomBridging" ~> 1.3.0
github "emaloney/CleanroomBridging" ~> 1.4.0
```

Then, use the `carthage` command to [update your dependencies](https://github.com/Carthage/Carthage#upgrading-frameworks).
Expand Down
2 changes: 1 addition & 1 deletion Tests/CleanroomBridgingTests/TargetActionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TargetActionTests: XCTestCase
let userInfo = "(info for the user)"

let targetAction = TargetAction() { (argument: Any?) -> Void in
print("Invoked with: \(argument)")
print("Invoked with: \(String(describing: argument))")

let timer = argument as? Timer
XCTAssertTrue(timer != nil)
Expand Down

0 comments on commit 644af8d

Please sign in to comment.