@jwplayer/jwplayer-react-native 1.0.3 → 1.1.1

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
@@ -6,7 +6,7 @@
6
6
 
7
7
  <br />
8
8
 
9
- [Prerequisites](#prerequisites) | [Installation](#installation) | [Usage](#usage) | [Advanced Topics](#advanced-topics) | [Contributing](#contributing) | [Issues](#issues)
9
+ [Prerequisites](#prerequisites) | [Installation](#installation) | [Usage](#usage) | [Advanced Topics](#advanced-topics) | [Contributions](#contributions) | [Issues](#issues)
10
10
 
11
11
  <br />
12
12
 
@@ -431,18 +431,42 @@ You can use the styling elements as defined in the [Legacy Readme](/docs/legacy_
431
431
 
432
432
  <br /><br />
433
433
 
434
- ## Contributing
434
+ ## Contributions
435
+
436
+ We welcome thoughtful contributions. To avoid duplicate work, review the following before opening a pull request (PR):
437
+ - Ensure your contribution applies directly to an open issue.
438
+ - When appropriate, develop solutions that can be applied to multiple use cases and implementations.
439
+ - Submit small, well-scoped pull requests.
440
+
441
+ Follow these steps to contribute:
442
+ 1. Review an [issue](https://github.com/jwplayer/jwplayer-react-native/issues).
443
+ 2. Create a [pull request](https://github.com/jwplayer/jwplayer-react-native/blob/master/.github/PULL_REQUEST_TEMPLATE.md) to propose a solution.
435
444
 
436
- - All contributions should correlate to an open issue. We hope to avoid doubling the work between contributors.
437
- - Changes shouldn't be a one-off solution for your use case.
438
- - Keep work small as required. Large PRs aren't fun for anyone and will take longer to review.
439
445
 
440
446
  <br /><br />
441
447
 
442
448
  ## Issues
443
449
 
444
- - Follow the format for Bugs/Features/Questions.
445
- - If submitting a bug, always attempt to recreate the issue in our Example app
446
- - Provide as much relevant information as possible
447
- - For the quickest support, reach out to JW support via this [link](https://support.jwplayer.com/hc/en-us/requests/new) after creating an issue on this repo. Providing the `Issue` number and additional, potentially proprietary/sensitive information.
450
+ To ensure issues are efficiently addressed, we outline our expectations, define what we support, and explain how to submit issues below.
451
+
452
+ ### Expectations
453
+
454
+ If you’re filing an issue, follow the **Try → Wait → Fork** model:
455
+ - **Try first**. Investigate the bug. If you find the cause, [submit a fix](#contributions). We focus on issues backed by effort.
456
+ - **Wait patiently**. We prioritize our core Native SDK development over this React-Native repository. Responses here may be delayed.
457
+ - **Fork when needed**. For one-off use cases, fork the repo. We only support changes with broad value.
458
+
459
+ ### What We Support
460
+
461
+ We focus on work that delivers the greatest long-term value to the broader community. The following categories are listed in order of priority:
462
+ 1. **Breakages** and **critical bugs** caused by updates to the Native SDKs.
463
+ 2. **Critical bugs** in the wrapper that can be reproduced in the Example app.
464
+ 3. **Structural issues** that impact long-term maintainability.
465
+ 4. **New features** that align with official SDK capabilities and benefit the broader community. _Note: These are prioritized **lower than bugs** and will be addressed only **as time allows**._
466
+
467
+ ### Issue Submissions
468
+
469
+ Follow these steps to submit an issue:
470
+ 1. Submit a [bug report](https://github.com/jwplayer/jwplayer-react-native/blob/master/.github/ISSUE_TEMPLATE/bug_report.md), [feature request](https://github.com/jwplayer/jwplayer-react-native/blob/master/.github/ISSUE_TEMPLATE/feature_request.md), [implementation request](https://github.com/jwplayer/jwplayer-react-native/blob/master/.github/ISSUE_TEMPLATE/implement.md), or [question](https://github.com/jwplayer/jwplayer-react-native/blob/master/.github/ISSUE_TEMPLATE/question.md) in this project. _Note: All information requested in the submission template must be provided. If any item is not applicable, enter "N/A"._
471
+ 2. (Optional) Submit a [JWP support request](https://support.jwplayer.com/hc/en-us/requests/new) when you need to share sensitive information.
448
472
 
@@ -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.21.1'
15
+ s.dependency 'JWPlayerKit', '4.22.0'
16
16
  s.dependency 'React-Core'
17
17
  s.static_framework = true
18
18
  s.info_plist = {
@@ -28,7 +28,7 @@ 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.1'
31
+ s.dependency 'google-cast-sdk', '4.8.3'
32
32
  s.pod_target_xcconfig = {
33
33
  'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_CAST'
34
34
  }
@@ -1,2 +1,2 @@
1
- #Tue Aug 06 14:41:55 PDT 2024
1
+ #Mon Mar 17 09:55:55 PDT 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,9 +73,9 @@ allprojects {
66
73
  }
67
74
  }
68
75
 
69
- def jwPlayerVersion = "4.18.4"
76
+ def jwPlayerVersion = "4.20.0"
70
77
  def exoplayerVersion = "2.18.7" // Deprecated. Use Media3 when targeting JW SDK > 4.16.0
71
- def media3ExoVersion = "1.1.1"
78
+ def media3ExoVersion = "1.4.1"
72
79
 
73
80
  dependencies {
74
81
  implementation 'com.facebook.react:react-native:+'
@@ -82,7 +89,7 @@ dependencies {
82
89
 
83
90
  // Ad dependencies
84
91
  if (useIMA) {
85
- implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.33.0'
92
+ implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.36.0'
86
93
  implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
87
94
  }
88
95