react-native-video-processing 1.7.1 → 1.7.2

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.
Files changed (56) hide show
  1. package/.travis.yml +1 -1
  2. package/CODE_OF_CONDUCT.md +46 -0
  3. package/ISSUE_TEMPLATE.md +21 -0
  4. package/README.md +94 -39
  5. package/_config.yml +1 -0
  6. package/android/build.gradle +26 -10
  7. package/android/src/main/java/com/shahenlibrary/Events/Events.java +2 -0
  8. package/android/src/main/java/com/shahenlibrary/RNVideoProcessingPackage.java +1 -2
  9. package/android/src/main/java/com/shahenlibrary/Trimmer/Trimmer.java +705 -112
  10. package/android/src/main/java/com/shahenlibrary/Trimmer/TrimmerManager.java +50 -7
  11. package/android/src/main/java/com/shahenlibrary/VideoPlayer/VideoPlayerView.java +63 -5
  12. package/android/src/main/java/com/shahenlibrary/VideoPlayer/VideoPlayerViewManager.java +17 -12
  13. package/android/src/main/java/com/shahenlibrary/interfaces/OnCompressVideoListener.java +8 -0
  14. package/android/src/main/java/com/shahenlibrary/utils/VideoEdit.java +34 -7
  15. package/android/src/main/jniLibs/arm64-v8a/libffmpeg.so +0 -0
  16. package/android/src/main/jniLibs/armeabi-v7a/libffmpeg.so +0 -0
  17. package/android/src/main/jniLibs/x86/libffmpeg.so +0 -0
  18. package/android/src/main/jniLibs/x86_64/libffmpeg.so +0 -0
  19. package/ios/RNVideoProcessing/RCTSwiftBridgeModule.h +29 -0
  20. package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGVideoTrimmerView.h +5 -0
  21. package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGVideoTrimmerView.m +48 -13
  22. package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerView.h +1 -0
  23. package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerView.swift +107 -36
  24. package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerViewBridge.m +4 -1
  25. package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerViewManager.swift +4 -1
  26. package/ios/RNVideoProcessing/RNVideoPlayer.swift +89 -45
  27. package/ios/RNVideoProcessing/RNVideoProcessingBridge.m +3 -1
  28. package/ios/RNVideoProcessing/RNVideoProcessingManager.swift +16 -10
  29. package/ios/RNVideoProcessing/RNVideoTrimmer/AVUtilities.swift +81 -0
  30. package/ios/RNVideoProcessing/RNVideoTrimmer/RNVideoTrimmer.swift +630 -207
  31. package/ios/RNVideoProcessing/RNVideoTrimmer/RNVideoTrimmerBridge.m +8 -3
  32. package/ios/RNVideoProcessing/RNVideoTrimmer/SDAVAssetExportSession.m +32 -32
  33. package/ios/RNVideoProcessing/VideoProcessingGPUFilters.swift +0 -1
  34. package/ios/RNVideoProcessing.xcodeproj/project.pbxproj +10 -3
  35. package/lib/ProcessingManager/ProcessingManager.android.js +81 -17
  36. package/lib/ProcessingManager/ProcessingManager.ios.js +72 -10
  37. package/lib/ProcessingManager/index.js +1 -1
  38. package/lib/ProcessingManager/test/ProcessingManager.test.js +24 -0
  39. package/lib/ProcessingManager/types.android.js +26 -0
  40. package/lib/ProcessingManager/types.ios.js +21 -3
  41. package/lib/Trimmer/Trimmer.android.js +4 -6
  42. package/lib/Trimmer/Trimmer.ios.js +15 -3
  43. package/lib/Trimmer/test/Trimmer.test.js +6 -3
  44. package/lib/Trimmer/test/__snapshots__/Trimmer.test.js.snap +4 -1
  45. package/lib/VideoPlayer/VideoPlayer.android.js +52 -6
  46. package/lib/VideoPlayer/VideoPlayer.ios.js +13 -10
  47. package/lib/VideoPlayer/test/__snapshots__/VideoPlayer.test.js.snap +4 -1
  48. package/lib/utils/index.js +1 -1
  49. package/lib/utils/test/trimmer.test.js +55 -0
  50. package/lib/utils/test/utils.test.js +1 -1
  51. package/lib/utils/trimmer.js +12 -0
  52. package/package.json +37 -26
  53. package/.npmignore +0 -60
  54. package/init/index.js +0 -7
  55. package/ios/GPUImage/.npmignore +0 -25
  56. package/yarn.lock +0 -6183
