@npaw/forge-react-native-video 20.4.0 → 20.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,6 +59,10 @@ Pod::Spec.new do |s|
59
59
  s.platforms = generation_key == "rnv7" ? { :ios => "13.0" } : { :ios => "13.0", :tvos => "13.0" }
60
60
  s.source = { :path => "." }
61
61
 
62
+ # IMA is opt-in. Core-only React Native Video integrations must not pull the
63
+ # Google IMA SDK or inherit its iOS/tvOS 15 deployment floor implicitly.
64
+ s.default_subspecs = :none
65
+
62
66
  # The ObjC++ TurboModule shell is shared; the Swift coordinator/plugin pair is
63
67
  # per generation (the two upstream plugin APIs cannot coexist in one module).
64
68
  s.source_files = ["ios/*.{h,m,mm,swift}", "#{generation['iosDir']}/**/*.{h,m,mm,swift}"]
@@ -78,6 +82,17 @@ Pod::Spec.new do |s|
78
82
  s.dependency generation["podDependency"]
79
83
  (generation["extraPodDependencies"] || []).each { |extra| s.dependency extra }
80
84
 
85
+ # The optional React Native IMA core subspec raises the shared
86
+ # NPAWForgeReactNative module to iOS/tvOS 15. Keep the video pod at its
87
+ # normal 13.0 floor for core-only apps, while giving IMA consumers an
88
+ # explicit matching subspec so CocoaPods raises this target too. Without
89
+ # this marker, Swift compiles ForgeVideoModuleImpl.swift for 13.x and
90
+ # rejects the imported 15.0-minimum core module.
91
+ s.subspec "IMAAdapter" do |ima|
92
+ ima.platforms = generation_key == "rnv7" ? { :ios => "15.0" } : { :ios => "15.0", :tvos => "15.0" }
93
+ ima.dependency "NPAWForgeReactNative/IMAAdapter"
94
+ end
95
+
81
96
  # FORGE_APPLE_CONSUMPTION BEGIN (staged: ForgeApple ships inside the core pod)
82
97
  s.pod_target_xcconfig = (s.attributes_hash["pod_target_xcconfig"] || {}).merge({
83
98
  "OTHER_SWIFT_FLAGS" => "$(inherited) -DFORGE_RN_HYDRATED",
@@ -25,11 +25,11 @@ def safeExtGet(prop, fallback) {
25
25
 
26
26
  def forgeCoreVersion = project.hasProperty('NpawForge_forgeCoreVersion')
27
27
  ? project.property('NpawForge_forgeCoreVersion')
28
- : (System.getenv('FORGE_CORE_VERSION') ?: '10.4.0')
28
+ : (System.getenv('FORGE_CORE_VERSION') ?: '10.5.10')
29
29
 
30
30
  def forgeAdapterVersion = project.hasProperty('NpawForge_forgeAdapterVersion')
31
31
  ? project.property('NpawForge_forgeAdapterVersion')
32
- : (System.getenv('FORGE_ADAPTER_VERSION') ?: '10.4.0')
32
+ : (System.getenv('FORGE_ADAPTER_VERSION') ?: '10.5.10')
33
33
 
34
34
  android {
35
35
  namespace 'com.npaw.forge.reactnative.video'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npaw/forge-react-native-video",
3
- "version": "20.4.0",
3
+ "version": "20.5.10",
4
4
  "description": "react-native-video adapter glue for NPAW Forge: attaches the native Media3/AVPlayer Forge adapters to react-native-video's internal players via its native plugin API (react-native-video 6 and 7 generations, one major each).",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Victor Soto <victor.soto@nicepeopleatwork.com>",
@@ -20,7 +20,7 @@
20
20
  "test": "jest"
21
21
  },
22
22
  "peerDependencies": {
23
- "@npaw/forge-react-native": "^10.4.0",
23
+ "@npaw/forge-react-native": "^10.5.10",
24
24
  "react": "*",
25
25
  "react-native": "*",
26
26
  "react-native-video": ">=7.0.0-beta.11 <8",