Skip to content

Commit 17f373b

Browse files
committed
update library to 0.2.34, added setFullscreen for iOS, updated README, changed libs in example
1 parent ec31571 commit 17f373b

File tree

16 files changed

+40435
-24957
lines changed

16 files changed

+40435
-24957
lines changed

.npmignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/example
2-
/images
3-
/android/build
4-
/android/.settings
5-
/android/.classpath
6-
/android/.project
1+
Example
2+
images
3+
android/build
4+
android/.settings
5+
android/.classpath
6+
android/.project
77
*.iml
88
.eslintrc
99
yarn-error.log

Example/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Example
2+
images

Example/android/build.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
compileSdkVersion = 31
88
targetSdkVersion = 31
99
ndkVersion = "20.1.5948944"
10+
kotlinVersion = "1.6.21"
1011
}
1112
repositories {
1213
google()
@@ -38,4 +39,12 @@ allprojects {
3839
url 'https://mvn.jwplayer.com/content/repositories/releases/'
3940
}
4041
}
42+
43+
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
44+
45+
configurations.all {
46+
resolutionStrategy {
47+
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
48+
}
49+
}
4150
}

Example/app/jsx/components/AnimatedPlayer/index.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ import {JWPlayerState} from 'react-native-jw-media-player';
2424

2525
/* styles */
2626
import playerStyle from './player.style';
27-
import {getStatusBarHeight} from 'react-native-status-bar-height';
28-
import {getBottomSpace, isIphoneX} from 'react-native-iphone-x-helper';
27+
import {getBottomInset, getTopInset} from 'rn-iphone-helper';
2928
const {height, width} = Dimensions.get('window');
3029
const SCREEN_HEIGHT = Dimensions.get('window').height;
31-
const headerHeight = 40 + getStatusBarHeight();
30+
const headerHeight = 40 + getTopInset();
3231

3332
class AnimatedPlayer extends Component {
3433
constructor(props) {
@@ -107,7 +106,7 @@ class AnimatedPlayer extends Component {
107106

108107
var heightPercent = this.rangePercentage(
109108
dy,
110-
50 + getBottomSpace(),
109+
50 + getBottomInset(),
111110
height - headerHeight,
112111
);
113112
var vidHeightPercent = this.rangePercentage(dy, 50, 250);
@@ -261,7 +260,7 @@ class AnimatedPlayer extends Component {
261260
toValue: bottomFinal,
262261
}),
263262
Animated.timing(this.animHeight, {
264-
toValue: 50 + getBottomSpace(),
263+
toValue: 50 + getBottomInset(),
265264
}),
266265
Animated.timing(this.animVidWidth, {
267266
toValue: width / 4,

Example/ios/Podfile.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ PODS:
7878
- Protobuf (~> 3.13)
7979
- google-cast-sdk/Core (4.7.0):
8080
- Protobuf (~> 3.13)
81-
- JWPlayerKit (4.6.2)
81+
- JWPlayerKit (4.9.0)
8282
- libevent (2.1.12)
8383
- OpenSSL-Universal (1.1.1100)
84-
- Protobuf (3.21.2)
84+
- Protobuf (3.21.12)
8585
- RCT-Folly (2021.06.28.00-v2):
8686
- boost
8787
- DoubleConversion
@@ -370,9 +370,9 @@ PODS:
370370
- React
371371
- RNGestureHandler (2.4.2):
372372
- React-Core
373-
- RNJWPlayer (0.2.24):
373+
- RNJWPlayer (0.2.33):
374374
- google-cast-sdk (~> 4.7.0)
375-
- JWPlayerKit (~> 4.6.2)
375+
- JWPlayerKit (~> 4.9.0)
376376
- React
377377
- RNScreens (3.13.1):
378378
- React-Core
@@ -445,7 +445,7 @@ DEPENDENCIES:
445445
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
446446
- RNFS (from `../node_modules/react-native-fs`)
447447
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
448-
- RNJWPlayer (from `../node_modules/react-native-jw-media-player/ios`)
448+
- RNJWPlayer (from `../node_modules/react-native-jw-media-player`)
449449
- RNScreens (from `../node_modules/react-native-screens`)
450450
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
451451
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
@@ -545,7 +545,7 @@ EXTERNAL SOURCES:
545545
RNGestureHandler:
546546
:path: "../node_modules/react-native-gesture-handler"
547547
RNJWPlayer:
548-
:path: "../node_modules/react-native-jw-media-player/ios"
548+
:path: "../node_modules/react-native-jw-media-player"
549549
RNScreens:
550550
:path: "../node_modules/react-native-screens"
551551
RNVectorIcons:
@@ -571,10 +571,10 @@ SPEC CHECKSUMS:
571571
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
572572
glog: 476ee3e89abb49e07f822b48323c51c57124b572
573573
google-cast-sdk: 6731e9a206ce43e0f4433d15598ad8a19f0371d5
574-
JWPlayerKit: f72f577e907b450f76f0185233eab45db285d21b
574+
JWPlayerKit: 7b4c679dc71166d7b0f39dbfa704f94834e542a2
575575
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
576576
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
577-
Protobuf: 818c6a87e44193a77f56b87c6a1c106efda7e062
577+
Protobuf: 120350fc38646e2dedc26f49ecba778184ea1de2
578578
RCT-Folly: 4d8508a426467c48885f1151029bc15fa5d7b3b8
579579
RCTRequired: 00581111c53531e39e3c6346ef0d2c0cf52a5a37
580580
RCTTypeSafety: 07e03ee7800e7dd65cba8e52ad0c2edb06c96604
@@ -606,7 +606,7 @@ SPEC CHECKSUMS:
606606
RNDeviceInfo: 1e3f62b9ec32f7754fac60bd06b8f8a27124e7f0
607607
RNFS: 2bd9eb49dc82fa9676382f0585b992c424cd59df
608608
RNGestureHandler: 61628a2c859172551aa2100d3e73d1e57878392f
609-
RNJWPlayer: bd590297f22d85c19885b40a7465cfa991ef6556
609+
RNJWPlayer: 1f7766231a9e8063311f7b15b6227ecfa1ef5dee
610610
RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19
611611
RNVectorIcons: 31cebfcf94e8cf8686eb5303ae0357da64d7a5a4
612612
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608

0 commit comments

Comments
 (0)