Skip to content

Commit

Permalink
Upgrade 'vision-camera-code-scanner'.
Browse files Browse the repository at this point in the history
  • Loading branch information
bglgwyng committed Apr 27, 2023
1 parent 4c65b2f commit bf83471
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 28 deletions.
6 changes: 3 additions & 3 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ PODS:
- React-Core
- react-native-skia
- react-native-worklets
- VisionCameraCodeScanner (0.2.1-rc.0):
- VisionCameraCodeScanner (0.2.1-rc.1):
- GoogleMLKit/BarcodeScanning
- React-Core
- VisionCamera
Expand Down Expand Up @@ -667,8 +667,8 @@ SPEC CHECKSUMS:
React-runtimeexecutor: 8692ac548bec648fa121980ccb4304afd136d584
ReactCommon: 0982e4657e0ecdc3a90858fbb529d54cd0be8fb4
RNReanimated: f0dd6b881808e635ef0673f89642937d6c141314
VisionCamera: 123c4f511b55e15232da030f74346523976ffa2c
VisionCameraCodeScanner: 547d043fa341f72730d2de124e26fd19ac2fe33c
VisionCamera: 607b6d5f6d458dd9673fbf1f294868c84de6236c
VisionCameraCodeScanner: ddbf64d588d8f768810474017bb24f8fbeb8c045
Yoga: ba09b6b11e6139e3df8229238aa794205ca6a02a

