expo-camera 16.0.10 → 16.0.11
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
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 16.0.11 — 2025-01-10
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Fix setting `videoQuality` prop. ([#34082](https://github.com/expo/expo/pull/34082) by [@alanjhughes](https://github.com/alanjhughes))
|
|
18
|
+
|
|
13
19
|
## 16.0.10 — 2024-12-16
|
|
14
20
|
|
|
15
21
|
### 💡 Others
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '16.0.
|
|
4
|
+
version = '16.0.11'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -14,7 +14,7 @@ android {
|
|
|
14
14
|
namespace "expo.modules.camera"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 32
|
|
17
|
-
versionName "16.0.
|
|
17
|
+
versionName "16.0.11"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
package expo.modules.camera
|
|
2
2
|
|
|
3
|
-
import expo.modules.camera.records.VideoQuality
|
|
4
3
|
import expo.modules.kotlin.records.Field
|
|
5
4
|
import expo.modules.kotlin.records.Record
|
|
6
5
|
|
|
@@ -19,6 +18,5 @@ data class PictureOptions(
|
|
|
19
18
|
|
|
20
19
|
data class RecordingOptions(
|
|
21
20
|
@Field val maxDuration: Int = 0,
|
|
22
|
-
@Field val maxFileSize: Int = 0
|
|
23
|
-
@Field val quality: VideoQuality?
|
|
21
|
+
@Field val maxFileSize: Int = 0
|
|
24
22
|
) : Record
|
|
@@ -127,9 +127,7 @@ public final class CameraViewModule: Module, ScannerResultHandler {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
Prop("videoQuality") { (view, quality: VideoQuality?) in
|
|
130
|
-
|
|
131
|
-
view.videoQuality = quality
|
|
132
|
-
}
|
|
130
|
+
view.videoQuality = quality ?? .video1080p
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
Prop("autoFocus") { (view, focusMode: FocusMode?) in
|
|
@@ -39,10 +39,8 @@ public class CameraView: ExpoView, EXAppLifecycleListener,
|
|
|
39
39
|
|
|
40
40
|
var videoQuality: VideoQuality = .video1080p {
|
|
41
41
|
didSet {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
await updateSessionPreset(preset: videoQuality.toPreset())
|
|
45
|
-
}
|
|
42
|
+
Task {
|
|
43
|
+
await updateSessionPreset(preset: videoQuality.toPreset())
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
}
|
|
@@ -544,11 +542,6 @@ public class CameraView: ExpoView, EXAppLifecycleListener,
|
|
|
544
542
|
}
|
|
545
543
|
|
|
546
544
|
func record(options: CameraRecordingOptions, promise: Promise) async {
|
|
547
|
-
let preset = options.quality?.toPreset()
|
|
548
|
-
if let preset {
|
|
549
|
-
await updateSessionPreset(preset: preset)
|
|
550
|
-
}
|
|
551
|
-
|
|
552
545
|
if let videoFileOutput, !videoFileOutput.isRecording && videoRecordedPromise == nil {
|
|
553
546
|
if let connection = videoFileOutput.connection(with: .video) {
|
|
554
547
|
let orientation = responsiveWhenOrientationLocked ? physicalOrientation : UIDevice.current.orientation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-camera",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.11",
|
|
4
4
|
"description": "A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to the app's cache. Morever, the component is also capable of detecting faces and bar codes appearing on the preview.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"invariant": "^2.2.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"expo-module-scripts": "^4.0.
|
|
40
|
+
"expo-module-scripts": "^4.0.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"optional": true
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "986a4689b91f3efc527f7178a320b987c0005842"
|
|
54
54
|
}
|