@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 +33 -9
- package/RNJWPlayer.podspec +2 -2
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build.gradle +10 -3
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerModule.java +279 -434
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerView.java +86 -33
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerViewManager.java +7 -1
- package/android/src/main/java/com/jwplayer/rnjwplayer/Util.java +39 -2
- package/badges/version.svg +1 -1
- package/index.d.ts +21 -2
- package/index.js +38 -2
- package/ios/RNJWPlayer/RNJWPlayerView.swift +56 -6
- package/ios/RNJWPlayer/RNJWPlayerViewController.swift +14 -4
- package/ios/RNJWPlayer/RNJWPlayerViewManager.m +4 -1
- package/ios/RNJWPlayer/RNJWPlayerViewManager.swift +222 -167
- package/ios/RNJWPlayer.xcodeproj/project.pbxproj +4 -2
- package/package.json +1 -1
- package/jwplayer-jwplayer-react-native-1.0.3.tgz +0 -0
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) | [
|
|
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
|
-
##
|
|
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
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
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
|
|
package/RNJWPlayer.podspec
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Mon Mar 17 09:55:55 PDT 2025
|
|
2
2
|
gradle.version=8.9
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
|