@stream-io/video-react-native-sdk 1.20.15 → 1.20.16
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,16 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.20.16](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.20.15...@stream-io/video-react-native-sdk-1.20.16) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
- `@stream-io/noise-cancellation-react-native` updated to version `0.2.4`
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- android RN module compilation error on RN 0.81 ([#1924](https://github.com/GetStream/stream-video-js/issues/1924)) ([b02294c](https://github.com/GetStream/stream-video-js/commit/b02294c8bb85795ff5ac5fed2195e26d7e1f11a4)), closes [#1921](https://github.com/GetStream/stream-video-js/issues/1921)
|
|
14
|
+
|
|
5
15
|
## [1.20.15](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.20.14...@stream-io/video-react-native-sdk-1.20.15) (2025-09-17)
|
|
6
16
|
|
|
7
17
|
### Dependency Updates
|
|
@@ -38,6 +38,8 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
38
38
|
return NAME
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
private val mPowerManager = reactApplicationContext.getSystemService(Context.POWER_SERVICE) as PowerManager
|
|
42
|
+
|
|
41
43
|
private var thermalStatusListener: PowerManager.OnThermalStatusChangedListener? = null
|
|
42
44
|
|
|
43
45
|
private var batteryChargingStateReceiver = object : BroadcastReceiver() {
|
|
@@ -147,8 +149,6 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
147
149
|
fun startThermalStatusUpdates(promise: Promise) {
|
|
148
150
|
try {
|
|
149
151
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
150
|
-
val powerManager =
|
|
151
|
-
reactApplicationContext.getSystemService(ReactApplicationContext.POWER_SERVICE) as PowerManager
|
|
152
152
|
|
|
153
153
|
val listener = PowerManager.OnThermalStatusChangedListener { status ->
|
|
154
154
|
val thermalStatus = when (status) {
|
|
@@ -168,7 +168,7 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
thermalStatusListener = listener
|
|
171
|
-
|
|
171
|
+
mPowerManager.addThermalStatusListener(listener)
|
|
172
172
|
// Get initial status
|
|
173
173
|
currentThermalState(promise)
|
|
174
174
|
} else {
|
|
@@ -182,12 +182,10 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
182
182
|
@ReactMethod
|
|
183
183
|
fun stopThermalStatusUpdates() {
|
|
184
184
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
185
|
-
val powerManager =
|
|
186
|
-
reactApplicationContext.getSystemService(ReactApplicationContext.POWER_SERVICE) as PowerManager
|
|
187
185
|
// Store the current listener in a local val for safe null checking
|
|
188
186
|
val currentListener = thermalStatusListener
|
|
189
187
|
if (currentListener != null) {
|
|
190
|
-
|
|
188
|
+
mPowerManager.removeThermalStatusListener(currentListener)
|
|
191
189
|
thermalStatusListener = null
|
|
192
190
|
}
|
|
193
191
|
}
|
|
@@ -197,9 +195,7 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
197
195
|
fun currentThermalState(promise: Promise) {
|
|
198
196
|
try {
|
|
199
197
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
200
|
-
val
|
|
201
|
-
reactApplicationContext.getSystemService(ReactApplicationContext.POWER_SERVICE) as PowerManager
|
|
202
|
-
val status = powerManager.currentThermalStatus
|
|
198
|
+
val status = mPowerManager.currentThermalStatus
|
|
203
199
|
val thermalStatus = when (status) {
|
|
204
200
|
PowerManager.THERMAL_STATUS_NONE -> "NONE"
|
|
205
201
|
PowerManager.THERMAL_STATUS_LIGHT -> "LIGHT"
|
|
@@ -228,9 +224,7 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
228
224
|
}
|
|
229
225
|
|
|
230
226
|
private fun sendPowerModeEvent() {
|
|
231
|
-
val
|
|
232
|
-
reactApplicationContext.getSystemService(Context.POWER_SERVICE) as PowerManager
|
|
233
|
-
val isLowPowerMode = powerManager.isPowerSaveMode
|
|
227
|
+
val isLowPowerMode = mPowerManager.isPowerSaveMode
|
|
234
228
|
reactApplicationContext
|
|
235
229
|
.getJSModule(RCTDeviceEventEmitter::class.java)
|
|
236
230
|
.emit("isLowPowerModeEnabled", isLowPowerMode)
|
|
@@ -239,9 +233,7 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
239
233
|
@ReactMethod
|
|
240
234
|
fun isLowPowerModeEnabled(promise: Promise) {
|
|
241
235
|
try {
|
|
242
|
-
|
|
243
|
-
reactApplicationContext.getSystemService(Context.POWER_SERVICE) as PowerManager
|
|
244
|
-
promise.resolve(powerManager.isPowerSaveMode)
|
|
236
|
+
promise.resolve(mPowerManager.isPowerSaveMode)
|
|
245
237
|
} catch (e: Exception) {
|
|
246
238
|
promise.reject("ERROR", e.message)
|
|
247
239
|
}
|
package/dist/commonjs/version.js
CHANGED
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.20.
|
|
1
|
+
export const version = '1.20.16';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.20.
|
|
1
|
+
export declare const version = "1.20.16";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-native-sdk",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.16",
|
|
4
4
|
"description": "Stream Video SDK for React Native",
|
|
5
5
|
"author": "https://getstream.io",
|
|
6
6
|
"homepage": "https://getstream.io/video/docs/react-native/",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@react-native-firebase/app": "^22.1.0",
|
|
126
126
|
"@react-native-firebase/messaging": "^22.1.0",
|
|
127
127
|
"@react-native/babel-preset": "^0.79.2",
|
|
128
|
-
"@stream-io/noise-cancellation-react-native": "^0.2.
|
|
128
|
+
"@stream-io/noise-cancellation-react-native": "^0.2.4",
|
|
129
129
|
"@stream-io/react-native-webrtc": "125.4.3",
|
|
130
130
|
"@stream-io/video-filters-react-native": "^0.6.3",
|
|
131
131
|
"@testing-library/jest-native": "^5.4.3",
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.20.
|
|
1
|
+
export const version = '1.20.16';
|