Skip to content
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

Add support for tvOS #293

Merged
merged 3 commits into from
Jul 16, 2019
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
27 changes: 14 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ os: osx
osx_image: xcode10.1
env:
- scheme='Siesta macOS' platform='OS X'
- scheme='Siesta iOS' platform='iOS Simulator' ios_version='12.0' ios_device='iPhone XR'
- scheme='Siesta iOS' platform='iOS Simulator' ios_version='11.1' ios_device='iPhone SE'
- scheme='Siesta iOS' platform='iOS Simulator' ios_version='9.3' ios_device='iPhone 6'
- scheme='Siesta iOS' platform='iOS Simulator' sim_os='iOS' sim_os_version='12.0' sim_device='iPhone XR'
- scheme='Siesta iOS' platform='iOS Simulator' sim_os='iOS' sim_os_version='11.1' sim_device='iPhone SE'
- scheme='Siesta iOS' platform='iOS Simulator' sim_os='iOS' sim_os_version='9.3' sim_device='iPhone 6'
# As of XC 9.4, any framework tests (not just Siesta) fail on iOS 8.1 simulator with
# "Timed out trying to establish connection to IDE" (radar 40756466). Reenable this if Apple fixes:
#- scheme='Siesta iOS' platform='iOS Simulator' ios_version='8.1' ios_device='iPhone 4s'
#- scheme='Siesta iOS' platform='iOS Simulator' sim_os='iOS' sim_os_version='8.1' sim_device='iPhone 4s'
# For now, using 9.3 on 4s instead (which is important bc some bugs are 32-bit-specific):
- scheme='Siesta iOS' platform='iOS Simulator' ios_version='9.3' ios_device='iPhone 4s'
- scheme='Siesta iOS' platform='iOS Simulator' sim_os='iOS' sim_os_version='9.3' sim_device='iPhone 4s'
- scheme='Siesta tvOS' platform='tvOS Simulator' sim_os='tvOS' sim_os_version='12.1' sim_device='Apple TV 1080p'

before_install: |
if [[ "$platform" == "iOS Simulator" ]]; then
ios_simulator_udid=$(
if [[ "$platform" =~ \ Simulator$ ]]; then
sim_simulator_udid=$(
xcrun simctl create "Siesta testing device" \
"com.apple.CoreSimulator.SimDeviceType.${ios_device// /-}" \
"com.apple.CoreSimulator.SimRuntime.iOS-${ios_version//./-}"
"com.apple.CoreSimulator.SimDeviceType.${sim_device// /-}" \
"com.apple.CoreSimulator.SimRuntime.${sim_os}-${sim_os_version//./-}"
)
echo "Prelaunching iOS simulator with UDID $ios_simulator_udid"
xcrun simctl boot $ios_simulator_udid
echo "Prelaunching iOS simulator with UDID $sim_simulator_udid"
xcrun simctl boot $sim_simulator_udid
fi

script: |
Expand Down Expand Up @@ -75,8 +76,8 @@ script: |

# ------ Project build (at last!) ------

if [[ "$platform" == "iOS Simulator" ]]; then
platform="$platform,OS=$ios_version,name=$ios_device"
if [[ "$platform" =~ \ Simulator$ ]]; then
platform="$platform,OS=$sim_os_version,name=Siesta testing device"
fi

echo
Expand Down
3 changes: 2 additions & 1 deletion Siesta.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Pod::Spec.new do |s|

## Stats

* **OS:** iOS 8+, OS X / macOS 10.11+
* **OS:** iOS 8+, OS X / macOS 10.11+, tvOS 9.0+
* **Languages:** Written in Swift, supports apps in both Swift and Objective-C
* **Tool requirements:** Xcode 8, Swift 3.0
* **License:** MIT
Expand Down Expand Up @@ -68,6 +68,7 @@ Pod::Spec.new do |s|

s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.11"
s.tvos.deployment_target = "9.0"

s.source = { :git => "https://github.com/bustoutsolutions/siesta.git", :tag => "1.4.3" }

Expand Down
Loading