Skip to content

Commit 7a80440

Browse files
authored
Merge pull request #158 from mendix/moo/moo-2110/update-camera-package
[MOO-2110] Migrate to react-native-vision-camera
2 parents 65bd480 + 18c1040 commit 7a80440

5 files changed

Lines changed: 46 additions & 32 deletions

File tree

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ android.nonTransitiveRClass=true
2727
newArchEnabled=false
2828
hermesEnabled=true
2929
mendixnative.cookieEncryption=true
30-
30+
VisionCamera_enableCodeScanner=true
3131
edgeToEdgeEnabled=true

ios/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ abstract_target "Mendix" do
110110
if target.name == 'react-native-video'
111111
config.build_settings['SWIFT_VERSION'] = '5.0'
112112
end
113+
if target.name == 'VisionCamera'
114+
config.build_settings['SWIFT_VERSION'] = '5.2'
115+
end
113116
end
114117
end
115118

ios/Podfile.lock

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,14 +1412,6 @@ PODS:
14121412
- React-Core
14131413
- react-native-blob-util (0.21.2):
14141414
- React-Core
1415-
- react-native-camera (3.40.0):
1416-
- React-Core
1417-
- react-native-camera/RCT (= 3.40.0)
1418-
- react-native-camera/RN (= 3.40.0)
1419-
- react-native-camera/RCT (3.40.0):
1420-
- React-Core
1421-
- react-native-camera/RN (3.40.0):
1422-
- React-Core
14231415
- react-native-cameraroll (7.4.0):
14241416
- DoubleConversion
14251417
- glog
@@ -2108,6 +2100,12 @@ PODS:
21082100
- SSZipArchive (2.6.0)
21092101
- TouchID (4.4.1):
21102102
- React
2103+
- VisionCamera (4.7.1):
2104+
- VisionCamera/Core (= 4.7.1)
2105+
- VisionCamera/React (= 4.7.1)
2106+
- VisionCamera/Core (4.7.1)
2107+
- VisionCamera/React (4.7.1):
2108+
- React-Core
21112109
- Yoga (0.0.0)
21122110

21132111
DEPENDENCIES:
@@ -2164,7 +2162,6 @@ DEPENDENCIES:
21642162
- React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
21652163
- react-native-ble-plx (from `../node_modules/react-native-ble-plx`)
21662164
- react-native-blob-util (from `../node_modules/react-native-blob-util`)
2167-
- react-native-camera (from `../node_modules/react-native-camera`)
21682165
- "react-native-cameraroll (from `../node_modules/@react-native-camera-roll/camera-roll`)"
21692166
- react-native-geocoder (from `../node_modules/react-native-geocoder`)
21702167
- "react-native-geolocation (from `../node_modules/@react-native-community/geolocation`)"
@@ -2233,6 +2230,7 @@ DEPENDENCIES:
22332230
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
22342231
- SSZipArchive
22352232
- TouchID (from `../node_modules/react-native-touch-id`)
2233+
- VisionCamera (from `../node_modules/react-native-vision-camera`)
22362234
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
22372235

22382236
SPEC REPOS:
@@ -2347,8 +2345,6 @@ EXTERNAL SOURCES:
23472345
:path: "../node_modules/react-native-ble-plx"
23482346
react-native-blob-util:
23492347
:path: "../node_modules/react-native-blob-util"
2350-
react-native-camera:
2351-
:path: "../node_modules/react-native-camera"
23522348
react-native-cameraroll:
23532349
:path: "../node_modules/@react-native-camera-roll/camera-roll"
23542350
react-native-geocoder:
@@ -2483,6 +2479,8 @@ EXTERNAL SOURCES:
24832479
:path: "../node_modules/react-native-vector-icons"
24842480
TouchID:
24852481
:path: "../node_modules/react-native-touch-id"
2482+
VisionCamera:
2483+
:path: "../node_modules/react-native-vision-camera"
24862484
Yoga:
24872485
:path: "../node_modules/react-native/ReactCommon/yoga"
24882486

@@ -2550,7 +2548,6 @@ SPEC CHECKSUMS:
25502548
React-microtasksnativemodule: c32cbd3d9c334a51311ab9d717e2c72c7032a256
25512549
react-native-ble-plx: f10240444452dfb2d2a13a0e4f58d7783e92d76e
25522550
react-native-blob-util: 64a732c0b8bb7f4928905e16ea8dc5cde6fb4832
2553-
react-native-camera: 35854c4f764a4a6cf61c1c3525888b92f0fe4b31
25542551
react-native-cameraroll: fa835a59246b90ad2fa33c5e008fc25752ba7b80
25552552
react-native-geocoder: 757427682892bb256f3b3745858cc90eba148a8e
25562553
react-native-geolocation: 8559551683956a104cd6953a51f53edcef7a998f
@@ -2622,8 +2619,9 @@ SPEC CHECKSUMS:
26222619
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
26232620
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
26242621
TouchID: ba4c656d849cceabc2e4eef722dea5e55959ecf4
2622+
VisionCamera: 0ecfede218b2d989be3d504270b71f3d2384d95d
26252623
Yoga: 7d51419602153919f32aec72812e324d495ee49d
26262624

2627-
PODFILE CHECKSUM: 8045a3203b15a304651d034d96b1d93b2ccae6e4
2625+
PODFILE CHECKSUM: a8ba4f8aa949fc78ec2919cd1aa7c8a2626f3a37
26282626

26292627
COCOAPODS: 1.16.2

package-lock.json

Lines changed: 30 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"react-native-ble-plx": "2.0.3",
4343
"react-native-blob-util": "0.21.2",
4444
"react-native-calendar-events": "2.1.0",
45-
"react-native-camera": "3.40.0",
45+
"react-native-vision-camera": "4.7.1",
4646
"react-native-device-info": "13.0.0",
4747
"react-native-edge-to-edge": "1.7.0",
4848
"react-native-fast-image": "8.6.3",

0 commit comments

Comments
 (0)