diff --git a/example/RNExampleApp/ios/Podfile b/example/RNExampleApp/ios/Podfile index 6288dbb4..2279ed71 100644 --- a/example/RNExampleApp/ios/Podfile +++ b/example/RNExampleApp/ios/Podfile @@ -1,5 +1,5 @@ project 'RNExampleApp.xcodeproj' -platform :ios, '11.0' +platform :ios, '12.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'RNExampleApp' do diff --git a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj index c167ad0f..ae091a5f 100644 --- a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj +++ b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj @@ -160,11 +160,13 @@ D6F0B38747781911729D9A95 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, DF3316B124BDEBE30018AC5E /* Bundle Main JS */, + 43598F62DA2F22DB0EE48A3A /* [CP] Prepare Artifacts */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 002C2435724AECBB056A7FBD /* [CP] Copy Pods Resources */, + 9269E38444549949A7BD6DE1 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -230,7 +232,7 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh", - "${PODS_ROOT}/Anyline/AnylineSDK_iOS_25/Framework/AnylineResources.bundle", + "${PODS_ROOT}/Anyline/AnylineSDK_iOS_27/Framework/AnylineResources.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", ); name = "[CP] Copy Pods Resources"; @@ -257,6 +259,41 @@ shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; + 43598F62DA2F22DB0EE48A3A /* [CP] Prepare Artifacts */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-artifacts.sh", + "${PODS_ROOT}/Anyline/AnylineSDK_iOS_27/Framework/Anyline.xcframework", + ); + name = "[CP] Prepare Artifacts"; + outputPaths = ( + "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-artifacts.sh\"\n"; + showEnvVarsInLog = 0; + }; + 9269E38444549949A7BD6DE1 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; D6F0B38747781911729D9A95 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -448,7 +485,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -494,7 +531,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; diff --git a/plugin/ios/ALPluginHelper.m b/plugin/ios/ALPluginHelper.m index e2ac368b..da6cb73a 100644 --- a/plugin/ios/ALPluginHelper.m +++ b/plugin/ios/ALPluginHelper.m @@ -564,7 +564,7 @@ + (NSDictionary *)dictionaryForBarcodeResult:(ALBarcodeResult *)scanResult for(ALBarcode *barcode in scanResult.result) { [barcodeArray addObject:@{ @"value" : barcode.value, - @"barcodeFormat" : [ALBarcodeResult barcodeFormatFromString:barcode.barcodeFormat] + @"barcodeFormat" : [ALPluginHelper barcodeFormatFromString:barcode.barcodeFormat] }]; } diff --git a/plugin/ios/AnylineReact.podspec b/plugin/ios/AnylineReact.podspec index ba7f1a42..37399eab 100644 --- a/plugin/ios/AnylineReact.podspec +++ b/plugin/ios/AnylineReact.podspec @@ -14,11 +14,11 @@ Pod::Spec.new do |s| s.homepage = "https://github.com/Anyline/anyline-ocr-react-native-module" s.license = "MIT" - s.platform = :ios, "11" + s.platform = :ios, "12" s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" } s.source_files = "*.{h,m}" - s.dependency "Anyline", "~> 27.0" + s.dependency "Anyline", "~> 27" s.dependency "React" end