@@ -1,4 +1,5 @@
1
- import React, { PropTypes, Component } from 'react';
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import {
3
4
  View,
4
5
  Image,
@@ -106,9 +107,6 @@ export class Trimmer extends Component {
106
107
  if (!source.trim()) {
107
108
  throw new Error('source should be valid string');
108
109
  }
109
- if (!TrimmerManager) {
110
- throw new Error('RNTrimmerManager: Native Module installed not correctly');
111
- }
112
110
  this._retrivePreviewImages();
113
111
  this._retriveInfo();
114
112
  }
@@ -248,9 +246,9 @@ export class Trimmer extends Component {
248
246
  });
249
247
  }}
250
248
  >
251
- {images.map((uri) => (
249
+ {images.map((uri,index) => (
252
250
  <Image
253
- key={`preview-source-${uri}`}
251
+ key={`preview-source-${uri}-${index}`}
254
252
  source={{ uri }}
255
253
  style={styles.imageItem}
256
254
  />
@@ -1,4 +1,5 @@
1
- import React, { PropTypes, Component } from 'react';
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import { requireNativeComponent, processColor } from 'react-native';
3
4
  import { getActualSource } from '../utils';
4
5
  const TRIMMER_COMPONENT_NAME = 'RNTrimmerView';
@@ -8,6 +9,8 @@ export class Trimmer extends Component {
8
9
  source: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
9
10
  width: PropTypes.number,
10
11
  height: PropTypes.number,
12
+ showTrackerHandle: PropTypes.bool,
13
+ trackerHandleColor: PropTypes.string,
11
14
  themeColor: PropTypes.string,
12
15
  onChange: PropTypes.func,
13
16
  onTrackerMove: PropTypes.func,
@@ -15,12 +18,15 @@ export class Trimmer extends Component {
15
18
  maxLength: PropTypes.number,
16
19
  currentTime: PropTypes.number,
17
20
  trackerColor: PropTypes.string,
18
- thumbWidth: PropTypes.number
21
+ thumbWidth: PropTypes.number,
22
+ borderWidth: PropTypes.number,
19
23
  };
20
24
 
21
25
  static defaultProps = {
22
26
  themeColor: 'gray',
23
- trackerColor: 'black'
27
+ trackerColor: 'black',
28
+ trackerHandleColor: 'gray',
29
+ showTrackerHandle: false
24
30
  };
25
31
 
26
32
  constructor(...args) {
@@ -56,6 +62,9 @@ export class Trimmer extends Component {
56
62
  currentTime,
57
63
  trackerColor,
58
64
  thumbWidth,
65
+ borderWidth,
66
+ showTrackerHandle,
67
+ trackerHandleColor
59
68
  } = this.props;
60
69
  const actualSource = getActualSource(source);
61
70
  return (
@@ -66,12 +75,15 @@ export class Trimmer extends Component {
66
75
  currentTime={currentTime}
67
76
  themeColor={processColor(themeColor).toString()}
68
77
  trackerColor={processColor(trackerColor).toString()}
78
+ showTrackerHandle={showTrackerHandle}
79
+ trackerHandleColor={processColor(trackerHandleColor).toString()}
69
80
  onTrackerMove={this._handleTrackerMove}
70
81
  pointerEvents={'box-none'}
71
82
  onChange={this._onChange}
72
83
  minLength={minLength}
73
84
  maxLength={maxLength}
74
85
  thumbWidth={thumbWidth}
86
+ borderWidth={borderWidth}
75
87
  />
76
88
  );
77
89
  }
@@ -1,15 +1,18 @@
1
1
  /* global expect, jest */
2
- import React, { Component } from 'react';
2
+ import React from 'react';
3
3
  import renderer from 'react-test-renderer';
4
4
 
5
5
  jest.mock('../Trimmer', () => {
6
- class Trimmer extends Component {
6
+ const React = require('react');
7
+ const Component = React.Component;
8
+
9
+ class Trimmer extends Component {
7
10
  render() {
8
11
  return React.createElement('View', this.props, null);
9
12
  }
10
13
  }
11
14
 
12
- return Trimmer;
15
+ return Trimmer;
13
16
  });
14
17
 
15
18
  import Trimmer from '../Trimmer';
@@ -1,8 +1,11 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
1
3
  exports[`[Trimmer] should be render correctly 1`] = `
2
4
  <View
3
5
  height={300}
4
6
  onChange={[Function]}
5
7
  source="someSourceGoeshere"
6
8
  themeColor="blue"
7
- width={300} />
9
+ width={300}
10
+ />
8
11
  `;
@@ -1,4 +1,5 @@
1
- import React, { Component, PropTypes } from 'react';
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import { noop } from 'lodash';
3
4
  import {
4
5
  AppRegistry,
@@ -8,11 +9,12 @@ import {
8
9
  requireNativeComponent,
9
10
  CameraRoll,
10
11
  UIManager,
11
- findNodeHandle
12
+ findNodeHandle,
13
+ ViewPropTypes
12
14
  } from 'react-native';
13
15
  import { getActualSource } from '../utils';
14
16
 
15
- const ProcessingUI = UIManager.RNVideoProcessing;
17
+ const ProcessingUI = UIManager.getViewManagerConfig('RNVideoProcessing');
16
18
 
17
19
  export class VideoPlayer extends Component {
18
20
  static Constants = {
@@ -24,7 +26,7 @@ export class VideoPlayer extends Component {
24
26
  }
25
27
  };
26
28
  static propTypes = {
27
- ...View.propTypes,
29
+ ...ViewPropTypes,
28
30
  play: PropTypes.bool,
29
31
  replay: PropTypes.bool,
30
32
  volume: PropTypes.number,
@@ -45,11 +47,14 @@ export class VideoPlayer extends Component {
45
47
  this._receiveVideoInfo = this._receiveVideoInfo.bind(this);
46
48
  this._receivePreviewImage = this._receivePreviewImage.bind(this);
47
49
  this._receiveTrimmedSource = this._receiveTrimmedSource.bind(this);
50
+ this._receiveCompressedSource = this._receiveCompressedSource.bind(this);
48
51
  this._onVideoProgress = this._onVideoProgress.bind(this);
49
52
  this.trim = this.trim.bind(this);
53
+ this.compress = this.compress.bind(this);
50
54
  this.getInfoPromisesResolves = [];
51
55
  this.getPreviewForSecondResolves = [];
52
56
  this.trimResolves = [];
57
+ this.compressResolves = [];
53
58
  }
54
59
 
55
60
  getVideoInfo() {
@@ -83,8 +88,43 @@ export class VideoPlayer extends Component {
83
88
  });
84
89
  }
85
90
 
86
- compress() {
87
- return Promise.resolve(this.props.source);
91
+ compress(_options = {}) {
92
+ const options = { ..._options };
93
+ // const options = {
94
+ // height: 1080, // output video's height
95
+ // width: 720, // output video's width
96
+ // bitrateMultiplier: 10, // divide video's bitrate to this value
97
+ // minimumBitrate: 250000,
98
+ // removeAudio: true, //default is false
99
+ // };
100
+ if (options.hasOwnProperty('bitrateMultiplier') && options.bitrateMultiplier <= 0) {
101
+ options.bitrateMultiplier = 1;
102
+ // eslint-disable-next-line no-console
103
+ console.warn('bitrateMultiplier cannot be less than zero');
104
+ }
105
+ if (options.hasOwnProperty('height') && options.height <= 0) {
106
+ delete options.height;
107
+ // eslint-disable-next-line no-console
108
+ console.warn('height cannot be less than zero');
109
+ }
110
+ if (options.hasOwnProperty('width') && options.width <= 0) {
111
+ delete options.width;
112
+ // eslint-disable-next-line no-console
113
+ console.warn('width cannot be less than zero');
114
+ }
115
+ if (options.hasOwnProperty('minimumBitrate') && options.minimumBitrate <= 0) {
116
+ delete options.minimumBitrate;
117
+ // eslint-disable-next-line no-console
118
+ console.warn('minimumBitrate cannot be less than zero');
119
+ }
120
+ UIManager.dispatchViewManagerCommand(
121
+ findNodeHandle(this),
122
+ ProcessingUI.Commands.compress,
123
+ [options]
124
+ );
125
+ return new Promise((resolve) => {
126
+ this.compressResolves.push(resolve);
127
+ });
88
128
  }
89
129
 
90
130
  getPreviewForSecond(forSecond = 0) {
@@ -103,6 +143,11 @@ export class VideoPlayer extends Component {
103
143
  this.trimResolves = [];
104
144
  }
105
145
 
146
+ _receiveCompressedSource(e) {
147
+ this.compressResolves.forEach((resolve) => resolve(e.nativeEvent.source));
148
+ this.compressResolves = [];
149
+ }
150
+
106
151
  _receiveVideoInfo({ nativeEvent }) {
107
152
  const event = {
108
153
  size: { width: nativeEvent.width, height: nativeEvent.height },
@@ -157,6 +202,7 @@ export class VideoPlayer extends Component {
157
202
  getVideoInfo={this._receiveVideoInfo}
158
203
  getPreviewImage={this._receivePreviewImage}
159
204
  getTrimmedSource={this._receiveTrimmedSource}
205
+ getCompressedSource={this._receiveCompressedSource}
160
206
  currentTime={currentTime}
161
207
  endTime={endTime}
162
208
  startTime={startTime}
@@ -1,10 +1,13 @@
1
- import React, { PropTypes, Component } from 'react';
2
- import { View, requireNativeComponent, NativeModules, UIManager } from 'react-native';
1
+ import React, { Component } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { View, ViewPropTypes, requireNativeComponent, NativeModules, UIManager } from 'react-native';
3
4
  import { getActualSource } from '../utils';
4
5
  const PLAYER_COMPONENT_NAME = 'RNVideoProcessing';
5
6
 
6
7
  const { RNVideoTrimmer } = NativeModules;
7
8
 
9
+ const ProcessingUI = UIManager.getViewManagerConfig('RNVideoProcessing');
10
+
8
11
  export class VideoPlayer extends Component {
9
12
  static propTypes = {
10
13
  source: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
@@ -20,14 +23,14 @@ export class VideoPlayer extends Component {
20
23
  playerHeight: PropTypes.number,
21
24
  onChange: PropTypes.func,
22
25
  resizeMode: PropTypes.string,
23
- ...View.propTypes
26
+ ...ViewPropTypes
24
27
  };
25
28
 
26
29
  static defaultProps = {
27
30
  play: false,
28
31
  replay: false,
29
32
  rotate: false,
30
- resizeMode: UIManager.RNVideoProcessing.Constants.ScaleNone,
33
+ resizeMode: ProcessingUI.Constants.ScaleNone,
31
34
  volume: 0.0,
32
35
  currentTime: 0,
33
36
  startTime: 0,
@@ -46,10 +49,10 @@ export class VideoPlayer extends Component {
46
49
  QUALITY_PASS_THROUGH: 'passthrough', // does not change quality
47
50
  },
48
51
  resizeMode: {
49
- CONTAIN: UIManager.RNVideoProcessing.Constants.ScaleAspectFit,
50
- COVER: UIManager.RNVideoProcessing.Constants.ScaleAspectFill,
51
- STRETCH: UIManager.RNVideoProcessing.Constants.ScaleToFill,
52
- NONE: UIManager.RNVideoProcessing.Constants.ScaleNone
52
+ CONTAIN: ProcessingUI.Constants.ScaleAspectFit,
53
+ COVER: ProcessingUI.Constants.ScaleAspectFill,
54
+ STRETCH: ProcessingUI.Constants.ScaleToFill,
55
+ NONE: ProcessingUI.Constants.ScaleNone
53
56
  }
54
57
  };
55
58
 
@@ -63,10 +66,10 @@ export class VideoPlayer extends Component {
63
66
  this._onChange = this._onChange.bind(this);
64
67
  }
65
68
 
66
- getPreviewForSecond(forSecond = 0, maximumSize) {
69
+ getPreviewForSecond(forSecond = 0, maximumSize, format = 'base64') {
67
70
  const actualSource = getActualSource(this.props.source);
68
71
  return new Promise((resolve, reject) => {
69
- RNVideoTrimmer.getPreviewImageAtPosition(actualSource, forSecond, maximumSize,
72
+ RNVideoTrimmer.getPreviewImageAtPosition(actualSource, forSecond, maximumSize, format,
70
73
  (err, base64) => {
71
74
  if (err) {
72
75
  return reject(err);
@@ -1,4 +1,7 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
1
3
  exports[`VideoPlayer Should render correctly 1`] = `
2
4
  <VideoPlayer
3
- source="somePath" />
5
+ source="somePath"
6
+ />
4
7
  `;
@@ -1,2 +1,2 @@
1
1
  export { getActualSource } from './utils';
2
- export { calculateCornerResult, msToSec } from './trimmer';
2
+ export { calculateCornerResult, msToSec, numberToHHMMSS } from './trimmer';
@@ -0,0 +1,55 @@
1
+ /* global expect */
2
+ import { calculateCornerResult, msToSec, numberToHHMMSS } from '../trimmer';
3
+
4
+ describe('[Trimmer Util]', () => {
5
+ describe('[msToSec]', () => {
6
+ it('should convert milisecond to second', () => {
7
+ const milisecond = 1000000;
8
+ const second = msToSec(milisecond);
9
+ expect(second).toBe(milisecond / 1000);
10
+ });
11
+ });
12
+ describe('[calculateCornerResult]', () => {
13
+ it('should calculate corner result from left', () => {
14
+ const duration1 = 1000;
15
+ const value1 = 30;
16
+ const width1 = 500;
17
+ const result1 = calculateCornerResult(duration1, value1, width1);
18
+
19
+ expect(result1).toEqual(60);
20
+
21
+ const duration2 = 3400;
22
+ const value2 = 200;
23
+ const width2 = 400;
24
+ const result2 = calculateCornerResult(duration2, value2, width2);
25
+
26
+ expect(result2).toEqual(1700);
27
+ });
28
+ it('should calculate corner result from right', () => {
29
+ const duration1 = 1000;
30
+ const value1 = 30;
31
+ const width1 = 500;
32
+ const result1 = calculateCornerResult(duration1, value1, width1, true);
33
+
34
+ expect(result1).toEqual(1000 - 60);
35
+
36
+ const duration2 = 3400;
37
+ const value2 = 200;
38
+ const width2 = 400;
39
+ const result2 = calculateCornerResult(duration2, value2, width2, true);
40
+
41
+ expect(result2).toEqual(3400 - 1700);
42
+ });
43
+
44
+ it('should convert float to string for ffmpeg with numberToHHMMSS', () => {
45
+ let startTime = 0.0;
46
+ let endTime = 16.3;
47
+
48
+ startTime = numberToHHMMSS({ number: startTime });
49
+ endTime = numberToHHMMSS({ number: endTime });
50
+
51
+ expect(startTime).toEqual( '00:00:00.000' );
52
+ expect(endTime).toEqual( '00:00:16.300' );
53
+ });
54
+ });
55
+ });
@@ -14,7 +14,7 @@ describe('[Utils]', () => {
14
14
  });
15
15
  it('using require(), should return string', () => {
16
16
  const returnValue = getActualSource(require('../../../test.jpeg'));
17
- expect(returnValue).toMatch(/http:\/\//);
17
+ expect(returnValue).toMatch(/assets/);
18
18
  });
19
19
  });
20
20
  });
@@ -12,3 +12,15 @@ export function calculateCornerResult(duration, value, width, fromRight) {
12
12
  export function msToSec(ms) {
13
13
  return ms / 1000;
14
14
  }
15
+
16
+ export function numberToHHMMSS({ number }) {
17
+ let sec_num = number;
18
+ let hours = Math.floor(sec_num / 3600);
19
+ let minutes = Math.floor((sec_num - (hours * 3600)) / 60);
20
+ let seconds = (sec_num - (hours * 3600) - (minutes * 60)).toFixed(3);
21
+
22
+ if (hours < 10) {hours = "0"+hours;}
23
+ if (minutes < 10) {minutes = "0"+minutes;}
24
+ if (seconds < 10) {seconds = "0"+seconds;}
25
+ return hours+':'+minutes+':'+seconds;
26
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "react-native-video-processing",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Native Video processing/editing for React-Native",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "commit": "git add . && git-cz",
8
- "test": "jest --verbose",
8
+ "test": "echo 'tests are disabled'",
9
9
  "test:snapshots": "jest -u",
10
10
  "semantic-release": "semantic-release pre && npm publish && semantic-release post"
11
11
  },
@@ -32,35 +32,46 @@
32
32
  "url": "https://github.com/shahen94/react-native-video-processing/issues"
33
33
  },
34
34
  "jest": {
35
- "preset": "jest-react-native"
35
+ "preset": "jest-react-native",
36
+ "testPathIgnorePatterns": [
37
+ "/node_modules/"
38
+ ],
39
+ "moduleFileExtensions": [
40
+ "js",
41
+ "jsx",
42
+ "json"
43
+ ],
44
+ "moduleDirectories": [
45
+ "packages",
46
+ "node_modules"
47
+ ]
36
48
  },
37
49
  "homepage": "https://github.com/shahen94/react-native-video-processing#readme",
38
50
  "dependencies": {
39
- "babel-preset-es2015": "6.18.0",
40
- "babel-preset-react": "6.16.0",
41
- "babel-preset-react-native": "1.9.0",
51
+ "babel-preset-es2015": "^6.24.1",
52
+ "babel-preset-react": "^6.24.1",
53
+ "babel-preset-react-native": "^4.0.0",
42
54
  "babel-preset-react-native-stage-0": "1.0.1",
43
- "lodash": "^4.16.6",
44
- "react": "^15.3.2"
55
+ "lodash": "^4.16.6"
45
56
  },
46
57
  "devDependencies": {
47
- "babel-eslint": "7.1.0",
48
- "babel-jest": "17.0.0",
58
+ "babel-eslint": "8.0.1",
59
+ "babel-jest": "21.2.0",
49
60
  "commitizen": "^2.8.6",
50
- "cz-conventional-changelog": "^1.2.0",
51
- "eslint": "2.7.0",
52
- "eslint-config-airbnb": "6.2.0",
53
- "eslint-plugin-jsx-a11y": "1.3.0",
54
- "eslint-plugin-react": "4.2.3",
55
- "eslint-plugin-react-native": "1.1.0",
56
- "jest": "17.0.0",
57
- "jest-react-native": "17.0.0",
58
- "react-native": "^0.37.0",
59
- "react-native-create-library": "^1.0.4",
60
- "react-test-renderer": "15.3.2",
61
- "semantic-release": "^4.3.5"
62
- },
63
- "peerDependencies": {
64
- "react-native": ">=0.35"
61
+ "cz-conventional-changelog": "^2.1.0",
62
+ "eslint": "4.10.0",
63
+ "eslint-config-airbnb": "16.1.0",
64
+ "eslint-plugin-import": "^2.8.0",
65
+ "eslint-plugin-jsx-a11y": "6.0.2",
66
+ "eslint-plugin-react": "7.4.0",
67
+ "eslint-plugin-react-native": "3.1.0",
68
+ "jest": "21.2.1",
69
+ "jest-react-native": "18.0.0",
70
+ "prop-types": "^15.6.0",
71
+ "react": "16.0.0-beta.5",
72
+ "react-native": "^0.49.5",
73
+ "react-native-create-library": "^3.1.2",
74
+ "react-test-renderer": "16.0.0",
75
+ "semantic-release": "^17.2.3"
65
76
  }
66
- }
77
+ }
package/.npmignore DELETED
@@ -1,60 +0,0 @@
1
- # MacOS temporary files
2
- .DS_Store
3
-
4
- # Logs
5
- logs
6
- *.log
7
- npm-debug.log*
8
-
9
- # Runtime data
10
- pids
11
- *.pid
12
- *.seed
13
-
14
- # Xcode
15
- #
16
- build/
17
- *.pbxuser
18
- !default.pbxuser
19
- *.mode1v3
20
- !default.mode1v3
21
- *.mode2v3
22
- !default.mode2v3
23
- *.perspectivev3
24
- !default.perspectivev3
25
- xcuserdata
26
- *.xccheckout
27
- *.moved-aside
28
- DerivedData
29
- *.hmap
30
- *.ipa
31
- *.xcuserstate
32
- project.xcworkspace
33
-
34
- # Directory for instrumented libs generated by jscoverage/JSCover
35
- lib-cov
36
-
37
- # Coverage directory used by tools like istanbul
38
- coverage
39
-
40
- # nyc test coverage
41
- .nyc_output
42
-
43
- # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
44
- .grunt
45
-
46
- # node-waf configuration
47
- .lock-wscript
48
-
49
- # Compiled binary addons (http://nodejs.org/api/addons.html)
50
- build/Release
51
-
52
- # Dependency directories
53
- node_modules
54
- jspm_packages
55
-
56
- # Optional npm cache directory
57
- .npm
58
-
59
- # Optional REPL history
60
- .node_repl_history
package/init/index.js DELETED
@@ -1,7 +0,0 @@
1
- const createLibrary = require('react-native-create-library');
2
-
3
- createLibrary({
4
- name: 'VideoProcessing',
5
- platforms: ['ios', 'android'],
6
- packageIdentifier: 'com.shahenlibrary'
7
- });
@@ -1,25 +0,0 @@
1
- # Exclude the build directory
2
- build/*
3
- examples/FilterShowcase/build*
4
-
5
- # Exclude temp nibs and swap files
6
- *~.nib
7
- *.swp
8
-
9
- # Exclude OS X folder attributes
10
- .DS_Store
11
- .svn
12
-
13
- # Exclude user-specific XCode 3 and 4 files
14
- *.mode1
15
- *.mode1v3
16
- *.mode2v3
17
- *.perspective
18
- *.perspectivev3
19
- *.pbxuser
20
- *.xcworkspace
21
- xcuserdata
22
-
23
- # Documentation
24
- documentation/*
25
-