Skip to content

Commit

Permalink
Support for visionOS, upgrade min xcode to 14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
persidskiy committed Jan 16, 2024
1 parent 42926cf commit 7e66deb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ workflows:
- build_and_test_macos:
matrix:
parameters:
xcode_version: [13.4.1, 14.3.1, 15.1.0]
xcode_version: [14.3.1, 15.1.0]
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// swift-tools-version:5.5
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Turf",
platforms: [
.macOS(.v10_13), .iOS(.v11), .watchOS(.v4), .tvOS(.v11),
.macOS(.v10_13), .iOS(.v11), .watchOS(.v4), .tvOS(.v11), .custom("visionOS", versionString: "1.0")
],
products: [
.library(
Expand All @@ -30,4 +30,4 @@ let package = Package(
swiftSettings: [.define("SPM_TESTING")]
),
]
)
)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ A [spatial analysis](http://en.wikipedia.org/wiki/Spatial_analysis) library writ

## Requirements

Turf requires Xcode 13.0 or above and supports the following minimum deployment targets:
Turf requires Xcode 14.1 or above and supports the following minimum deployment targets:

* iOS 11.0 and above
* macOS 10.13 (High Sierra) and above
* tvOS 11.0 and above
* watchOS 4.0 and above
* visionOS 1.0 and above

Alternatively, you can incorporate Turf into a command line tool without Xcode on any platform that [Swift](https://swift.org/download/) supports, including Linux.

Expand Down
1 change: 1 addition & 0 deletions Turf.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Pod::Spec.new do |s|
s.osx.deployment_target = "10.13"
s.tvos.deployment_target = "11.0"
s.watchos.deployment_target = "4.0"
s.visionos.deployment_target = "1.0"

# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

Expand Down
6 changes: 6 additions & 0 deletions Turf.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,10 @@
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.turf;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = NO;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = 7;
};
name = Debug;
};
Expand All @@ -632,6 +635,9 @@
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.turf;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = NO;
TARGETED_DEVICE_FAMILY = 7;
};
name = Release;
};
Expand Down

0 comments on commit 7e66deb

Please sign in to comment.