PODFILE CHECKSUM: f2a2aec13394540ae2f3e2e5d8347630c96360a1
Expand Down
16 changes: 8 additions & 8 deletions ios/RNVC3Sandbox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2A78E29A29D2F45C0007F42E /* ExamplePlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A78E29929D2F45C0007F42E /* ExamplePlugin.swift */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
91200D68C4B04F5C58DAA0CE /* Pods_RNVC3Sandbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AFCEFCFCF9835E0E47F68A5A /* Pods_RNVC3Sandbox.framework */; };
B70B71D9127AFA40829E1C24 /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 31511B811F8D87D3415A63FD /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework */; };
D66B74C40BF16EE61E40B24C /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7220DC40005D94F97033ACFD /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework */; };
D9B4BE239D5F7D63C5ACFF34 /* Pods_RNVC3Sandbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 681051AEB4DE9DC6431D32CA /* Pods_RNVC3Sandbox.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -39,13 +39,13 @@
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNVC3Sandbox/main.m; sourceTree = "<group>"; };
2A78E29929D2F45C0007F42E /* ExamplePlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExamplePlugin.swift; sourceTree = "<group>"; };
2A78E29B29D2F4970007F42E /* RNVC3Sandbox-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNVC3Sandbox-Bridging-Header.h"; sourceTree = "<group>"; };
31511B811F8D87D3415A63FD /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RNVC3Sandbox_RNVC3SandboxTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3B4392A12AC88292D35C810B /* Pods-RNVC3Sandbox.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVC3Sandbox.debug.xcconfig"; path = "Target Support Files/Pods-RNVC3Sandbox/Pods-RNVC3Sandbox.debug.xcconfig"; sourceTree = "<group>"; };
5709B34CF0A7D63546082F79 /* Pods-RNVC3Sandbox.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVC3Sandbox.release.xcconfig"; path = "Target Support Files/Pods-RNVC3Sandbox/Pods-RNVC3Sandbox.release.xcconfig"; sourceTree = "<group>"; };
5B7EB9410499542E8C5724F5 /* Pods-RNVC3Sandbox-RNVC3SandboxTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVC3Sandbox-RNVC3SandboxTests.debug.xcconfig"; path = "Target Support Files/Pods-RNVC3Sandbox-RNVC3SandboxTests/Pods-RNVC3Sandbox-RNVC3SandboxTests.debug.xcconfig"; sourceTree = "<group>"; };
681051AEB4DE9DC6431D32CA /* Pods_RNVC3Sandbox.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RNVC3Sandbox.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7220DC40005D94F97033ACFD /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RNVC3Sandbox_RNVC3SandboxTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RNVC3Sandbox/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-RNVC3Sandbox-RNVC3SandboxTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVC3Sandbox-RNVC3SandboxTests.release.xcconfig"; path = "Target Support Files/Pods-RNVC3Sandbox-RNVC3SandboxTests/Pods-RNVC3Sandbox-RNVC3SandboxTests.release.xcconfig"; sourceTree = "<group>"; };
AFCEFCFCF9835E0E47F68A5A /* Pods_RNVC3Sandbox.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RNVC3Sandbox.framework; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

Expand All @@ -54,15 +54,15 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B70B71D9127AFA40829E1C24 /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework in Frameworks */,
D66B74C40BF16EE61E40B24C /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
91200D68C4B04F5C58DAA0CE /* Pods_RNVC3Sandbox.framework in Frameworks */,
D9B4BE239D5F7D63C5ACFF34 /* Pods_RNVC3Sandbox.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -121,8 +121,8 @@
isa = PBXGroup;
children = (
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
AFCEFCFCF9835E0E47F68A5A /* Pods_RNVC3Sandbox.framework */,
31511B811F8D87D3415A63FD /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework */,
681051AEB4DE9DC6431D32CA /* Pods_RNVC3Sandbox.framework */,
7220DC40005D94F97033ACFD /* Pods_RNVC3Sandbox_RNVC3SandboxTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-native-reanimated": "^3.0.2",
"react-native-vision-camera": "github:mrousavy/react-native-vision-camera#v3",
"react-native-worklets": "github:chrfalch/react-native-worklets#d62d76c",
"vision-camera-code-scanner": "./vision-camera-code-scanner-0.2.1-rc.0.tgz"
"vision-camera-code-scanner": "./vision-camera-code-scanner-0.2.1-rc.1.tgz"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
25 changes: 12 additions & 13 deletions patches/react-native-vision-camera+3.0.0-rc.2.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
diff --git a/node_modules/react-native-vision-camera/ios/CameraError.swift b/node_modules/react-native-vision-camera/ios/CameraError.swift
index 056bf13..74d1443 100644
--- a/node_modules/react-native-vision-camera/ios/CameraError.swift
+++ b/node_modules/react-native-vision-camera/ios/CameraError.swift
@@ -261,7 +261,7 @@ enum CameraError: Error {
case format(_ id: FormatError)
case session(_ id: SessionError)
case capture(_ id: CaptureError)
- case system(_ id: SystemError)
+ // case system(_ id: SystemError)
case unknown(message: String? = nil)

var code: String {
diff --git a/node_modules/react-native-vision-camera/VisionCamera.podspec b/node_modules/react-native-vision-camera/VisionCamera.podspec
index 739478f..0dd4951 100644
--- a/node_modules/react-native-vision-camera/VisionCamera.podspec
+++ b/node_modules/react-native-vision-camera/VisionCamera.podspec
@@ -43,6 +43,7 @@ Pod::Spec.new do |s|
# All source files that should be publicly visible
# Note how this does not include headers, since those can nameclash.
s.source_files = [
+ "VisionCamera.h",
"ios/**/*.{m,mm,swift}",
"ios/CameraBridge.h",
"ios/Skia Render Layer/PreviewSkiaView.h",
Binary file not shown.
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6962,9 +6962,9 @@ vary@~1.1.2:
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==

vision-camera-code-scanner@./vision-camera-code-scanner-0.2.1-rc.0.tgz:
version "0.2.1-rc.0"
resolved "./vision-camera-code-scanner-0.2.1-rc.0.tgz#53c9c7741e77ae8ae780fff4d12fd2b69390db9c"
vision-camera-code-scanner@./vision-camera-code-scanner-0.2.1-rc.1.tgz:
version "0.2.1-rc.1"
resolved "./vision-camera-code-scanner-0.2.1-rc.1.tgz#fc72e7863bbf00ebd7c5be20d0b007efbfcdf6c8"

vlq@^1.0.0:
version "1.0.1"
Expand Down

0 comments on commit bf83471

Please sign in to comment.