expo-camera 15.0.7 → 15.0.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 +6 -0
- package/android/build.gradle +2 -2
- package/ios/Current/CameraView.swift +2 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 15.0.8 — 2024-05-13
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- On `iOS`, fix dead frames when switching from picture to video. ([#28783](https://github.com/expo/expo/pull/28783) by [@alanjhughes](https://github.com/alanjhughes))
|
|
18
|
+
|
|
13
19
|
## 15.0.7 — 2024-05-13
|
|
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 = '15.0.
|
|
4
|
+
version = '15.0.8'
|
|
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 "15.0.
|
|
17
|
+
versionName "15.0.8"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -225,6 +225,7 @@ public class CameraView: ExpoView, EXCameraInterface, EXAppLifecycleListener,
|
|
|
225
225
|
if self.videoFileOutput == nil {
|
|
226
226
|
self.setupMovieFileCapture()
|
|
227
227
|
}
|
|
228
|
+
self.updateSessionAudioIsMuted()
|
|
228
229
|
} else {
|
|
229
230
|
self.cleanupMovieFileCapture()
|
|
230
231
|
}
|
|
@@ -252,6 +253,7 @@ public class CameraView: ExpoView, EXCameraInterface, EXAppLifecycleListener,
|
|
|
252
253
|
self.photoOutput = photoOutput
|
|
253
254
|
}
|
|
254
255
|
|
|
256
|
+
self.session.sessionPreset = self.mode == .video ? self.pictureSize.toCapturePreset() : .photo
|
|
255
257
|
self.addErrorNotification()
|
|
256
258
|
self.changePreviewOrientation()
|
|
257
259
|
}
|
|
@@ -692,10 +694,6 @@ public class CameraView: ExpoView, EXCameraInterface, EXAppLifecycleListener,
|
|
|
692
694
|
|
|
693
695
|
videoRecordedPromise = nil
|
|
694
696
|
videoCodecType = nil
|
|
695
|
-
|
|
696
|
-
if session.sessionPreset != pictureSize.toCapturePreset() {
|
|
697
|
-
updateSessionPreset(preset: pictureSize.toCapturePreset())
|
|
698
|
-
}
|
|
699
697
|
}
|
|
700
698
|
|
|
701
699
|
func setPresetCamera(presetCamera: AVCaptureDevice.Position) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-camera",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.8",
|
|
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",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "13c893625e8195887d69cc61d8b8988bed93f97a"
|
|
46
46
|
}
|