Skip to content

Commit

Permalink
Merge pull request #245 from THEOplayer/bugfix/newarch_podspec_old
Browse files Browse the repository at this point in the history
Bugfix/newarch podspec old
  • Loading branch information
tvanlaerhoven authored Jan 10, 2025
2 parents 7c265dc + f8559a1 commit 6d5f349
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .changeset/eighty-waves-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@theoplayer/react-native-analytics-comscore': patch
'@theoplayer/react-native-analytics-conviva': patch
'@theoplayer/react-native-analytics-nielsen': patch
'@theoplayer/react-native-yospace': patch
'@theoplayer/react-native-analytics-youbora': patch
'@theoplayer/react-native-analytics-mux': patch
---

Fixed an issue on iOS where the podspec files did not contain all references when not using the New Architecture.
5 changes: 3 additions & 2 deletions comscore/react-native-theoplayer-comscore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "react-native-theoplayer"
s.dependency "THEOplayer-Connector-Comscore", "~> 8.0"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
s.dependency "react-native-theoplayer"
s.dependency "THEOplayer-Connector-Comscore", "~> 8.0"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
5 changes: 3 additions & 2 deletions conviva/react-native-theoplayer-conviva.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "react-native-theoplayer"
s.dependency "THEOplayer-Connector-Conviva", "~> 8.0"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
s.dependency "react-native-theoplayer"
s.dependency "THEOplayer-Connector-Conviva", "~> 8.0"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
5 changes: 3 additions & 2 deletions mux/react-native-theoplayer-mux.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "react-native-theoplayer"
s.dependency "Mux-Stats-THEOplayer", "~> 0.11"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
s.dependency "react-native-theoplayer"
s.dependency "Mux-Stats-THEOplayer", "~> 0.11"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
5 changes: 3 additions & 2 deletions nielsen/react-native-theoplayer-nielsen.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "react-native-theoplayer"
s.dependency "THEOplayer-Connector-Nielsen", "~> 8.0"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
s.dependency "react-native-theoplayer"
s.dependency "THEOplayer-Connector-Nielsen", "~> 8.0"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
3 changes: 2 additions & 1 deletion yospace/react-native-theoplayer-yospace.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "react-native-theoplayer"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
s.dependency "react-native-theoplayer"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
5 changes: 3 additions & 2 deletions youbora/react-native-theoplayer-youbora.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "react-native-theoplayer"
s.dependency "YouboraTHEOPlayerAdapter"

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
s.dependency "react-native-theoplayer"
s.dependency "YouboraTHEOPlayerAdapter"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down

0 comments on commit 6d5f349

Please sign in to comment.