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 ca7761c commit 20cf626
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/tikhop/ASN1Swift",
"state": {
"branch": null,
"revision": "b53bee03a942623db25afc5bfb80227b2cb3b425",
"version": "1.2.4"
"revision": "177417b6bf89431a0750ee640012b6aed8961c6a",
"version": "1.2.5"
}
}
]
Expand Down
12 changes: 7 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// swift-tools-version:5.3
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "TPInAppReceipt",
platforms: [.macOS(.v10_12),
.iOS(.v10),
.tvOS(.v10),
.watchOS("6.2")],
platforms: [.macOS(.v10_13),
.iOS(.v12),
.tvOS(.v12),
.watchOS("6.2"),
.visionOS(.v1),
.macCatalyst(.v13)],

products: [
.library(name: "TPInAppReceipt", targets: ["TPInAppReceipt"]),
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Installation
To integrate TPInAppReceipt into your project using CocoaPods, specify it in your `Podfile`:

```ruby
platform :ios, '9.0'
platform :ios, '12.0'

target 'YOUR_TARGET' do
use_frameworks!
Expand Down Expand Up @@ -66,8 +66,8 @@ swift package update

### Requirements

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

Usage
-------------
Expand Down
17 changes: 9 additions & 8 deletions TPInAppReceipt.podspec
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
Pod::Spec.new do |s|

s.name = "TPInAppReceipt"
s.version = "3.3.4"
s.version = "3.4.0"
s.summary = "Reading and Validating In App Purchase Receipt Locally"
s.description = "A lightweight iOS/OSX library for reading and validating Apple In App Purchase Receipt locally. Pure swift, No OpenSSL!"

s.homepage = "https://github.com/tikhop/TPInAppReceipt"
s.license = "MIT"
s.source = { :git => "https://github.com/tikhop/TPInAppReceipt.git", :tag => "#{s.version}" }

s.author = { "Pavel Tikhonenko" => "[email protected]" }
s.author = { "tikhop" => "[email protected]" }

s.swift_versions = ['5.3']
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '12.0'
s.watchos.deployment_target = '6.2'
s.requires_arc = true

s.visionos.deployment_target = '1.0'

s.requires_arc = true

s.subspec 'Core' do |core|
core.exclude_files = "Sources/Objc/*.{swift}"
core.source_files = "Sources/*.{swift}"
core.resources = "Sources/AppleIncRootCertificate.cer", "Sources/StoreKitTestCertificate.cer"
core.dependency 'ASN1Swift', '~> 1.2.3'
core.dependency 'ASN1Swift', '~> 1.2.5'
end

s.subspec 'Objc' do |objc|
Expand Down

0 comments on commit 20cf626

Please sign in to comment.