@stream-io/video-react-native-sdk 1.5.0 → 1.5.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.5.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.5.1...@stream-io/video-react-native-sdk-1.5.2) (2024-12-31)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * iOS thermal state issue ([#1633](https://github.com/GetStream/stream-video-js/issues/1633)) ([3d2a4c4](https://github.com/GetStream/stream-video-js/commit/3d2a4c42a4de2eb0e8f43586c6d4b0aaed1d34e4))
11
+
12
+ ## [1.5.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.5.0...@stream-io/video-react-native-sdk-1.5.1) (2024-12-20)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `@stream-io/video-client` updated to version `1.13.1`
17
+ * `@stream-io/video-react-bindings` updated to version `1.2.16`
5
18
  ## [1.5.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.4.22...@stream-io/video-react-native-sdk-1.5.0) (2024-12-20)
6
19
 
7
20
  ### Dependency Updates
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- const version = exports.version = '1.5.0';
7
+ const version = exports.version = '1.5.2';
8
8
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const version = '1.5.0';
1
+ export const version = '1.5.2';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "1.5.0";
1
+ export declare const version = "1.5.2";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -56,7 +56,9 @@ RCT_EXPORT_METHOD(isLowPowerModeEnabled:(RCTPromiseResolveBlock)resolve rejecter
56
56
  }
57
57
 
58
58
  RCT_EXPORT_METHOD(currentThermalState:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
59
- resolve(@([NSProcessInfo processInfo].thermalState));
59
+ NSInteger thermalState = [NSProcessInfo processInfo].thermalState;
60
+ NSString *thermalStateString = [self stringForThermalState:thermalState];
61
+ resolve(thermalStateString);
60
62
  }
61
63
 
62
64
  -(void)dealloc {
@@ -125,7 +127,23 @@ RCT_EXPORT_METHOD(currentThermalState:(RCTPromiseResolveBlock)resolve rejecter:(
125
127
  return;
126
128
  }
127
129
  NSInteger thermalState = [NSProcessInfo processInfo].thermalState;
128
- [self sendEventWithName:@"thermalStateDidChange" body:@(thermalState)];
130
+ NSString *thermalStateString = [self stringForThermalState:thermalState];
131
+ [self sendEventWithName:@"thermalStateDidChange" body:thermalStateString];
132
+ }
133
+
134
+ - (NSString *)stringForThermalState:(NSInteger)thermalState {
135
+ switch (thermalState) {
136
+ case NSProcessInfoThermalStateNominal:
137
+ return @"NOMINAL";
138
+ case NSProcessInfoThermalStateFair:
139
+ return @"FAIR";
140
+ case NSProcessInfoThermalStateSerious:
141
+ return @"SERIOUS";
142
+ case NSProcessInfoThermalStateCritical:
143
+ return @"CRITICAL";
144
+ default:
145
+ return @"UNSPECIFIED";
146
+ }
129
147
  }
130
148
 
131
149
  -(void)screenShareEventReceived:(NSString*)event {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-native-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
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
  ],
48
48
  "dependencies": {
49
- "@stream-io/video-client": "1.13.0",
50
- "@stream-io/video-react-bindings": "1.2.15",
49
+ "@stream-io/video-client": "1.13.1",
50
+ "@stream-io/video-react-bindings": "1.2.16",
51
51
  "intl-pluralrules": "2.0.1",
52
52
  "lodash.merge": "^4.6.2",
53
53
  "react-native-url-polyfill": "1.3.0",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.5.0';
1
+ export const version = '1.5.2';