@imgly/camera-react-native 1.57.1 → 1.58.0

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.
@@ -78,7 +78,7 @@ repositories {
78
78
  }
79
79
 
80
80
  dependencies {
81
- implementation findProject(":camera") ?: "ly.img:camera:1.57.1"
81
+ implementation findProject(":camera") ?: "ly.img:camera:1.58.0"
82
82
  implementation platform("androidx.compose:compose-bom:2023.05.01")
83
83
  implementation "androidx.activity:activity-compose:1.6.1"
84
84
  implementation "androidx.activity:activity:1.7.0"
@@ -29,7 +29,7 @@ import UIKit
29
29
  settings: CameraSettings,
30
30
  video: String?,
31
31
  metadata: [String: Any]?,
32
- completion: @escaping (_ result: CameraResult?, _ error: NSError?) -> Void
32
+ completion: @escaping (_ result: CameraResult?, _ error: NSError?) -> Void,
33
33
  ) {
34
34
  var videoURL: URL?
35
35
  if let video {
@@ -84,7 +84,7 @@ extension CameraBuilder {
84
84
  Camera(
85
85
  engineSettings(for: settings),
86
86
  mode: .reaction(.horizontal, video: url, positionsSwapped: false),
87
- onDismiss: onDismiss
87
+ onDismiss: onDismiss,
88
88
  )
89
89
  } else {
90
90
  Camera(engineSettings(for: settings), onDismiss: onDismiss)
@@ -10,7 +10,7 @@ import IMGLYCamera
10
10
  /// - recordings: The recorded `IMGLYCamera.Recording` videos.
11
11
  public convenience init(recordings: [IMGLYCamera.Recording]) {
12
12
  self.init(
13
- recordings: recordings.compactMap { Recording(recording: $0) }
13
+ recordings: recordings.compactMap { Recording(recording: $0) },
14
14
  )
15
15
  }
16
16
 
@@ -43,7 +43,7 @@ import IMGLYCamera
43
43
  public convenience init(video: IMGLYCamera.Recording, recordings: [IMGLYCamera.Recording]) {
44
44
  self.init(
45
45
  video: Recording(recording: video),
46
- recordings: recordings.compactMap { Recording(recording: $0) }
46
+ recordings: recordings.compactMap { Recording(recording: $0) },
47
47
  )
48
48
  }
49
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imgly/camera-react-native",
3
- "version": "1.57.1",
3
+ "version": "1.58.0",
4
4
  "description": "Camera SDK for React Native - provide a versatile video camera to your users on iOS and Android.",
5
5
  "react-native": "index.js",
6
6
  "source": "index.js",