Skip to content

Commit

Permalink
updated min iOS version to 12; fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Müller committed Dec 22, 2020
1 parent 5493e1f commit 754afab
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/RNExampleApp/ios/Podfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
43 changes: 40 additions & 3 deletions example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
);
Expand Down Expand Up @@ -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";
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion plugin/ios/ALPluginHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}];
}

Expand Down
4 changes: 2 additions & 2 deletions plugin/ios/AnylineReact.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 754afab

Please sign in to comment.