Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tvOS support to CocoaPods podspec #15

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ This repository contains the [Adobe](https://www.adobe.com) integration for the

1. Add the kit dependency to your app's package management file:

> To send media data to Adobe, you must use CocoaPods or SPM since their SDKs do not support Carthage
> To send media data to Adobe, you must use CocoaPods or SPM since their SDKs do not support Carthage (iOS only)

```
pod 'mParticle-Adobe/AdobeMedia', '~> 8.0'
```

> Otherwise, for the previous non-media Adobe integration, you can integrate via Carthage or CocoaPods
> Otherwise, for the previous non-media Adobe integration, you can integrate via Carthage or CocoaPods (iOS and tvOS)

```
pod 'mParticle-Adobe/Adobe', '~> 8.0'
Expand Down
18 changes: 14 additions & 4 deletions mParticle-Adobe.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,30 @@ Pod::Spec.new do |s|
s.static_framework = true
s.swift_version = "5.0"

s.ios.deployment_target = "10.0"
s.default_subspec = 'AdobeMedia'

s.ios.deployment_target = "10.0"
s.tvos.deployment_target = "10.0"

s.ios.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.ios.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

s.ios.framework = 'UIKit'

s.subspec 'Adobe' do |ss|
ss.ios.source_files = 'mParticle-Adobe/*.{h,m}'
ss.ios.source_files = 'mParticle-Adobe/*.{h,m}'
ss.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0'
s.ios.framework = 'UIKit'

ss.tvos.source_files = 'mParticle-Adobe/*.{h,m}'
ss.tvos.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0'
end

s.subspec 'AdobeMedia' do |ss|
ss.ios.source_files = 'mParticle-Adobe-Media/*.{h,m}'
ss.ios.source_files = 'mParticle-Adobe-Media/*.{h,m}'
ss.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0'
ss.ios.dependency 'mParticle-Apple-Media-SDK', '~> 1.3'
ss.ios.dependency 'AEPMedia', '~> 3.0'
Expand All @@ -43,5 +49,9 @@ Pod::Spec.new do |s|
ss.ios.dependency 'AEPIdentity', '~> 3.2'
ss.ios.dependency 'AEPLifecycle', '~> 3.2'
ss.ios.dependency 'AEPSignal', '~> 3.2'

# AdobeMedia is not supported on tvOS, so just pull in standard Adobe Kit code
ss.tvos.source_files = 'mParticle-Adobe/*.{h,m}'
ss.tvos.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0'
end
end