Skip to content

Commit

Permalink
feat: Support VisionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tikhop committed Feb 8, 2024
1 parent a5b51be commit 177417b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
15 changes: 9 additions & 6 deletions ASN1Swift.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "ASN1Swift"
s.version = "1.2.3"
s.version = "1.2.5"
s.summary = "Decoding ASN.1 in swift"
s.description = "A lightweight swift library for decoding ASN.1 structure. Similar to `JSONDecoder`"

Expand All @@ -11,11 +11,14 @@ s.source = { :git => "https://github.com/tikhop/ASN1Swift.git", :tag => "#

s.author = { "Pavel Tikhonenko" => "hi@tikhop.com" }

s.swift_versions = ['5.3']
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '3.0'
s.swift_versions = ['5.9']

s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '12.0'
s.visionos.deployment_target = '1.0'
s.watchos.deployment_target = '6.0'

s.requires_arc = true

s.source_files = "Sources/ASN1Swift/*.{swift}", "Sources/ASN1Swift/PKCS7/*.{swift}"
Expand Down
16 changes: 8 additions & 8 deletions Package.swift
@@ -1,23 +1,23 @@
// swift-tools-version: 5.4
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let visionOSSetting: SwiftSetting = .define("VISION_OS", .when(platforms: [.visionOS]))

let package = Package(
name: "ASN1Swift",
platforms: [.macOS(.v10_12),
.iOS(.v10),
.tvOS(.v10),
.watchOS("6.2")],
platforms: [.macOS(.v10_13),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v6),
.visionOS(.v1)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "ASN1Swift",
targets: ["ASN1Swift"]),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "ASN1Swift",
dependencies: []),
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -66,8 +66,8 @@ If this is your first time using Carthage in the project, you'll need to go thro

### Requirements

- iOS 10.0+ / OSX 10.11+
- Swift 5.2+
- iOS 12.0+ / OSX 10.13+
- Swift 5.9+

Example
-------------
Expand Down

0 comments on commit 177417b

Please sign in to comment.