@jwplayer/jwplayer-react-native 1.0.2 → 1.1.0

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.
package/README.md CHANGED
@@ -409,6 +409,7 @@ If you use a different provider for DRM or this does not work for your use case,
409
409
  1. Read and understand the requirements for PiP in the [iOS SDK](https://docs.jwplayer.com/players/docs/ios-invoke-picture-in-picture-playback). PiP mode is enabled by JWP for the `PlayerViewController`.
410
410
  2. (viewOnly:true only) Set the `pipEnabled` prop to `true`.
411
411
  3. (viewOnly:true only) Call `togglePIP()` to enable or disable PiP.
412
+ 4. Ensure [category](/docs//legacy_readme.md#audiosessioncategory) and/or [categoryOptions](/docs//legacy_readme.md#audiosessioncategoryoptions) prop(s) are set to define and configure your media. This is required to setup the audio session. If `category` is not defined but `pipEnabled` is set true, we default to the standard `playback` category to avoid crashing.
412
413
 
413
414
  <br /><br />
414
415
 
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
12
12
  s.platform = :ios, "14.0"
13
13
  s.source = { :git => "https://github.com/jwplayer/jwplayer-react-native.git", :tag => "v#{s.version}" }
14
14
  s.source_files = "ios/RNJWPlayer/*.{h,m,swift}"
15
- s.dependency 'JWPlayerKit', '>= 4.19.0'
15
+ s.dependency 'JWPlayerKit', '4.21.2'
16
16
  s.dependency 'React-Core'
17
17
  s.static_framework = true
18
18
  s.info_plist = {
@@ -28,14 +28,14 @@ Pod::Spec.new do |s|
28
28
 
29
29
  if defined?($RNJWPlayerUseGoogleCast)
30
30
  Pod::UI.puts "RNJWPlayer: enable Google Cast"
31
- s.dependency 'google-cast-sdk', '~> 4.8'
31
+ s.dependency 'google-cast-sdk', '4.8.1'
32
32
  s.pod_target_xcconfig = {
33
33
  'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_CAST'
34
34
  }
35
35
  end
36
36
  if defined?($RNJWPlayerUseGoogleIMA)
37
37
  Pod::UI.puts "RNJWPlayer: enable IMA SDK"
38
- s.dependency 'GoogleAds-IMA-iOS-SDK', '~> 3.22'
38
+ s.dependency 'GoogleAds-IMA-iOS-SDK', '3.22.1'
39
39
  s.pod_target_xcconfig = {
40
40
  'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_IMA'
41
41
  }
@@ -1,2 +1,2 @@
1
- #Tue Aug 06 14:41:55 PDT 2024
1
+ #Mon Mar 03 15:18:01 PST 2025
2
2
  gradle.version=8.9
@@ -15,6 +15,10 @@ def safeExtGet(prop, fallback) {
15
15
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
16
16
  }
17
17
 
18
+ def isNewArchitectureEnabled() {
19
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
20
+ }
21
+
18
22
  def useIMA = safeExtGet("RNJWPlayerUseGoogleIMA", "")?.toBoolean() ?: false
19
23
  def useCast = safeExtGet("RNJWPlayerUseGoogleCast", "")?.toBoolean() ?: false
20
24
 
@@ -27,6 +31,9 @@ android {
27
31
  targetSdkVersion safeExtGet('targetSdkVersion', 28)
28
32
  versionCode 1
29
33
  versionName "1.0"
34
+
35
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
36
+
30
37
  ndk {
31
38
  abiFilters "armeabi-v7a", "x86"
32
39
  }
@@ -66,7 +73,7 @@ allprojects {
66
73
  }
67
74
  }
68
75
 
69
- def jwPlayerVersion = "4.18.3"
76
+ def jwPlayerVersion = "4.18.4"
70
77
  def exoplayerVersion = "2.18.7" // Deprecated. Use Media3 when targeting JW SDK > 4.16.0
71
78
  def media3ExoVersion = "1.1.1"
72
79