diff --git a/.gitignore b/.gitignore index 5bc21cc..3f0ca0b 100644 --- a/.gitignore +++ b/.gitignore @@ -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 # diff --git a/Package.swift b/Package.swift index 05d5f61..ef2caeb 100644 --- a/Package.swift +++ b/Package.swift @@ -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", diff --git a/mParticle-OneTrust.podspec b/mParticle-OneTrust.podspec index f1cd158..b18ef4b 100644 --- a/mParticle-OneTrust.podspec +++ b/mParticle-OneTrust.podspec @@ -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