@imgly/camera-react-native 1.65.0 → 1.66.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.
@@ -82,7 +82,7 @@ repositories {
82
82
  }
83
83
 
84
84
  dependencies {
85
- implementation findProject(":camera") ?: "ly.img:camera:1.65.0"
85
+ implementation findProject(":camera") ?: "ly.img:camera:1.66.0"
86
86
  implementation platform("androidx.compose:compose-bom:2023.05.01")
87
87
  implementation "androidx.activity:activity-compose:1.6.1"
88
88
  implementation "androidx.activity:activity:1.7.0"
@@ -11,9 +11,10 @@ RCT_EXPORT_MODULE(IMGLYCamera)
11
11
  metadata:(NSDictionary*)metadata
12
12
  resolve:(RCTPromiseResolveBlock)resolve
13
13
  reject:(RCTPromiseRejectBlock)reject {
14
- NSMutableDictionary* convertedSettings = [@{
15
- @"license" : settings.license(),
16
- } mutableCopy];
14
+ NSMutableDictionary* convertedSettings = [NSMutableDictionary dictionary];
15
+ if (settings.license() != nil) {
16
+ convertedSettings[@"license"] = settings.license();
17
+ }
17
18
  if (settings.userId() != nil) {
18
19
  convertedSettings[@"userId"] = settings.userId();
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imgly/camera-react-native",
3
- "version": "1.65.0",
3
+ "version": "1.66.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",