@stream-io/video-react-native-sdk 0.1.6 → 0.1.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.1.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.1.7...@stream-io/video-react-native-sdk-0.1.8) (2023-10-13)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **react-native:** misc expo config plugin bugs ([bba3f84](https://github.com/GetStream/stream-video-js/commit/bba3f8437cb0f7a662adef4e89fbc487225a5ed5))
11
+
12
+ ### [0.1.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.1.6...@stream-io/video-react-native-sdk-0.1.7) (2023-10-13)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `@stream-io/video-client` updated to version `0.3.33`
17
+ * `@stream-io/video-react-bindings` updated to version `0.2.34`
18
+
19
+ ### Bug Fixes
20
+
21
+ * **react-native:** added missing webrtc android expo config steps ([fb2c5a1](https://github.com/GetStream/stream-video-js/commit/fb2c5a1da24bc6c7d9d235ad1d8a562c8a075360))
22
+
5
23
  ### [0.1.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.1.5...@stream-io/video-react-native-sdk-0.1.6) (2023-10-13)
6
24
 
7
25
  ### Dependency Updates
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- const version = '0.1.6';
7
+ const version = '0.1.8';
8
8
  exports.version = version;
9
9
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const version = '0.1.6';
1
+ export const version = '0.1.8';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "0.1.6";
1
+ export declare const version = "0.1.8";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -5,4 +5,4 @@ export type RingingPushNotifications = {
5
5
  export type ConfigProps = {
6
6
  ringingPushNotifications?: RingingPushNotifications;
7
7
  enableNonRingingPushNotifications?: boolean;
8
- };
8
+ } | undefined;
@@ -10,6 +10,8 @@ const withMainApplication_1 = __importDefault(require("./withMainApplication"));
10
10
  const withAndroidPermissions_1 = __importDefault(require("./withAndroidPermissions"));
11
11
  const withAndroidManifest_1 = __importDefault(require("./withAndroidManifest"));
12
12
  const withiOSInfoPlist_1 = __importDefault(require("./withiOSInfoPlist"));
13
+ const withBuildProperties_1 = __importDefault(require("./withBuildProperties"));
14
+ const withAppBuildGradle_1 = __importDefault(require("./withAppBuildGradle"));
13
15
  // path should be relative to dist
14
16
  const pkg = require('../../package.json');
15
17
  const withStreamVideoReactNativeSDK = (config, props) => {
@@ -19,6 +21,8 @@ const withStreamVideoReactNativeSDK = (config, props) => {
19
21
  withMainApplication_1.default,
20
22
  withAndroidPermissions_1.default,
21
23
  withAndroidManifest_1.default,
24
+ withAppBuildGradle_1.default,
25
+ withBuildProperties_1.default,
22
26
  () => (0, withiOSInfoPlist_1.default)(config, props),
23
27
  ]);
24
28
  };
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withStreamVideoReactNativeBuildGradle: ConfigPlugin;
3
+ export default withStreamVideoReactNativeBuildGradle;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config_plugins_1 = require("@expo/config-plugins");
4
+ const withStreamVideoReactNativeBuildGradle = (configuration) => {
5
+ return (0, config_plugins_1.withAppBuildGradle)(configuration, (config) => {
6
+ if (config.modResults.contents.includes('compileOptions')) {
7
+ return config;
8
+ }
9
+ config.modResults.contents = config.modResults.contents.replace('android {', `
10
+ android {
11
+ compileOptions {
12
+ sourceCompatibility JavaVersion.VERSION_1_8
13
+ targetCompatibility JavaVersion.VERSION_11
14
+ }`);
15
+ return config;
16
+ });
17
+ };
18
+ exports.default = withStreamVideoReactNativeBuildGradle;
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withStreamVideoReactNativeBuildGradle: ConfigPlugin;
3
+ export default withStreamVideoReactNativeBuildGradle;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const expo_build_properties_1 = require("expo-build-properties");
4
+ const withStreamVideoReactNativeBuildGradle = (configuration) => {
5
+ return (0, expo_build_properties_1.withBuildProperties)(configuration, {
6
+ android: {
7
+ extraProguardRules: `
8
+ -keep class org.webrtc.** { *; }
9
+ `,
10
+ },
11
+ });
12
+ };
13
+ exports.default = withStreamVideoReactNativeBuildGradle;
@@ -11,7 +11,7 @@ const DID_UPDATE_PUSH_CREDENTIALS = 'pushRegistry:didUpdatePushCredentials:forTy
11
11
  const DID_RECEIVE_INCOMING_PUSH = 'pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:';
12
12
  const withPushAppDelegate = (configuration, props) => {
13
13
  return (0, config_plugins_1.withAppDelegate)(configuration, (config) => {
14
- if (!props.ringingPushNotifications) {
14
+ if (!props?.ringingPushNotifications) {
15
15
  // user doesnt want to use ringing push notifications, so quit early
16
16
  return config;
17
17
  }
@@ -9,7 +9,7 @@ const withStreamVideoReactNativeSDKiOSInfoPList = (configuration, props) => {
9
9
  if (!config.modResults.UIBackgroundModes.includes('audio')) {
10
10
  config.modResults.UIBackgroundModes.push('audio');
11
11
  }
12
- if (props.enableNonRingingPushNotifications) {
12
+ if (props?.enableNonRingingPushNotifications) {
13
13
  if (!config.modResults.UIBackgroundModes.includes('remote-notification')) {
14
14
  config.modResults.UIBackgroundModes.push('remote-notification');
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-native-sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "module": "dist/module/index.js",
@@ -46,8 +46,8 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@stream-io/i18n": "^0.1.2",
49
- "@stream-io/video-client": "^0.3.32",
50
- "@stream-io/video-react-bindings": "^0.2.33",
49
+ "@stream-io/video-client": "^0.3.33",
50
+ "@stream-io/video-react-bindings": "^0.2.34",
51
51
  "intl-pluralrules": "2.0.1",
52
52
  "lodash.merge": "^4.6.2",
53
53
  "react-native-url-polyfill": "1.3.0",
@@ -60,6 +60,8 @@
60
60
  "@react-native-firebase/app": ">=17.5.0",
61
61
  "@react-native-firebase/messaging": ">=17.5.0",
62
62
  "@stream-io/react-native-webrtc": ">=104.0.1",
63
+ "expo": ">=47.0.0",
64
+ "expo-build-properties": "*",
63
65
  "expo-notifications": "*",
64
66
  "expo-task-manager": "*",
65
67
  "react": ">=17.0.0",
@@ -81,6 +83,12 @@
81
83
  "@react-native-firebase/messaging": {
82
84
  "optional": true
83
85
  },
86
+ "expo": {
87
+ "optional": true
88
+ },
89
+ "expo-build-properties": {
90
+ "optional": true
91
+ },
84
92
  "expo-notifications": {
85
93
  "optional": true
86
94
  },
@@ -119,6 +127,8 @@
119
127
  "@types/react-native": "^0.70.4",
120
128
  "@types/react-native-incall-manager": "^3.2.1",
121
129
  "@types/react-test-renderer": "^18",
130
+ "expo": "49.0.13",
131
+ "expo-build-properties": "^0.5.1",
122
132
  "expo-modules-core": "1.5.11",
123
133
  "expo-notifications": "0.20.1",
124
134
  "expo-task-manager": "11.3.0",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.6';
1
+ export const version = '0.1.8';