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

Implement initial support for visionOS. #391

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:

jobs:
danger:
runs-on: macos-latest
runs-on: macos-14
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v2

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.6.3
ruby-version: 3.0.6

- uses: MeilCli/danger-action@v5
with:
Expand All @@ -30,33 +30,33 @@ jobs:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test:
runs-on: macos-12
runs-on: macos-14

strategy:
matrix:
platform:
- platform=iOS Simulator,name=iPhone 15 Pro Max
- platform=iOS Simulator,name=iPhone 15 Pro
- platform=iOS Simulator,name=iPhone 15
- platform=iOS Simulator,name=iPhone 15 Plus
- platform=iOS Simulator,name=iPhone 14 Pro Max
- platform=iOS Simulator,name=iPhone 14 Pro
- platform=iOS Simulator,name=iPhone 14
- platform=iOS Simulator,name=iPhone 14 Plus
- platform=iOS Simulator,name=iPhone 12 Pro Max
- platform=iOS Simulator,name=iPhone 12 Pro
- platform=iOS Simulator,name=iPhone 12
- platform=iOS Simulator,name=iPhone 12 mini
- platform=iOS Simulator,name=iPhone 8 Plus
- platform=iOS Simulator,name=iPhone 8
- platform=iOS Simulator,name=iPhone SE (2nd generation)
- platform=iOS Simulator,name=iPhone SE (3rd generation)
- platform=iOS Simulator,name=iPad (10th generation)
- platform=tvOS Simulator,name=Apple TV
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation)
- platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)
- platform=visionOS Simulator,name=Apple Vision Pro

steps:
- uses: actions/checkout@v2

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.6.3
ruby-version: 3.0.6

- name: xcodebuild
run: set -o pipefail && xcodebuild -scheme DeviceKit -destination "${{ matrix.platform }}" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
1 change: 1 addition & 0 deletions DeviceKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '11.0'
s.tvos.deployment_target = '11.0'
s.watchos.deployment_target = '4.0'
s.visionos.deployment_target = '1.0'

s.swift_version = '5.0'

Expand Down
6 changes: 6 additions & 0 deletions DeviceKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,13 @@
PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OBJC_INTERFACE_HEADER_NAME = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,7";
};
name = Debug;
};
Expand Down Expand Up @@ -542,10 +545,13 @@
PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OBJC_INTERFACE_HEADER_NAME = "";
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,7";
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'xcpretty'
gem 'cocoapods'
gem 'cocoapods', '1.15.2'
gem 'danger'
gem 'danger-swiftlint'
81 changes: 46 additions & 35 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,62 +1,71 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.3)
activesupport (5.2.6)
CFPropertyList (3.0.6)
rexml
activesupport (7.1.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
bigdecimal (3.1.6)
claide (1.0.3)
claide-plugins (0.9.2)
cork
nap
open4 (~> 1.3)
cocoapods (1.10.1)
addressable (~> 2.6)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.10.1)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.4.0, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.4.0, < 2.0)
cocoapods-trunk (>= 1.6.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.6.6)
molinillo (~> 0.8.0)
nap (~> 1.0)
ruby-macho (~> 1.4)
xcodeproj (>= 1.19.0, < 2.0)
cocoapods-core (1.10.1)
activesupport (> 5.0, < 6)
addressable (~> 2.6)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
netrc (~> 0.11)
public_suffix
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.4.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-trunk (1.5.0)
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.1.9)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
cork (0.3.0)
colored2 (~> 3.1)
danger (8.3.1)
Expand All @@ -76,8 +85,10 @@ GEM
danger
rake (> 10)
thor (~> 0.19)
drb (2.2.0)
ruby2_keywords
escape (0.0.4)
ethon (0.14.0)
ethon (0.16.0)
ffi (>= 1.15.0)
faraday (1.5.1)
faraday-em_http (~> 1.0)
Expand All @@ -98,23 +109,24 @@ GEM
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
ffi (1.15.3)
ffi (1.16.3)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
git (1.9.1)
rchardet (~> 1.8)
httpclient (2.8.3)
i18n (1.8.10)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
json (2.5.1)
json (2.7.1)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
minitest (5.14.4)
molinillo (0.6.6)
minitest (5.22.0)
molinillo (0.8.0)
multipart-post (2.1.1)
mutex_m (0.2.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.11.0)
Expand All @@ -128,21 +140,20 @@ GEM
rchardet (1.8.0)
rexml (3.2.5)
rouge (2.0.7)
ruby-macho (1.4.0)
ruby-macho (2.5.1)
ruby2_keywords (0.0.4)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
terminal-table (3.0.1)
unicode-display_width (>= 1.1.1, < 3)
thor (0.20.3)
thread_safe (0.3.6)
typhoeus (1.4.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (1.2.9)
thread_safe (~> 0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.0.0)
xcodeproj (1.20.0)
xcodeproj (1.24.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
Expand All @@ -156,7 +167,7 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods
cocoapods (= 1.15.2)
danger
danger-swiftlint
xcpretty
Expand Down
Loading
Loading