Skip to content

Commit

Permalink
feat: Add tvOS Support (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker authored Jun 21, 2024
1 parent 4fd718a commit c595674
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ playground.xcworkspace
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/
Package.resolved

# CocoaPods
#
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription

let package = Package(
name: "mParticle-OneTrust",
platforms: [ .iOS(.v11) ],
platforms: [ .iOS(.v11), .tvOS(.v11) ],
products: [
.library(
name: "mParticle-OneTrust",
Expand Down
7 changes: 7 additions & 0 deletions mParticle-OneTrust.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@ Pod::Spec.new do |s|
s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.22'
#OneTrust's unique version formating makes automatic support up to the next major version no longer possible. Additionally, as a specific version is required in their UI for their SDK to function we do not include a specific version of the 'OneTrust-CMP-XCFramework' here and expect the version to be defined in the client app.
s.ios.dependency 'OneTrust-CMP-XCFramework'

s.tvos.deployment_target = "11.0"
s.tvos.source_files = 'mParticle-OneTrust/*.{h,m}'
s.tvos.resource_bundles = { 'mParticle-OneTrust-Privacy' => ['mParticle-OneTrust/PrivacyInfo.xcprivacy'] }
s.tvos.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.22'
#OneTrust's unique version formating makes automatic support up to the next major version no longer possible. Additionally, as a specific version is required in their UI for their SDK to function we do not include a specific version of the 'OneTrust-CMP-XCFramework' here and expect the version to be defined in the client app.
s.tvos.dependency 'OneTrust-CMP-XCFramework'

end

0 comments on commit c595674

Please sign in to comment.